diff --git a/src/commands/info/question.ts b/src/commands/info/question.ts index 15ec52ff..8229be2e 100644 --- a/src/commands/info/question.ts +++ b/src/commands/info/question.ts @@ -16,8 +16,9 @@ export default { async execute(interaction: ChatInputCommandInteraction_broker) { try { - // TogetherCrew-Leads: 983364577096003604 TogetherCrew-Contributors: 983364691692748832 + // RnDAO:915914985140531240 TogetherCrew-Leads: 983364577096003604 TogetherCrew-Contributors: 983364691692748832 if ( + interaction.guildId === '915914985140531240' && !( interaction.member?.roles.cache.has('983364577096003604') || interaction.member?.roles.cache.has('983364691692748832') diff --git a/src/services/command.service.ts b/src/services/command.service.ts index 1f49a25b..24807dbe 100644 --- a/src/services/command.service.ts +++ b/src/services/command.service.ts @@ -35,7 +35,8 @@ async function registerCommand(): Promise { const commandData = [...client.commands.values()].map((command) => command.data.toJSON()); await rest.put( // RnDAO: 915914985140531240 - Routes.applicationGuildCommands(config.discord.clientId, '980858613587382322'), + // Routes.applicationGuildCommands(config.discord.clientId, '915914985140531240'), + Routes.applicationCommands(config.discord.clientId), { body: commandData }, ); logger.info('Commands Registerd');