File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -584,7 +584,7 @@ class Message extends Base {
584
584
*/
585
585
get editable ( ) {
586
586
const precheck = Boolean (
587
- this . author . id === this . client . user . id && ! this . deleted && ( ! this . guild || this . channel ?. viewable ) ,
587
+ this . author . id === this . client . user . id && ! deletedMessages . has ( this ) && ( ! this . guild || this . channel ?. viewable ) ,
588
588
) ;
589
589
// Regardless of permissions thread messages cannot be edited if
590
590
// the thread is locked.
@@ -600,7 +600,7 @@ class Message extends Base {
600
600
* @readonly
601
601
*/
602
602
get deletable ( ) {
603
- if ( this . deleted ) {
603
+ if ( deletedMessages . has ( this ) ) {
604
604
return false ;
605
605
}
606
606
if ( ! this . guild ) {
@@ -625,7 +625,7 @@ class Message extends Base {
625
625
const { channel } = this ;
626
626
return Boolean (
627
627
! this . system &&
628
- ! this . deleted &&
628
+ ! deletedMessages . has ( this ) &&
629
629
( ! this . guild ||
630
630
( channel ?. viewable &&
631
631
channel ?. permissionsFor ( this . client . user ) ?. has ( Permissions . FLAGS . MANAGE_MESSAGES , false ) ) ) ,
@@ -661,7 +661,7 @@ class Message extends Base {
661
661
this . type === 'DEFAULT' &&
662
662
channel . viewable &&
663
663
channel . permissionsFor ( this . client . user ) ?. has ( bitfield , false ) &&
664
- ! this . deleted ,
664
+ ! deletedMessages . has ( this ) ,
665
665
) ;
666
666
}
667
667
You can’t perform that action at this time.
0 commit comments