feat: split to tres discord server

This commit is contained in:
TresAbhi committed 2023-05-19 23:36:02 +00:00
1 parent cd48b65ed6
commit 784f983bd2
6 files changed
+19 -14

No files matched your search

+1 -1
View File
@@ -28,7 +28,7 @@ export default {
`**About**\n${
client.user?.username
} automates many mundane tasks and provide statistics in numerous flexible ways.\n\nMade by TresAbhi from the Skilled [SKLLD] clan.\nGitHub: https://github.com/tresabhi/sklld-bot\nDiscord server: https://discord.gg/nDt7AjGJQH\nSkilled server: https://discord.gg/ZPvcEG7DS8\n\n**Commands**\n${(interaction.guildId ===
discord.guild_id
discord.sklld_guild_id
? [...guildCommands, ...publicCommands]
: publicCommands
)
+3 -3
View File
@@ -68,7 +68,7 @@ export default {
try {
await member.setNickname(`${accountInfo[id].nickname}${clanTag}`);
if (interaction.guildId === discord.guild_id) {
if (interaction.guildId === discord.sklld_guild_id) {
if (
!interaction.guild?.members.me?.permissions.has('ManageRoles')
) {
@@ -94,8 +94,8 @@ export default {
return;
}
await member.roles.remove(discord.verify_role);
await member.roles.add(discord.peasant_role);
await member.roles.remove(discord.sklld_verify_role);
await member.roles.add(discord.sklld_peasant_role);
}
await interaction.editReply({