mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
feat: split to tres discord server
This commit is contained in:
1 parent
cd48b65ed6
commit
784f983bd2
6 files changed
+19
-14
No files matched your search
@@ -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
|
||||
)
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in new issue
Block a user