File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 22
22
MentionTypeEveryone = MentionType {regexp .MustCompile (`@everyone` )}
23
23
MentionTypeGuildNavigation = MentionType {regexp .MustCompile ("<id:(browse|customize|guide|linked-roles)>" )}
24
24
MentionTypeLinkedRole = MentionType {regexp .MustCompile (`<id:linked-roles:(\d+)>` )}
25
+ MentionTypeSoundmoji = MentionType {regexp .MustCompile (`<sound:(\d+):(\d+)>` )}
25
26
)
26
27
27
28
type Mentionable interface {
@@ -92,3 +93,7 @@ func NavigationLinkedRoles() string {
92
93
func NavigationLinkedRole (id snowflake.ID ) string {
93
94
return fmt .Sprintf ("<id:linked-roles:%d>" , id )
94
95
}
96
+
97
+ func SoundmojiMention (guildID snowflake.ID , soundID snowflake.ID ) string {
98
+ return fmt .Sprintf ("<sound:%d:%d>" , guildID , soundID )
99
+ }
Original file line number Diff line number Diff line change @@ -122,6 +122,7 @@ type Message struct {
122
122
Poll * Poll `json:"poll,omitempty"`
123
123
Call * MessageCall `json:"call,omitempty"`
124
124
Nonce Nonce `json:"nonce,omitempty"`
125
+ SoundboardSounds []SoundboardSound `json:"soundboard_sounds,omitempty"`
125
126
}
126
127
127
128
func (m * Message ) UnmarshalJSON (data []byte ) error {
You can’t perform that action at this time.
0 commit comments