~arsen/irc-discord-bridgebot

0b24ff2cfeeb9d9c2494ad255c2e6c0b00765bbd — Arsen Arsenović 4 months ago ee1399b
add message contents intent and rename intents
1 files changed, 4 insertions(+), 3 deletions(-)

M pkg/sides/discord/discord.go
M pkg/sides/discord/discord.go => pkg/sides/discord/discord.go +4 -3
@@ 344,9 344,10 @@ func New(config *DiscordConfig) (sides.Side, error) {
	session.State.TrackChannels = true

	session.Identify.Intents = 0 |
		discordgo.IntentsGuildMembers |
		discordgo.IntentsGuildMessageTyping |
		discordgo.IntentsGuildMessages
		discordgo.IntentGuildMembers |
		discordgo.IntentGuildMessageTyping |
		discordgo.IntentGuildMessages |
		discordgo.IntentMessageContent

	session.AddHandler(ds.messageReceivedEvent)
	session.AddHandler(ds.memberLeaveEvent)