diff --git a/discord/message.go b/discord/message.go index d6c0a065..e7a0ff7c 100644 --- a/discord/message.go +++ b/discord/message.go @@ -92,7 +92,7 @@ type Message struct { Mentions []User `json:"mentions"` MentionEveryone bool `json:"mention_everyone"` MentionRoles []snowflake.ID `json:"mention_roles"` - MentionChannels []Channel `json:"mention_channels"` + MentionChannels []MentionChannel `json:"mention_channels"` Pinned bool `json:"pinned"` EditedTimestamp *time.Time `json:"edited_timestamp"` Author User `json:"author"` @@ -335,6 +335,13 @@ func (m Message) JumpURL() string { return fmt.Sprintf(MessageURLFmt, guildID, m.ChannelID, m.ID) // duplicate code, but there isn't a better way without sacrificing user convenience } +type MentionChannel struct { + ID snowflake.ID `json:"id"` + GuildID snowflake.ID `json:"guild_id"` + Type ChannelType `json:"type"` + Name string `json:"name"` +} + type MessageThread struct { GuildThread Member ThreadMember `json:"member"`