This commit is contained in:
Jonny_Bro (Nikita) 2023-06-17 16:58:31 +05:00
parent 002a621f63
commit 17aece54ff

View file

@ -84,11 +84,11 @@ class Sendmessage extends BaseCommand {
async execute(client, interaction) { async execute(client, interaction) {
await interaction.deferReply({ ephemeral: true }); 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"); channel = command === "rpinfo" ? guild.channels.cache.get("1119571321421058098") : guild.channels.cache.get("1119579266376540213");
const command = interaction.options.getSubcommand(), const text = interaction.options.getString("text"),
text = interaction.options.getString("text"),
name = interaction.options.getString("name"), name = interaction.options.getString("name"),
attachment = interaction.options.getAttachment("attachment"); attachment = interaction.options.getAttachment("attachment");