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