@@ -4,10 +4,7 @@ const { getConfigByGuildId } = require('../utils/serverConfig');
44const THEMES_PER_PAGE = 5 ;
55
66const SUPPORTED_CHANNELS = [
7- '811261298997460992' ,
8- '847566769258233926' ,
9- '811262084968742932' ,
10- '811263527239024640'
7+ '875213883776847873'
118] ;
129
1310const RESTRICTED_ROLES = [
@@ -21,7 +18,7 @@ function isChannelSupported(channelId) {
2118}
2219
2320function hasPermission ( member , channelId ) {
24- if ( channelId === '811263527239024640 ' ) return true ;
21+ if ( channelId === '875213883776847873 ' ) return true ;
2522 if ( RESTRICTED_ROLES . some ( roleId => member . roles . cache . has ( roleId ) ) ) return true ;
2623 return false ;
2724}
@@ -482,14 +479,14 @@ module.exports = {
482479 const isSupported = isChannelSupported ( interaction . channelId ) ;
483480 if ( ! isSupported ) {
484481 return interaction . reply ( {
485- content : 'Please use <#811263527239024640 > to use this command.' ,
482+ content : 'Please use <#875213883776847873 > to use this command.' ,
486483 flags : MessageFlags . Ephemeral
487484 } ) ;
488485 }
489486
490487 if ( ! hasPermission ( interaction . member , interaction . channelId ) ) {
491488 return interaction . reply ( {
492- content : '❌ You do not have permission to use this command in this channel. Please use <#811263527239024640 > instead.' ,
489+ content : '❌ You do not have permission to use this command in this channel. Please use <#875213883776847873 > instead.' ,
493490 flags : MessageFlags . Ephemeral
494491 } ) ;
495492 }
@@ -548,7 +545,7 @@ module.exports = {
548545 const isSupported = isChannelSupported ( message . channelId ) ;
549546 if ( ! isSupported ) {
550547 try {
551- const msg = await message . reply ( 'Please use <#811263527239024640 > to use this command.' ) ;
548+ const msg = await message . reply ( 'Please use <#875213883776847873 > to use this command.' ) ;
552549 setTimeout ( ( ) => msg . delete ( ) . catch ( ( ) => { } ) , 30000 ) ;
553550 } catch ( err ) {
554551 console . error ( 'Error sending info message:' , err ) ;
@@ -558,7 +555,7 @@ module.exports = {
558555
559556 if ( ! hasPermission ( message . member , message . channelId ) ) {
560557 try {
561- const msg = await message . reply ( '❌ You do not have permission to use this command in this channel. Please use <#811263527239024640 > instead.' ) ;
558+ const msg = await message . reply ( '❌ You do not have permission to use this command in this channel. Please use <#875213883776847873 > instead.' ) ;
562559 setTimeout ( ( ) => msg . delete ( ) . catch ( ( ) => { } ) , 15000 ) ;
563560 } catch ( err ) {
564561 console . error ( 'Error sending permission message:' , err ) ;
0 commit comments