Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion discord/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down Expand Up @@ -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"`
Expand Down