Skip to content

Commit

Permalink
Merge branch 'main' of github.com:N3aar/Eery-Project
Browse files Browse the repository at this point in the history
  • Loading branch information
Psykka committed Jun 1, 2024
2 parents 93c9d9e + e020f27 commit 0390cf2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/commands/user/remindme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@ export class RemindMeCommand extends Command {
if (!member || !interaction.channel) return;

const time = interaction.options.getNumber("minutes") || 15;
const message = interaction.options.getString("message") || "";

const minutes = Math.max(Math.min(time, 60), 1);

const ms = minutes * 60000;
const message =
interaction.options.getString("message") || `${time} Minutos`;

const channel = interaction.channel as TextChannel;
const memberId = member.id;
Expand Down

0 comments on commit 0390cf2

Please sign in to comment.