@@ -25,12 +25,6 @@ func (e *InteractionCreate) Guild() (discord.Guild, bool) {
25
25
return discord.Guild {}, false
26
26
}
27
27
28
- // MessageChannel returns the discord.GuildMessageChannel that the interaction happened in.
29
- // This only returns cached channels.
30
- func (e * InteractionCreate ) MessageChannel () (discord.GuildMessageChannel , bool ) {
31
- return e .Client ().Caches ().GuildMessageChannel (e .Channel ().ID )
32
- }
33
-
34
28
// ApplicationCommandInteractionCreate is the base struct for all application command interaction create events.
35
29
type ApplicationCommandInteractionCreate struct {
36
30
* GenericEvent
@@ -48,12 +42,6 @@ func (e *ApplicationCommandInteractionCreate) Guild() (discord.Guild, bool) {
48
42
return discord.Guild {}, false
49
43
}
50
44
51
- // MessageChannel returns the discord.GuildMessageChannel that the interaction happened in.
52
- // This only returns cached channels.
53
- func (e * ApplicationCommandInteractionCreate ) MessageChannel () (discord.GuildMessageChannel , bool ) {
54
- return e .Client ().Caches ().GuildMessageChannel (e .Channel ().ID )
55
- }
56
-
57
45
// CreateMessage responds to the interaction with a new message.
58
46
func (e * ApplicationCommandInteractionCreate ) CreateMessage (messageCreate discord.MessageCreate , opts ... rest.RequestOpt ) error {
59
47
return e .Respond (discord .InteractionResponseTypeCreateMessage , messageCreate , opts ... )
@@ -90,12 +78,6 @@ func (e *ComponentInteractionCreate) Guild() (discord.Guild, bool) {
90
78
return discord.Guild {}, false
91
79
}
92
80
93
- // MessageChannel returns the discord.GuildMessageChannel that the interaction happened in.
94
- // This only returns cached channels.
95
- func (e * ComponentInteractionCreate ) MessageChannel () (discord.GuildMessageChannel , bool ) {
96
- return e .Client ().Caches ().GuildMessageChannel (e .Channel ().ID )
97
- }
98
-
99
81
// CreateMessage responds to the interaction with a new message.
100
82
func (e * ComponentInteractionCreate ) CreateMessage (messageCreate discord.MessageCreate , opts ... rest.RequestOpt ) error {
101
83
return e .Respond (discord .InteractionResponseTypeCreateMessage , messageCreate , opts ... )
@@ -142,12 +124,6 @@ func (e *AutocompleteInteractionCreate) Guild() (discord.Guild, bool) {
142
124
return discord.Guild {}, false
143
125
}
144
126
145
- // MessageChannel returns the discord.GuildMessageChannel that the interaction happened in.
146
- // This only returns cached channels.
147
- func (e * AutocompleteInteractionCreate ) MessageChannel () (discord.GuildMessageChannel , bool ) {
148
- return e .Client ().Caches ().GuildMessageChannel (e .Channel ().ID )
149
- }
150
-
151
127
// Result responds to the interaction with a slice of choices.
152
128
func (e * AutocompleteInteractionCreate ) Result (choices []discord.AutocompleteChoice , opts ... rest.RequestOpt ) error {
153
129
return e .Respond (discord .InteractionResponseTypeApplicationCommandAutocompleteResult , discord.AutocompleteResult {Choices : choices }, opts ... )
@@ -170,12 +146,6 @@ func (e *ModalSubmitInteractionCreate) Guild() (discord.Guild, bool) {
170
146
return discord.Guild {}, false
171
147
}
172
148
173
- // MessageChannel returns the discord.GuildMessageChannel that the interaction happened in.
174
- // This only returns cached channels.
175
- func (e * ModalSubmitInteractionCreate ) MessageChannel () (discord.GuildMessageChannel , bool ) {
176
- return e .Client ().Caches ().GuildMessageChannel (e .Channel ().ID )
177
- }
178
-
179
149
// CreateMessage responds to the interaction with a new message.
180
150
func (e * ModalSubmitInteractionCreate ) CreateMessage (messageCreate discord.MessageCreate , opts ... rest.RequestOpt ) error {
181
151
return e .Respond (discord .InteractionResponseTypeCreateMessage , messageCreate , opts ... )
0 commit comments