Skip to content

Commit

Permalink
fix types?
Browse files Browse the repository at this point in the history
  • Loading branch information
wdhdev committed Apr 4, 2024
1 parent 39b004f commit 1239386
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/commands/reminders/edit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const command: Command = {
ephemeral: true,
async execute(interaction: CommandInteraction, client: ExtendedClient, Discord: typeof import("discord.js")) {
try {
const id = interaction.options.get("id").value;
const id = interaction.options.get("id").value as string;
const newReason = interaction.options.get("new-reason").value as string;

const reminder = await Reminder.findOne({ reminder_id: id, user: interaction.user.id });
Expand Down
2 changes: 1 addition & 1 deletion src/commands/reminders/info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const command: Command = {
ephemeral: true,
async execute(interaction: CommandInteraction, client: ExtendedClient, Discord: typeof import("discord.js")) {
try {
const id = interaction.options.get("id").value;
const id = interaction.options.get("id").value as string;

const reminder = await Reminder.findOne({ reminder_id: id, user: interaction.user.id });

Expand Down
2 changes: 1 addition & 1 deletion src/commands/reminders/remindme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const command: Command = {
return;
}

const id = randomUUID().slice(0, 8);
const id = randomUUID().slice(0, 8) as string;

const reminder = await new Reminder({
reminder_id: id,
Expand Down

0 comments on commit 1239386

Please sign in to comment.