- Warn msg
- Add `nonce` param (interaction)
This commit is contained in:
March 7th
2022-06-08 12:35:19 +07:00
parent 057f6ae3ad
commit 83ce0a0f43
6 changed files with 20 additions and 7 deletions

View File

@@ -630,6 +630,7 @@ class ApplicationCommand extends Base {
type: ApplicationCommandTypes[this.type],
options: option_,
},
nonce: SnowflakeUtil.generate(),
},
});
return true;
@@ -666,6 +667,7 @@ class ApplicationCommand extends Base {
type: ApplicationCommandTypes[this.type],
target_id: ApplicationCommandTypes[this.type] == 1 ? message.author.id : message.id,
},
nonce: SnowflakeUtil.generate(),
},
});
return true;