Skip to content

Commit

Permalink
add required intent + fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sebm253 committed Aug 16, 2024
1 parent dd6709b commit d2253dd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions events/guild_voice_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,37 +5,37 @@ import (
"github.com/disgoorg/disgo/gateway"
)

// GuildVoiceChannelEffectSend indicates that a discord.User sent an effect in a discord.GuildVoiceChannel
// GuildVoiceChannelEffectSend indicates that a discord.Member sent an effect in a discord.GuildVoiceChannel (requires gateway.IntentGuildVoiceStates)
type GuildVoiceChannelEffectSend struct {
*GenericEvent
gateway.EventVoiceChannelEffectSend
}

// GenericGuildVoiceState is called upon receiving GuildVoiceJoin , GuildVoiceMove , GuildVoiceLeave
// GenericGuildVoiceState is called upon receiving GuildVoiceJoin, GuildVoiceMove and GuildVoiceLeave
type GenericGuildVoiceState struct {
*GenericEvent
VoiceState discord.VoiceState
Member discord.Member
}

// GuildVoiceStateUpdate indicates that the discord.VoiceState of a discord.Member has updated(requires gateway.IntentsGuildVoiceStates)
// GuildVoiceStateUpdate indicates that the discord.VoiceState of a discord.Member has updated (requires gateway.IntentGuildVoiceStates)
type GuildVoiceStateUpdate struct {
*GenericGuildVoiceState
OldVoiceState discord.VoiceState
}

// GuildVoiceJoin indicates that a discord.Member joined a discord.Channel(requires gateway.IntentsGuildVoiceStates)
// GuildVoiceJoin indicates that a discord.Member joined a discord.GuildVoiceChannel (requires gateway.IntentGuildVoiceStates)
type GuildVoiceJoin struct {
*GenericGuildVoiceState
}

// GuildVoiceMove indicates that a discord.Member moved a discord.Channel(requires gateway.IntentsGuildVoiceStates)
// GuildVoiceMove indicates that a discord.Member was moved to a different discord.GuildVoiceChannel (requires gateway.IntentGuildVoiceStates)
type GuildVoiceMove struct {
*GenericGuildVoiceState
OldVoiceState discord.VoiceState
}

// GuildVoiceLeave indicates that a discord.Member left a discord.Channel(requires gateway.IntentsGuildVoiceStates)
// GuildVoiceLeave indicates that a discord.Member left a discord.GuildVoiceChannel (requires gateway.IntentGuildVoiceStates)
type GuildVoiceLeave struct {
*GenericGuildVoiceState
OldVoiceState discord.VoiceState
Expand Down

0 comments on commit d2253dd

Please sign in to comment.