Skip to content

Commit

Permalink
Fix incorrect docs for Channel() funcs
Browse files Browse the repository at this point in the history
  • Loading branch information
mlnrDev committed Aug 31, 2023
1 parent cdef17e commit 650fa09
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion events/guild_invite_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type GenericInvite struct {
Code string
}

// Channel returns the Channel the GenericInvite happened in.
// Channel returns the discord.GuildChannel the GenericInvite happened in.
func (e *GenericInvite) Channel() (discord.GuildChannel, bool) {
return e.Client().Caches().Channel(e.ChannelID)
}
Expand Down
2 changes: 1 addition & 1 deletion events/guild_member_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ type GuildMemberTypingStart struct {
Member discord.Member
}

// Channel returns the discord.BaseGuildMessageChannel the GuildMemberTypingStart happened in
// Channel returns the discord.GuildMessageChannel the GuildMemberTypingStart happened in
func (e *GuildMemberTypingStart) Channel() (discord.GuildMessageChannel, bool) {
return e.Client().Caches().GuildMessageChannel(e.ChannelID)
}
2 changes: 1 addition & 1 deletion events/guild_message_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func (e *GenericGuildMessage) Guild() (discord.Guild, bool) {
return e.Client().Caches().Guild(e.GuildID)
}

// Channel returns the discord.DMChannel where the GenericGuildMessage happened
// Channel returns the discord.GuildMessageChannel where the GenericGuildMessage happened
func (e *GenericGuildMessage) Channel() (discord.GuildMessageChannel, bool) {
return e.Client().Caches().GuildMessageChannel(e.ChannelID)
}
Expand Down
2 changes: 1 addition & 1 deletion events/guild_webhooks_update_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func (e *WebhooksUpdate) Guild() (discord.Guild, bool) {
return e.Client().Caches().Guild(e.GuildId)
}

// Channel returns the Channel the webhook was updated in.
// Channel returns the discord.GuildMessageChannel webhook was updated in.
// This will only return cached channels!
func (e *WebhooksUpdate) Channel() (discord.GuildMessageChannel, bool) {
return e.Client().Caches().GuildMessageChannel(e.ChannelID)
Expand Down

0 comments on commit 650fa09

Please sign in to comment.