This repository was archived by the owner on Oct 9, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export default {
1515
1616 if (
1717 interaction . inCachedGuild ( ) &&
18- interaction . channel ?. permissionsFor ( interaction . guild ?. members . me as GuildMember )
18+ ! interaction . channel ?. permissionsFor ( interaction . guild ?. members . me as GuildMember )
1919 . has ( requiredPerms )
2020 ) {
2121 return interaction . reply ( {
Original file line number Diff line number Diff line change @@ -21,9 +21,7 @@ export default {
2121 const connected = await db ?. connectedList . findFirst ( { where : { channelId : message . channelId } } ) ;
2222
2323 // ignore the message if it is not in an active network channel
24- if ( ! connected ) return ;
25- if ( ! await checks . execute ( message , db ) ) return ;
26-
24+ if ( ! connected || ! await checks . execute ( message , db ) ) return ;
2725
2826 const embed = new EmbedBuilder ( )
2927 . setTimestamp ( )
@@ -42,7 +40,7 @@ export default {
4240
4341 // Get data message being replied to from the db (for jump buttons)
4442 const replyInDb = await messageContentModifiers . appendReply ( message , db ) ;
45- // initialize & define censored properties (message.censored_xxx )
43+ // define censored properties to message class (message.censored_xxxx )
4644 await messageContentModifiers . execute ( message ) ;
4745
4846 const censoredEmbed = new EmbedBuilder ( embed . data ) . setFields ( { name : 'Message' , value : message . censored_content || '\u200B' } ) ;
You can’t perform that action at this time.
0 commit comments