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

+2 -2
View File
@@ -12,8 +12,8 @@ export function handleError(error: Error, client: Client, command: string) {
(
client.guilds.cache
.get(discord.guild_id)
?.channels.cache.get(discord.log_channel) as TextChannel
.get(discord.tres_guild_id)
?.channels.cache.get(discord.tres_log_channel) as TextChannel
).send({
embeds: [
new EmbedBuilder()
+4 -2
View File
@@ -3,9 +3,11 @@ import discord from '../../discord.json' assert { type: 'json' };
import { SKILLED_COLOR } from '../constants/colors.js';
export default async function (member: GuildMember) {
if (member.guild.id === discord.guild_id) {
if (member.guild.id === discord.sklld_guild_id) {
await (
member.guild.channels.cache.get(discord.verify_channel) as TextChannel
member.guild.channels.cache.get(
discord.sklld_verify_channel,
) as TextChannel
).send({
content: member.toString(),
embeds: [
+1 -1
View File
@@ -59,7 +59,7 @@ try {
console.log(`Refreshing ${guildCommands.length} guild command(s).`);
const guildData = (await rest.put(
Routes.applicationGuildCommands(getClientId(), discord.guild_id),
Routes.applicationGuildCommands(getClientId(), discord.sklld_guild_id),
{ body: guildCommands },
)) as RESTPostAPIChatInputApplicationCommandsJSONBody[];
console.log(`Successfully refreshed ${guildData.length} guild command(s).`);