Skip to content

Commit

Permalink
Fix everyone pings
Browse files Browse the repository at this point in the history
  • Loading branch information
deepsarda committed Aug 9, 2023
1 parent c5dfa73 commit 2ccae68
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils/permissions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ BaseGuildTextChannel.prototype.send = async function (options) {
}

const { body, files } = await messagePayload.resolveFiles();
if (body)
//@ts-expect-error
body.allowed_mentions.parse = ['users', 'roles'];

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

0 comments on commit 2ccae68

Please sign in to comment.