Skip to content

Commit d4c3991

Browse files
authored
Merge pull request #18 from DisgoOrg/development
small fixes and rename
2 parents 01dd5d6 + f6e8b5c commit d4c3991

37 files changed

+324
-289
lines changed

api/audio_controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import "errors"
44

55
// errors returned when no gateway or ws conn exists
66
var (
7-
ErrNoGateway = errors.New("no gateway initialized")
7+
ErrNoGateway = errors.New("no gateway initialized")
88
ErrNoGatewayConn = errors.New("no active gateway connection found")
99
)
1010

api/disgo.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type Disgo interface {
2020
RestClient() RestClient
2121
WebhookServer() WebhookServer
2222
Cache() Cache
23-
Intents() Intents
23+
GatewayIntents() GatewayIntents
2424
RawGatewayEventsEnabled() bool
2525
ApplicationID() Snowflake
2626
SelfUser() *User
@@ -56,7 +56,7 @@ type GatewayEventHandler interface {
5656
// WebhookEventHandler is used to handle raw webhook events
5757
type WebhookEventHandler interface {
5858
EventHandler
59-
HandleWebhookEvent(disgo Disgo, eventManager EventManager, replyChannel chan interface{}, payload interface{})
59+
HandleWebhookEvent(disgo Disgo, eventManager EventManager, replyChannel chan *InteractionResponse, payload interface{})
6060
}
6161

6262
// EventListener is used to create new EventListener to listen to events
@@ -75,7 +75,7 @@ type EventManager interface {
7575
Disgo() Disgo
7676
Close()
7777
AddEventListeners(eventListeners ...EventListener)
78-
Handle(eventType GatewayEventType, replyChannel chan interface{}, sequenceNumber int, payload json.RawMessage)
78+
Handle(eventType GatewayEventType, replyChannel chan *InteractionResponse, sequenceNumber int, payload json.RawMessage)
7979
Dispatch(event Event)
8080
}
8181

api/disgo_builder.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ type DisgoBuilder interface {
1111
SetLogger(level log.Logger) DisgoBuilder
1212
SetToken(token string) DisgoBuilder
1313
SetHTTPClient(httpClient *http.Client) DisgoBuilder
14-
SetIntents(intents Intents) DisgoBuilder
14+
SetGatewayIntents(GatewayIntents GatewayIntents) DisgoBuilder
1515
SetRawGatewayEventsEnabled(enabled bool) DisgoBuilder
1616
SetVoiceDispatchInterceptor(voiceDispatchInterceptor VoiceDispatchInterceptor) DisgoBuilder
1717
SetEntityBuilder(entityBuilder EntityBuilder) DisgoBuilder

api/entity_builder.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package api
22

33
// CacheStrategy is used to determine whether something should be cached when making an api request. When using the
4-
// gateway, you'll receive the event shortly afterwards if you have the correct intents.
4+
// gateway, you'll receive the event shortly afterwards if you have the correct GatewayIntents.
55
type CacheStrategy func(disgo Disgo) bool
66

77
// Default cache strategy choices

api/events/dm_events.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ type DMChannelDeleteEvent struct {
2626
GenericDMChannelEvent
2727
}
2828

29-
// DMUserTypingEvent indicates that a api.User started typing in a api.DMChannel(requires api.IntentsDirectMessageTyping)
29+
// DMUserTypingEvent indicates that a api.User started typing in a api.DMChannel(requires api.GatewayIntentsDirectMessageTyping)
3030
type DMUserTypingEvent struct {
3131
GenericDMChannelEvent
3232
}

api/events/dm_message_event.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"github.com/DisgoOrg/disgo/api"
55
)
66

7-
// GenericDMMessageEvent is called upon receiving DMMessageCreateEvent, DMMessageUpdateEvent, DMMessageDeleteEvent, GenericDMMessageReactionEvent, DMMessageReactionAddEvent, DMMessageReactionRemoveEvent, DMMessageReactionRemoveEmoteEvent or DMMessageReactionRemoveAllEvent(requires api.IntentsDirectMessages)
7+
// GenericDMMessageEvent is called upon receiving DMMessageCreateEvent, DMMessageUpdateEvent, DMMessageDeleteEvent, GenericDMMessageReactionEvent, DMMessageReactionAddEvent, DMMessageReactionRemoveEvent, DMMessageReactionRemoveEmoteEvent or DMMessageReactionRemoveAllEvent(requires api.GatewayIntentsDirectMessages)
88
type GenericDMMessageEvent struct {
99
GenericMessageEvent
1010
}
@@ -14,18 +14,18 @@ func (e GenericDMMessageEvent) DMChannel() *api.DMChannel {
1414
return e.Disgo().Cache().DMChannel(e.ChannelID)
1515
}
1616

17-
// DMMessageCreateEvent is called upon receiving a api.Message in a api.DMChannel(requires api.IntentsDirectMessages)
17+
// DMMessageCreateEvent is called upon receiving a api.Message in a api.DMChannel(requires api.GatewayIntentsDirectMessages)
1818
type DMMessageCreateEvent struct {
1919
GenericDMMessageEvent
2020
}
2121

22-
// DMMessageUpdateEvent is called upon editing a api.Message in a api.DMChannel(requires api.IntentsDirectMessages)
22+
// DMMessageUpdateEvent is called upon editing a api.Message in a api.DMChannel(requires api.GatewayIntentsDirectMessages)
2323
type DMMessageUpdateEvent struct {
2424
GenericDMMessageEvent
2525
OldMessage *api.Message
2626
}
2727

28-
// DMMessageDeleteEvent is called upon deleting a api.Message in a api.DMChannel(requires api.IntentsDirectMessages)
28+
// DMMessageDeleteEvent is called upon deleting a api.Message in a api.DMChannel(requires api.GatewayIntentsDirectMessages)
2929
type DMMessageDeleteEvent struct {
3030
GenericDMMessageEvent
3131
}

api/events/dm_message_reaction_events.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,31 @@ package events
22

33
import "github.com/DisgoOrg/disgo/api"
44

5-
// GenericDMMessageReactionEvent is called upon receiving DMMessageReactionAddEvent or DMMessageReactionRemoveEvent(requires the api.IntentsDirectMessageReactions)
5+
// GenericDMMessageReactionEvent is called upon receiving DMMessageReactionAddEvent or DMMessageReactionRemoveEvent(requires the api.GatewayIntentsDirectMessageReactions)
66
type GenericDMMessageReactionEvent struct {
77
GenericGuildMessageEvent
88
UserID api.Snowflake
99
User *api.User
1010
MessageReaction api.MessageReaction
1111
}
1212

13-
// DMMessageReactionAddEvent indicates that a api.User added a api.MessageReaction to a api.Message in a api.DMChannel(requires the api.IntentsDirectMessageReactions)
13+
// DMMessageReactionAddEvent indicates that a api.User added a api.MessageReaction to a api.Message in a api.DMChannel(requires the api.GatewayIntentsDirectMessageReactions)
1414
type DMMessageReactionAddEvent struct {
1515
GenericDMMessageReactionEvent
1616
}
1717

18-
// DMMessageReactionRemoveEvent indicates that a api.User removed a api.MessageReaction from a api.Message in a api.DMChannel(requires the api.IntentsDirectMessageReactions)
18+
// DMMessageReactionRemoveEvent indicates that a api.User removed a api.MessageReaction from a api.Message in a api.DMChannel(requires the api.GatewayIntentsDirectMessageReactions)
1919
type DMMessageReactionRemoveEvent struct {
2020
GenericDMMessageReactionEvent
2121
}
2222

23-
// DMMessageReactionRemoveEmoteEvent indicates someone removed all api.MessageReaction of a specific api.Emote from a api.Message in a api.DMChannel(requires the api.IntentsDirectMessageReactions)
23+
// DMMessageReactionRemoveEmoteEvent indicates someone removed all api.MessageReaction of a specific api.Emote from a api.Message in a api.DMChannel(requires the api.GatewayIntentsDirectMessageReactions)
2424
type DMMessageReactionRemoveEmoteEvent struct {
2525
GenericDMMessageEvent
2626
MessageReaction api.MessageReaction
2727
}
2828

29-
// DMMessageReactionRemoveAllEvent indicates someone removed all api.MessageReaction(s) from a api.Message in a api.DMChannel(requires the api.IntentsDirectMessageReactions)
29+
// DMMessageReactionRemoveAllEvent indicates someone removed all api.MessageReaction(s) from a api.Message in a api.DMChannel(requires the api.GatewayIntentsDirectMessageReactions)
3030
type DMMessageReactionRemoveAllEvent struct {
3131
GenericDMMessageEvent
3232
}

api/events/emote_events.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,24 @@ import (
44
"github.com/DisgoOrg/disgo/api"
55
)
66

7-
// GenericEmoteEvent is called upon receiving EmoteCreateEvent, EmoteUpdateEvent or EmoteDeleteEvent(requires api.IntentsGuildEmojis)
7+
// GenericEmoteEvent is called upon receiving EmoteCreateEvent, EmoteUpdateEvent or EmoteDeleteEvent(requires api.GatewayIntentsGuildEmojis)
88
type GenericEmoteEvent struct {
99
GenericGuildEvent
1010
Emote *api.Emote
1111
}
1212

13-
// EmoteCreateEvent indicates that a new api.Emote got created in a api.Guild(requires api.IntentsGuildEmojis)
13+
// EmoteCreateEvent indicates that a new api.Emote got created in a api.Guild(requires api.GatewayIntentsGuildEmojis)
1414
type EmoteCreateEvent struct {
1515
GenericEmoteEvent
1616
}
1717

18-
// EmoteUpdateEvent indicates that a api.Emote got updated in a api.Guild(requires api.IntentsGuildEmojis)
18+
// EmoteUpdateEvent indicates that a api.Emote got updated in a api.Guild(requires api.GatewayIntentsGuildEmojis)
1919
type EmoteUpdateEvent struct {
2020
GenericEmoteEvent
2121
OldEmote *api.Emote
2222
}
2323

24-
// EmoteDeleteEvent indicates that a api.Emote got deleted in a api.Guild(requires api.IntentsGuildEmojis)
24+
// EmoteDeleteEvent indicates that a api.Emote got deleted in a api.Guild(requires api.GatewayIntentsGuildEmojis)
2525
type EmoteDeleteEvent struct {
2626
GenericEmoteEvent
2727
}

api/events/guild_invite_events.go

+5-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"github.com/DisgoOrg/disgo/api"
55
)
66

7-
// GenericGuildInviteEvent is called upon receiving GuildInviteCreateEvent or GuildInviteDeleteEvent(requires api.IntentsGuildInvites)
7+
// GenericGuildInviteEvent is called upon receiving GuildInviteCreateEvent or GuildInviteDeleteEvent(requires api.GatewayIntentsGuildInvites)
88
type GenericGuildInviteEvent struct {
99
GenericGuildEvent
1010
Code string
@@ -35,22 +35,24 @@ func (e GenericGuildInviteEvent) TextChannel() *api.TextChannel {
3535
func (e GenericGuildInviteEvent) VoiceChannel() *api.VoiceChannel {
3636
return e.Disgo().Cache().VoiceChannel(e.ChannelID)
3737
}
38+
3839
// StoreChannel returns the api.StoreChannel the GenericGuildInviteEvent happened in(returns nil if the api.StoreChannel is uncached or api.CacheFlagStoreChannels is disabled)
3940
func (e GenericGuildInviteEvent) StoreChannel() *api.StoreChannel {
4041
return e.Disgo().Cache().StoreChannel(e.ChannelID)
4142
}
43+
4244
// Category returns the api.Category the GenericGuildInviteEvent happened in(returns nil if the api.Category is uncached or api.CacheFlagCategories is disabled)
4345
func (e GenericGuildInviteEvent) Category() *api.Category {
4446
return e.Disgo().Cache().Category(e.ChannelID)
4547
}
4648

47-
// GuildInviteCreateEvent is called upon creation of a new api.Invite in a api.Guild(requires api.IntentsGuildInvites)
49+
// GuildInviteCreateEvent is called upon creation of a new api.Invite in a api.Guild(requires api.GatewayIntentsGuildInvites)
4850
type GuildInviteCreateEvent struct {
4951
GenericGuildInviteEvent
5052
Invite *api.Invite
5153
}
5254

53-
// GuildInviteDeleteEvent is called upon deletion of a new api.Invite in a api.Guild(requires api.IntentsGuildInvites)
55+
// GuildInviteDeleteEvent is called upon deletion of a new api.Invite in a api.Guild(requires api.GatewayIntentsGuildInvites)
5456
type GuildInviteDeleteEvent struct {
5557
GenericGuildInviteEvent
5658
}

api/events/guild_member_events.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ type GuildMemberLeaveEvent struct {
3535
User *api.User
3636
}
3737

38-
// GuildMemberTypingEvent indicates that a api.Member started typing in a api.TextChannel(requires api.IntentsGuildMessageTyping)
38+
// GuildMemberTypingEvent indicates that a api.Member started typing in a api.TextChannel(requires api.GatewayIntentsGuildMessageTyping)
3939
type GuildMemberTypingEvent struct {
4040
GenericGuildMemberEvent
4141
ChannelID api.Snowflake
+6-4
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,32 @@
11
package events
22

33
import "github.com/DisgoOrg/disgo/api"
4+
45
// GenericGuildMessageReactionEvent is called upon receiving DMMessageReactionAddEvent or DMMessageReactionRemoveEvent
56
type GenericGuildMessageReactionEvent struct {
67
GenericGuildMessageEvent
78
UserID api.Snowflake
89
Member *api.Member
910
MessageReaction api.MessageReaction
1011
}
11-
// GuildMessageReactionAddEvent indicates that a api.Member added a api.MessageReaction to a api.Message in a api.TextChannel(requires the api.IntentsGuildMessageReactions)
12+
13+
// GuildMessageReactionAddEvent indicates that a api.Member added a api.MessageReaction to a api.Message in a api.TextChannel(requires the api.GatewayIntentsGuildMessageReactions)
1214
type GuildMessageReactionAddEvent struct {
1315
GenericGuildMessageReactionEvent
1416
}
1517

16-
// GuildMessageReactionRemoveEvent indicates that a api.Member removed a api.MessageReaction from a api.Message in a api.TextChannel(requires the api.IntentsGuildMessageReactions)
18+
// GuildMessageReactionRemoveEvent indicates that a api.Member removed a api.MessageReaction from a api.Message in a api.TextChannel(requires the api.GatewayIntentsGuildMessageReactions)
1719
type GuildMessageReactionRemoveEvent struct {
1820
GenericGuildMessageReactionEvent
1921
}
2022

21-
// GuildMessageReactionRemoveEmoteEvent indicates someone removed all api.MessageReaction of a specific api.Emote from a api.Message in a api.TextChannel(requires the api.IntentsGuildMessageReactions)
23+
// GuildMessageReactionRemoveEmoteEvent indicates someone removed all api.MessageReaction of a specific api.Emote from a api.Message in a api.TextChannel(requires the api.GatewayIntentsGuildMessageReactions)
2224
type GuildMessageReactionRemoveEmoteEvent struct {
2325
GenericGuildMessageEvent
2426
MessageReaction api.MessageReaction
2527
}
2628

27-
// GuildMessageReactionRemoveAllEvent indicates someone removed all api.MessageReaction(s) from a api.Message in a api.TextChannel(requires the api.IntentsGuildMessageReactions)
29+
// GuildMessageReactionRemoveAllEvent indicates someone removed all api.MessageReaction(s) from a api.Message in a api.TextChannel(requires the api.GatewayIntentsGuildMessageReactions)
2830
type GuildMessageReactionRemoveAllEvent struct {
2931
GenericGuildMessageEvent
3032
}

api/events/guild_voice_events.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ type GenericGuildVoiceEvent struct {
1010
VoiceState *api.VoiceState
1111
}
1212

13-
// GuildVoiceJoinEvent indicates that a api.Member joined a api.VoiceChannel(requires api.IntentsGuildVoiceStates)
13+
// GuildVoiceJoinEvent indicates that a api.Member joined a api.VoiceChannel(requires api.GatewayIntentsGuildVoiceStates)
1414
type GuildVoiceJoinEvent struct {
1515
GenericGuildVoiceEvent
1616
}
1717

18-
// GuildVoiceUpdateEvent indicates that a api.Member moved a api.VoiceChannel(requires api.IntentsGuildVoiceStates)
18+
// GuildVoiceUpdateEvent indicates that a api.Member moved a api.VoiceChannel(requires api.GatewayIntentsGuildVoiceStates)
1919
type GuildVoiceUpdateEvent struct {
2020
GenericGuildVoiceEvent
2121
OldVoiceState *api.VoiceState
2222
}
2323

24-
// GuildVoiceLeaveEvent indicates that a api.Member left a api.VoiceChannel(requires api.IntentsGuildVoiceStates)
24+
// GuildVoiceLeaveEvent indicates that a api.Member left a api.VoiceChannel(requires api.GatewayIntentsGuildVoiceStates)
2525
type GuildVoiceLeaveEvent struct {
2626
GenericGuildVoiceEvent
2727
}

api/events/interaction_events.go

+13-69
Original file line numberDiff line numberDiff line change
@@ -9,47 +9,7 @@ import (
99
// GenericInteractionEvent generic api.Interaction event
1010
type GenericInteractionEvent struct {
1111
GenericEvent
12-
*api.Interaction
13-
}
14-
15-
// Guild returns the api.Guild from the api.Cache
16-
func (e GenericInteractionEvent) Guild() *api.Guild {
17-
if e.Interaction.GuildID == nil {
18-
return nil
19-
}
20-
return e.Disgo().Cache().Guild(*e.Interaction.GuildID)
21-
}
22-
23-
// DMChannel returns the api.DMChannel from the api.Cache
24-
func (e GenericInteractionEvent) DMChannel() *api.DMChannel {
25-
if e.Interaction.ChannelID == nil {
26-
return nil
27-
}
28-
return e.Disgo().Cache().DMChannel(*e.Interaction.ChannelID)
29-
}
30-
31-
// MessageChannel returns the api.MessageChannel from the api.Cache
32-
func (e GenericInteractionEvent) MessageChannel() *api.MessageChannel {
33-
if e.Interaction.ChannelID == nil {
34-
return nil
35-
}
36-
return e.Disgo().Cache().MessageChannel(*e.Interaction.ChannelID)
37-
}
38-
39-
// TextChannel returns the api.TextChannel from the api.Cache
40-
func (e GenericInteractionEvent) TextChannel() *api.TextChannel {
41-
if e.Interaction.ChannelID == nil {
42-
return nil
43-
}
44-
return e.Disgo().Cache().TextChannel(*e.Interaction.ChannelID)
45-
}
46-
47-
// GuildChannel returns the api.GuildChannel from the api.Cache
48-
func (e GenericInteractionEvent) GuildChannel() *api.GuildChannel {
49-
if e.Interaction.ChannelID == nil {
50-
return nil
51-
}
52-
return e.Disgo().Cache().GuildChannel(*e.Interaction.ChannelID)
12+
Interaction *api.Interaction
5313
}
5414

5515
// SlashCommandEvent indicates that a slash api.Command was ran in a api.Guild
@@ -109,8 +69,17 @@ func (e SlashCommandEvent) OptionsT(optionType api.CommandOptionType) []*api.Opt
10969
}
11070

11171
// Acknowledge replies to the api.Interaction with api.InteractionResponseTypeDeferredChannelMessageWithSource
112-
func (e *SlashCommandEvent) Acknowledge() error {
113-
return e.Reply(api.NewInteractionResponseBuilder().SetType(api.InteractionResponseTypeDeferredChannelMessageWithSource).Build())
72+
func (e *SlashCommandEvent) Acknowledge(ephemeral bool) error {
73+
var data *api.InteractionResponseData
74+
if ephemeral {
75+
data = &api.InteractionResponseData{
76+
Flags: api.MessageFlagEphemeral,
77+
}
78+
}
79+
return e.Reply(&api.InteractionResponse{
80+
Type: api.InteractionResponseTypeDeferredChannelMessageWithSource,
81+
Data: data,
82+
})
11483
}
11584

11685
// Reply replies to the api.Interaction with the provided api.InteractionResponse
@@ -125,30 +94,5 @@ func (e *SlashCommandEvent) Reply(response *api.InteractionResponse) error {
12594
return nil
12695
}
12796

128-
return e.Disgo().RestClient().SendInteractionResponse(e.Interaction.ID, e.Interaction.Token, response)
129-
}
130-
131-
// EditOriginal edits the original api.InteractionResponse
132-
func (e *SlashCommandEvent) EditOriginal(followupMessage *api.FollowupMessage) (*api.Message, error) {
133-
return e.Disgo().RestClient().EditInteractionResponse(e.Disgo().ApplicationID(), e.Interaction.Token, followupMessage)
134-
}
135-
136-
// DeleteOriginal deletes the original api.InteractionResponse
137-
func (e *SlashCommandEvent) DeleteOriginal() error {
138-
return e.Disgo().RestClient().DeleteInteractionResponse(e.Disgo().ApplicationID(), e.Interaction.Token)
139-
}
140-
141-
// SendFollowup used to send a api.FollowupMessage to an api.Interaction
142-
func (e *SlashCommandEvent) SendFollowup(followupMessage *api.FollowupMessage) (*api.Message, error) {
143-
return e.Disgo().RestClient().SendFollowupMessage(e.Disgo().ApplicationID(), e.Interaction.Token, followupMessage)
144-
}
145-
146-
// EditFollowup used to edit a api.FollowupMessage from an api.Interaction
147-
func (e *SlashCommandEvent) EditFollowup(messageID api.Snowflake, followupMessage *api.FollowupMessage) (*api.Message, error) {
148-
return e.Disgo().RestClient().EditFollowupMessage(e.Disgo().ApplicationID(), e.Interaction.Token, messageID, followupMessage)
149-
}
150-
151-
// DeleteFollowup used to delete a api.FollowupMessage from an api.Interaction
152-
func (e *SlashCommandEvent) DeleteFollowup(messageID api.Snowflake) error {
153-
return e.Disgo().RestClient().DeleteFollowupMessage(e.Disgo().ApplicationID(), e.Interaction.Token, messageID)
97+
return e.Interaction.Disgo.RestClient().SendInteractionResponse(e.Interaction.ID, e.Interaction.Token, response)
15498
}

api/events/message_reaction_events.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,23 @@ type GenericReactionEvents struct {
1010
MessageReaction api.MessageReaction
1111
}
1212

13-
// MessageReactionAddEvent indicates that a api.User added a api.MessageReaction to a api.Message in a api.Channel(this+++ requires the api.IntentsGuildMessageReactions and/or api.IntentsDirectMessageReactions)
13+
// MessageReactionAddEvent indicates that a api.User added a api.MessageReaction to a api.Message in a api.Channel(this+++ requires the api.GatewayIntentsGuildMessageReactions and/or api.GatewayIntentsDirectMessageReactions)
1414
type MessageReactionAddEvent struct {
1515
GenericReactionEvents
1616
}
1717

18-
// MessageReactionRemoveEvent indicates that a api.User removed a api.MessageReaction from a api.Message in a api.Channel(requires the api.IntentsGuildMessageReactions and/or api.IntentsDirectMessageReactions)
18+
// MessageReactionRemoveEvent indicates that a api.User removed a api.MessageReaction from a api.Message in a api.Channel(requires the api.GatewayIntentsGuildMessageReactions and/or api.GatewayIntentsDirectMessageReactions)
1919
type MessageReactionRemoveEvent struct {
2020
GenericReactionEvents
2121
}
2222

23-
// MessageReactionRemoveEmoteEvent indicates someone removed all api.MessageReaction of a specific api.Emote from a api.Message in a api.Channel(requires the api.IntentsGuildMessageReactions and/or api.IntentsDirectMessageReactions)
23+
// MessageReactionRemoveEmoteEvent indicates someone removed all api.MessageReaction of a specific api.Emote from a api.Message in a api.Channel(requires the api.GatewayIntentsGuildMessageReactions and/or api.GatewayIntentsDirectMessageReactions)
2424
type MessageReactionRemoveEmoteEvent struct {
2525
GenericMessageEvent
2626
MessageReaction api.MessageReaction
2727
}
2828

29-
// MessageReactionRemoveAllEvent indicates someone removed all api.MessageReaction(s) from a api.Message in a api.Channel(requires the api.IntentsGuildMessageReactions and/or api.IntentsDirectMessageReactionss)
29+
// MessageReactionRemoveAllEvent indicates someone removed all api.MessageReaction(s) from a api.Message in a api.Channel(requires the api.GatewayIntentsGuildMessageReactions and/or api.GatewayIntentsDirectMessageReactionss)
3030
type MessageReactionRemoveAllEvent struct {
3131
GenericMessageEvent
3232
}

0 commit comments

Comments
 (0)