Skip to content

Commit

Permalink
FIx permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
deepsarda committed Aug 10, 2023
1 parent 2ccae68 commit 5160e0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/permissions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ BaseGuildTextChannel.prototype.send = async function (options) {
const { body, files } = await messagePayload.resolveFiles();
if (body)
//@ts-expect-error
body.allowed_mentions.parse = ['users', 'roles'];
body.allowed_mentions = { parse: ['users', 'roles'] };

//@ts-expect-error
const d = await this.client.rest.post(Routes.channelMessages(this.id), { body, files });
Expand Down

0 comments on commit 5160e0a

Please sign in to comment.