im a dumbass

This commit is contained in:
Julian 2022-08-26 20:44:53 -04:00
parent 4a2d05ceb6
commit 5d66c55b5b
Signed by: NotNite
GPG Key ID: BD91A5402CCEB08A
1 changed files with 9 additions and 6 deletions

View File

@ -38,9 +38,11 @@ const remind: Command = {
const when = parse(whenOption.value); const when = parse(whenOption.value);
if (when === null) { if (when === null) {
await interaction.createMessage( await interaction.createMessage({
"I didn't understand that time. Try something like `3h` or `2 days`." content:
); "I didn't understand that time. Try something like `3h` or `2 days`.",
flags: Constants.MessageFlags.EPHEMERAL
});
return; return;
} }
@ -55,9 +57,10 @@ const remind: Command = {
} }
}); });
await interaction.createMessage( await interaction.createMessage({
`Reminder set <t:${Math.floor(sendAt.getTime() / 1000)}:R>.` content: `Reminder set <t:${Math.floor(sendAt.getTime() / 1000)}:R>.`,
); flags: Constants.MessageFlags.EPHEMERAL
});
} }
}; };