made getting tags working
This commit is contained in:
23
main.go
23
main.go
@@ -15,7 +15,6 @@ import (
|
||||
|
||||
"github.com/disgoorg/disgo"
|
||||
"github.com/disgoorg/disgo/bot"
|
||||
"github.com/disgoorg/disgo/discord"
|
||||
"github.com/disgoorg/disgo/gateway"
|
||||
"github.com/joho/godotenv"
|
||||
"github.com/sirupsen/logrus"
|
||||
@@ -23,9 +22,7 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
client bot.Client
|
||||
app *discord.Application
|
||||
db *sql.DB
|
||||
db *sql.DB
|
||||
)
|
||||
|
||||
func main() {
|
||||
@@ -47,13 +44,15 @@ func main() {
|
||||
),
|
||||
),
|
||||
bot.WithEventListenerFunc(ready),
|
||||
//bot.WithEventListenerFunc(applicationCommandInteractionCreate),
|
||||
//bot.WithEventListenerFunc(autocompleteInteractionCreate),
|
||||
//bot.WithEventListenerFunc(componentInteractionCreate),
|
||||
//bot.WithEventListenerFunc(modalSubmitInteractionCreate),
|
||||
//bot.WithEventListenerFunc(messageCreate),
|
||||
//bot.WithEventListenerFunc(messageDelete),
|
||||
//bot.WithEventListenerFunc(guildMemberJoin),
|
||||
bot.WithEventListenerFunc(applicationCommandInteractionCreate),
|
||||
bot.WithEventListenerFunc(autocompleteInteractionCreate),
|
||||
bot.WithEventListenerFunc(componentInteractionCreate),
|
||||
bot.WithEventListenerFunc(modalSubmitInteractionCreate),
|
||||
/*
|
||||
bot.WithEventListenerFunc(messageCreate),
|
||||
bot.WithEventListenerFunc(messageDelete),
|
||||
bot.WithEventListenerFunc(guildMemberJoin),
|
||||
*/
|
||||
)
|
||||
if err != nil {
|
||||
logrus.Fatal("error creating Discord session,", err)
|
||||
@@ -66,7 +65,7 @@ func main() {
|
||||
logrus.Error("error opening connection,", err)
|
||||
return
|
||||
}
|
||||
app, err = client.Rest().GetCurrentApplication()
|
||||
app, err := client.Rest().GetCurrentApplication()
|
||||
if err != nil {
|
||||
logrus.Error(err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user