File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 2222 MentionTypeEveryone = MentionType {regexp .MustCompile (`@everyone` )}
2323 MentionTypeGuildNavigation = MentionType {regexp .MustCompile ("<id:(browse|customize|guide|linked-roles)>" )}
2424 MentionTypeLinkedRole = MentionType {regexp .MustCompile (`<id:linked-roles:(\d+)>` )}
25+ MentionTypeEmail = MentionType {regexp .MustCompile (`<.+@.+>` )}
26+ MentionTypePhoneNumber = MentionType {regexp .MustCompile (`<\+.+>` )}
2527)
2628
2729type Mentionable interface {
@@ -92,3 +94,11 @@ func NavigationLinkedRoles() string {
9294func NavigationLinkedRole (id snowflake.ID ) string {
9395 return fmt .Sprintf ("<id:linked-roles:%d>" , id )
9496}
97+
98+ func EmailMention (email string ) string {
99+ return fmt .Sprintf ("<%s>" , email )
100+ }
101+
102+ func PhoneNumberMention (number string ) string {
103+ return fmt .Sprintf ("<%s>" , number )
104+ }
You can’t perform that action at this time.
0 commit comments