Skip to content

Commit 0938b66

Browse files
authored
feat(FormattingPatterns): GuildNavigation and LinkedRole (#1089)
1 parent d1e64ee commit 0938b66

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

deno/globals.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,18 @@ export const FormattingPatterns = {
9393
* The `timestamp` and `style` group properties are present on the `exec` result of this expression
9494
*/
9595
StyledTimestamp: /<t:(?<timestamp>-?\d{1,13}):(?<style>[DFRTdft])>/,
96+
/**
97+
* Regular expression for matching a guild navigation mention
98+
*
99+
* The `type` group property is present on the `exec` result of this expression
100+
*/
101+
GuildNavigation: /<id:(?<type>customize|browse|guide|linked-roles)>/,
102+
/**
103+
* Regular expression for matching a linked role mention
104+
*
105+
* The `id` group property is present on the `exec` result of this expression
106+
*/
107+
LinkedRole: /<id:linked-roles:(?<id>\d{17,20})>/,
96108
} as const;
97109

98110
/**

globals.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,18 @@ export const FormattingPatterns = {
9393
* The `timestamp` and `style` group properties are present on the `exec` result of this expression
9494
*/
9595
StyledTimestamp: /<t:(?<timestamp>-?\d{1,13}):(?<style>[DFRTdft])>/,
96+
/**
97+
* Regular expression for matching a guild navigation mention
98+
*
99+
* The `type` group property is present on the `exec` result of this expression
100+
*/
101+
GuildNavigation: /<id:(?<type>customize|browse|guide|linked-roles)>/,
102+
/**
103+
* Regular expression for matching a linked role mention
104+
*
105+
* The `id` group property is present on the `exec` result of this expression
106+
*/
107+
LinkedRole: /<id:linked-roles:(?<id>\d{17,20})>/,
96108
} as const;
97109

98110
/**

0 commit comments

Comments
 (0)