From 17aece54ff20053011d0ae29ee4c51a97908f892 Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Sat, 17 Jun 2023 16:58:31 +0500 Subject: [PATCH] oi --- commands/SunCountry/sendmessage.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/SunCountry/sendmessage.js b/commands/SunCountry/sendmessage.js index 1c3d8788..60c2c376 100644 --- a/commands/SunCountry/sendmessage.js +++ b/commands/SunCountry/sendmessage.js @@ -84,11 +84,11 @@ class Sendmessage extends BaseCommand { async execute(client, interaction) { await interaction.deferReply({ ephemeral: true }); - const guild = client.guilds.cache.get("600970971410857996"), + const command = interaction.options.getSubcommand(), + guild = client.guilds.cache.get("600970971410857996"), channel = command === "rpinfo" ? guild.channels.cache.get("1119571321421058098") : guild.channels.cache.get("1119579266376540213"); - const command = interaction.options.getSubcommand(), - text = interaction.options.getString("text"), + const text = interaction.options.getString("text"), name = interaction.options.getString("name"), attachment = interaction.options.getAttachment("attachment");