feat: made /verify public

This commit is contained in:
TresAbhi committed 2023-04-28 13:56:08 +00:00
1 parent 8749c21010
commit 735c40181c
1 file changed
+7 -4
+7 -4
View File
@@ -11,11 +11,11 @@ import getWargamingResponse from '../utilities/getWargamingResponse.js';
export default { export default {
inProduction: true, inProduction: true,
inDevelopment: false, inDevelopment: false,
inPublic: false, inPublic: true,
command: new SlashCommandBuilder() command: new SlashCommandBuilder()
.setName('verify') .setName('verify')
.setDescription('Verifies the user with Blitz') .setDescription("Set's the user's username to their in-game name")
.addStringOption((option) => .addStringOption((option) =>
option option
.setName('server') .setName('server')
@@ -54,8 +54,11 @@ export default {
member member
?.setNickname(`${name}${clanTag}`) ?.setNickname(`${name}${clanTag}`)
.then(async () => { .then(async () => {
await member.roles.remove(discord.verify_role); if (interaction.guildId === discord.guild_id) {
await member.roles.add(discord.peasant_role); await member.roles.remove(discord.verify_role);
await member.roles.add(discord.peasant_role);
}
await interaction.editReply({ await interaction.editReply({
embeds: [ embeds: [
new EmbedBuilder() new EmbedBuilder()