Skip to content

Commit

Permalink
Rename InteractionGuild funcs to PartialGuild()
Browse files Browse the repository at this point in the history
because they were clashing with the cache function
  • Loading branch information
mlnrDev committed May 23, 2024
1 parent b81270a commit 3599a10
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion discord/interaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ type Interaction interface {
ApplicationID() snowflake.ID
Token() string
Version() int
Guild() *InteractionGuild
PartialGuild() *InteractionGuild
GuildID() *snowflake.ID
// Deprecated: Use Interaction.Channel instead
ChannelID() snowflake.ID
Expand Down
2 changes: 1 addition & 1 deletion discord/interaction_base.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func (i baseInteraction) Token() string {
func (i baseInteraction) Version() int {
return i.version
}
func (i baseInteraction) Guild() *InteractionGuild {
func (i baseInteraction) PartialGuild() *InteractionGuild {
return i.guild
}
func (i baseInteraction) GuildID() *snowflake.ID {
Expand Down
3 changes: 2 additions & 1 deletion discord/interaction_ping.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ func (i PingInteraction) Version() int {
func (i PingInteraction) CreatedAt() time.Time {
return i.id.Time()
}
func (PingInteraction) Guild() *InteractionGuild {

func (PingInteraction) PartialGuild() *InteractionGuild {
return nil
}

Expand Down

0 comments on commit 3599a10

Please sign in to comment.