mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-14 13:55:03 +00:00
Made confirms ephemeral and fixed slash command duration options
This commit is contained in:
parent
a49bb81ce1
commit
4d8b6b5cd7
6 changed files with 16 additions and 25 deletions
|
@ -71,7 +71,7 @@ export const ForceMuteSlashCmd = {
|
|||
ppId = interaction.user.id;
|
||||
}
|
||||
|
||||
const convertedTime = options.time ? convertDelayStringToMS(options.time) : null;
|
||||
const convertedTime = options.time ? convertDelayStringToMS(options.time) ?? undefined : undefined;
|
||||
if (options.time && !convertedTime) {
|
||||
pluginData.getPlugin(CommonPlugin).sendErrorMessage(interaction, `Could not convert ${options.time} to a delay`);
|
||||
return;
|
||||
|
@ -92,7 +92,7 @@ export const ForceMuteSlashCmd = {
|
|||
attachments,
|
||||
mod,
|
||||
ppId,
|
||||
options.time,
|
||||
convertedTime,
|
||||
options.reason,
|
||||
contactMethods,
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue