started adding sticky messages

This commit is contained in:
2024-02-21 16:10:52 +01:00
parent 06809f2c40
commit 304f93e28d
5 changed files with 120 additions and 5 deletions

View File

@@ -38,10 +38,11 @@ func main() {
} else {
fmt.Println("Discord session created")
}
discord.Identify.Intents = discordgo.IntentsGuildMessages | discordgo.IntentsGuilds
discord.Identify.Intents = discordgo.IntentsGuildMessages | discordgo.IntentsGuilds | discordgo.IntentMessageContent
defer removeCommandFromAllGuilds(discord)
discord.AddHandler(ready)
discord.AddHandler(interactionCreate)
discord.AddHandler(messageCreate)
err = discord.Open()
if err != nil {
fmt.Println("error opening connection,", err)