finished porting to disgo

This commit is contained in:
2024-04-10 17:01:14 +02:00
parent 648839c78b
commit 5ecbcf93f2
4 changed files with 61 additions and 53 deletions

View File

@@ -40,6 +40,7 @@ func main() {
gateway.WithIntents(
gateway.IntentGuilds,
gateway.IntentGuildMessages,
gateway.IntentGuildMembers,
gateway.IntentDirectMessages,
),
),
@@ -50,9 +51,7 @@ func main() {
bot.WithEventListenerFunc(modalSubmitInteractionCreate),
bot.WithEventListenerFunc(messageCreate),
bot.WithEventListenerFunc(messageDelete),
/*
bot.WithEventListenerFunc(guildMemberJoin),
*/
bot.WithEventListenerFunc(guildMemberJoin),
)
if err != nil {
logrus.Fatal("error creating Discord session,", err)