mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
feat(handlers/webhook): test slash command name against ^[\w-]{1,32}$ (#613)
* feat(handlers/webhook): test slash command name against ^[\w-]{1,32}$
* Update src/api/handlers/webhook.ts
Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>
* Update src/api/handlers/webhook.ts
Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>
* Update src/api/handlers/webhook.ts
Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>
* Update src/api/handlers/webhook.ts
Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>
* move to constants file
* idk
* idk
Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>
This commit is contained in:
@@ -175,3 +175,5 @@ export const endpoints = {
|
||||
// oAuth2
|
||||
OAUTH2_APPLICATION: `${baseEndpoints.BASE_URL}/oauth2/applications/@me`,
|
||||
};
|
||||
|
||||
export const SLASH_COMMANDS_NAME_REGEX = /^[\w-]{1,32}$/;
|
||||
|
||||
Reference in New Issue
Block a user