mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49: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
+2
-2
@@ -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()
|
||||
|
||||
@@ -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: [
|
||||
|
||||
@@ -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).`);
|
||||
|
||||
Reference in new issue
Block a user