Skip to content

Commit c07db6a

Browse files
authored
Add files via upload
1 parent e06e9e2 commit c07db6a

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

src/commands/themes.js

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ const { getConfigByGuildId } = require('../utils/serverConfig');
44
const THEMES_PER_PAGE = 5;
55

66
const SUPPORTED_CHANNELS = [
7-
'811261298997460992',
8-
'847566769258233926',
9-
'811262084968742932',
10-
'811263527239024640'
7+
'875213883776847873'
118
];
129

1310
const RESTRICTED_ROLES = [
@@ -21,7 +18,7 @@ function isChannelSupported(channelId) {
2118
}
2219

2320
function 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

Comments
 (0)