Skip to content

Commit

Permalink
fix(Message): fix TypeError
Browse files Browse the repository at this point in the history
Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
  • Loading branch information
tignear and SpaceEEC committed Sep 8, 2021
1 parent 1df5ac6 commit a86b136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structures/Message.js
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ class Message extends Base {
get crosspostable() {
const bitfield =
Permissions.FLAGS.SEND_MESSAGES |
(this.author.id === this.client.user.id ? 0 : Permissions.FLAGS.MANAGE_MESSAGES);
(this.author.id === this.client.user.id ? Permissions.defaultBit : Permissions.FLAGS.MANAGE_MESSAGES);
return Boolean(
this.channel?.type === 'GUILD_NEWS' &&
!this.flags.has(MessageFlags.FLAGS.CROSSPOSTED) &&
Expand Down

0 comments on commit a86b136

Please sign in to comment.