From b68bd91e314c5a0d0d1dae715f3e5410bfa983f2 Mon Sep 17 00:00:00 2001 From: AnxietyisReal <96593068+AnxietyisReal@users.noreply.github.com> Date: Tue, 28 Feb 2023 11:38:40 +1100 Subject: [PATCH] Only check roles on main server. --- src/commands/mp.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/commands/mp.ts b/src/commands/mp.ts index 9e399e9..cc0c3b8 100644 --- a/src/commands/mp.ts +++ b/src/commands/mp.ts @@ -73,7 +73,9 @@ export default { interaction.reply({embeds: [embed2]}) }, url: async()=>{ - if (!interaction.member.roles.cache.has(client.config.mainServer.roles.mpmanager) && !interaction.member.roles.cache.has(client.config.mainServer.roles.bottech) && !interaction.member.roles.cache.has(client.config.mainServer.roles.admin)) return client.youNeedRole(interaction, 'mpmanager'); + if (client.config.mainServer.id == interaction.guildId) { + if (!interaction.member.roles.cache.has(client.config.mainServer.roles.mpmanager) && !interaction.member.roles.cache.has(client.config.mainServer.roles.bottech) && !interaction.member.roles.cache.has(client.config.mainServer.roles.admin)) return client.youNeedRole(interaction, 'mpmanager'); + } const address = interaction.options.getString('address'); if (!address){ try {