Skip to content

Commit 3599a10

Browse files
author
mlnrDev
committed
Rename InteractionGuild funcs to PartialGuild()
because they were clashing with the cache function
1 parent b81270a commit 3599a10

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

discord/interaction.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ type Interaction interface {
5656
ApplicationID() snowflake.ID
5757
Token() string
5858
Version() int
59-
Guild() *InteractionGuild
59+
PartialGuild() *InteractionGuild
6060
GuildID() *snowflake.ID
6161
// Deprecated: Use Interaction.Channel instead
6262
ChannelID() snowflake.ID

discord/interaction_base.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func (i baseInteraction) Token() string {
3737
func (i baseInteraction) Version() int {
3838
return i.version
3939
}
40-
func (i baseInteraction) Guild() *InteractionGuild {
40+
func (i baseInteraction) PartialGuild() *InteractionGuild {
4141
return i.guild
4242
}
4343
func (i baseInteraction) GuildID() *snowflake.ID {

discord/interaction_ping.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ func (i PingInteraction) Version() int {
6363
func (i PingInteraction) CreatedAt() time.Time {
6464
return i.id.Time()
6565
}
66-
func (PingInteraction) Guild() *InteractionGuild {
66+
67+
func (PingInteraction) PartialGuild() *InteractionGuild {
6768
return nil
6869
}
6970

0 commit comments

Comments
 (0)