mirror of
https://github.com/danbulant/discord.js
synced 2026-06-05 15:51:31 +00:00
fix(Message#pinnable): you can't pin system messages (#3279)
This commit is contained in:
parent
3ad16fa351
commit
abebeac193
1 changed files with 2 additions and 2 deletions
|
|
@ -357,8 +357,8 @@ class Message extends Base {
|
||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
get pinnable() {
|
get pinnable() {
|
||||||
return !this.guild ||
|
return this.type === 'DEFAULT' && (!this.guild ||
|
||||||
this.channel.permissionsFor(this.client.user).has(Permissions.FLAGS.MANAGE_MESSAGES, false);
|
this.channel.permissionsFor(this.client.user).has(Permissions.FLAGS.MANAGE_MESSAGES, false));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue