mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
feat: split config.json into public and private
This commit is contained in:
1 parent
c3399b54c5
commit
a5ebcd92a7
5 files changed
+16
-14
No files matched your search
@@ -5,6 +5,7 @@ import {
|
||||
SlashCommandBuilder,
|
||||
} from 'discord.js';
|
||||
import config from '../../config.json' assert { type: 'json' };
|
||||
import discord from '../../discord.json' assert { type: 'json' };
|
||||
import AccountList from '../types/accountList.js';
|
||||
|
||||
const SERVER_NAMES = { com: 'North America', eu: 'Europe', asia: 'Asia' };
|
||||
@@ -37,8 +38,8 @@ export async function execute(
|
||||
member
|
||||
?.setNickname(`${ign}${clanTag}`)
|
||||
.then(async () => {
|
||||
await member.roles.remove(config.discord_verify_role);
|
||||
await member.roles.add(config.discord_peasant_role);
|
||||
await member.roles.remove(discord.verify_role);
|
||||
await member.roles.add(discord.peasant_role);
|
||||
await interaction.reply({
|
||||
embeds: [
|
||||
new EmbedBuilder()
|
||||
|
||||
Reference in new issue
Block a user