Skip to content

Commit

Permalink
Merge pull request #7 from edgedb/only-moderators-can-run-cmds
Browse files Browse the repository at this point in the history
Stringify body data in editReply
  • Loading branch information
diksipav authored Oct 8, 2024
2 parents 839dd56 + cb0e2a6 commit 08f5d10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/lib/discord/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ export class Bot extends REST {
}

errorEmbed(msg?: string): APIEmbed {
console.log("Error:", msg);
return {
title: "Error",
description: msg ?? "There was an error executing your request",
Expand Down Expand Up @@ -158,7 +159,7 @@ export class Bot extends REST {
await this.patch(
Routes.webhookMessage(this.applicationId, interaction.token, "@original"),
{
body: data,
body: JSON.stringify(data),
}
);
}
Expand Down

0 comments on commit 08f5d10

Please sign in to comment.