mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 10:03:31 +01:00
refactor: use static fields (#7701)
* refactor: use static fields * chore: refactor missed areas * chore: remove memberof docs * chore: make type changes
This commit is contained in:
@@ -623,7 +623,7 @@ class Message extends Base {
|
||||
get crosspostable() {
|
||||
const bitfield =
|
||||
PermissionFlagsBits.SendMessages |
|
||||
(this.author.id === this.client.user.id ? PermissionsBitField.defaultBit : PermissionFlagsBits.ManageMessages);
|
||||
(this.author.id === this.client.user.id ? PermissionsBitField.DefaultBit : PermissionFlagsBits.ManageMessages);
|
||||
const { channel } = this;
|
||||
return Boolean(
|
||||
channel?.type === ChannelType.GuildNews &&
|
||||
|
||||
Reference in New Issue
Block a user