1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-09-29 08:20:59 -04:00

Only check roles on main server.

This commit is contained in:
toast-ts 2023-02-28 11:38:40 +11:00
parent 1b3b19bc4f
commit 8be6534ded

View File

@ -73,7 +73,9 @@ export default {
interaction.reply({embeds: [embed2]})
},
url: async()=>{
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 {