File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -546,7 +546,7 @@ export default class WebhookCommand extends SlashCommand {
546
546
* - It follows the nickname guidelines in the Usernames and Nicknames documentation, with an exception that webhook names can be up to 80 characters
547
547
* https://discord.com/developers/docs/resources/webhook#create-webhook
548
548
*/
549
- const boardName = board . name . toLowerCase ( ) ;
549
+ const boardName = ( ctx . options . add . name || board . name ) . toLowerCase ( ) ;
550
550
const nameInvalid = BLACKLISTED_WEBHOOK_SUBSTRINGS . find ( ( str ) => boardName . includes ( str ) ) || BLACKLISTED_WEBHOOK_NAMES . includes ( boardName ) ;
551
551
const webhookName = ( nameInvalid ? '' : truncate ( ctx . options . add . name || board . name , 80 ) ) || t ( 'webhook.new_wh_name' ) ;
552
552
try {
You can’t perform that action at this time.
0 commit comments