File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 20
20
MentionTypeSlashCommand = MentionType {regexp .MustCompile (`</(\w+) ?((\w+)|(\w+ \w+)):(\d+)>` )}
21
21
MentionTypeHere = MentionType {regexp .MustCompile (`@here` )}
22
22
MentionTypeEveryone = MentionType {regexp .MustCompile (`@everyone` )}
23
- MentionTypeGuildNavigation = MentionType {regexp .MustCompile ("<id:(browse|customize|guide)>" )}
23
+ MentionTypeGuildNavigation = MentionType {regexp .MustCompile ("<id:(browse|customize|guide|linked-roles)>" )}
24
+ MentionTypeLinkedRole = MentionType {regexp .MustCompile (`<id:linked-roles:(\d+)>` )}
24
25
)
25
26
26
27
type Mentionable interface {
@@ -83,3 +84,11 @@ func NavigationCustomizeMention() string {
83
84
func NavigationGuideMention () string {
84
85
return "<id:guide>"
85
86
}
87
+
88
+ func NavigationLinkedRoles () string {
89
+ return "<id:linked-roles>"
90
+ }
91
+
92
+ func NavigationLinkedRole (id snowflake.ID ) string {
93
+ return fmt .Sprintf ("<id:linked-roles:%d>" , id )
94
+ }
You can’t perform that action at this time.
0 commit comments