Updated commands

This commit is contained in:
Christer Warén 2021-08-19 01:52:16 +03:00
parent cecadb2bef
commit 2d68eb1ffd
10 changed files with 120 additions and 66 deletions

View File

@ -1,3 +1,5 @@
const { SlashCommandBuilder } = require('@discordjs/builders');
module.exports = { module.exports = {
name: 'bug', name: 'bug',
alias: 'none', alias: 'none',
@ -5,7 +7,10 @@ module.exports = {
description: 'Report a bug', description: 'Report a bug',
permission: 'none', permission: 'none',
category: 'info', category: 'info',
async execute(msg, args, client, Discord, command) { data: new SlashCommandBuilder()
.setName('bug')
.setDescription('Report a bug'),
async execute(interaction, client, Discord, command) {
let message = {}; let message = {};
message.bugTitle = client.messages.bugTitle.replace("%client.user.username%", client.user.username); message.bugTitle = client.messages.bugTitle.replace("%client.user.username%", client.user.username);
@ -17,7 +22,7 @@ module.exports = {
.setColor(client.config.embedColor) .setColor(client.config.embedColor)
.setDescription(message.bugDescription) .setDescription(message.bugDescription)
.setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, '')); .setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, ''));
msg.channel.send({ embeds: [embed] }); interaction.reply({ embeds: [embed] });
} }
}; };

View File

@ -1,3 +1,5 @@
const { SlashCommandBuilder } = require('@discordjs/builders');
module.exports = { module.exports = {
name: 'help', name: 'help',
alias: 'h', alias: 'h',
@ -5,11 +7,14 @@ module.exports = {
description: 'Get help using bot', description: 'Get help using bot',
permission: 'none', permission: 'none',
category: 'info', category: 'info',
execute(msg, args, client, Discord, command) { data: new SlashCommandBuilder()
.setName('help')
.setDescription('Get help using bot'),
execute(interaction, client, Discord, command) {
let message = {}; let message = {};
if (args[1]) { if (args[1]) {
if (!client.commands.has(args[1]) || (client.commands.has(args[1]) && client.commands.get(args[1]).omitFromHelp === true)) return msg.channel.send('That command does not exist'); if (!client.commands.has(args[1]) || (client.commands.has(args[1]) && client.commands.get(args[1]).omitFromHelp === true)) return interaction.reply('That command does not exist');
const command = client.commands.get(args[1]); const command = client.commands.get(args[1]);
message.helpCommandTitle = client.messages.helpCommandTitle.replace("%client.config.prefix%", client.config.prefix); message.helpCommandTitle = client.messages.helpCommandTitle.replace("%client.config.prefix%", client.config.prefix);
@ -24,7 +29,7 @@ module.exports = {
.setColor(client.config.embedColor) .setColor(client.config.embedColor)
.setDescription(message.helpCommandDescription) .setDescription(message.helpCommandDescription)
.setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, '')); .setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, ''));
msg.channel.send({ embeds: [embed] }); interaction.reply({ embeds: [embed] });
} else { } else {
const categories = []; const categories = [];
for (let i = 0; i < client.commands.size; i++) { for (let i = 0; i < client.commands.size; i++) {
@ -45,7 +50,7 @@ module.exports = {
.setColor(client.config.embedColor) .setColor(client.config.embedColor)
.setDescription(message.helpDescription) .setDescription(message.helpDescription)
.setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, '')); .setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, ''));
msg.channel.send({ embeds: [embed] }); interaction.reply({ embeds: [embed] });
} }
} }
}; };

View File

@ -1,3 +1,5 @@
const { SlashCommandBuilder } = require('@discordjs/builders');
module.exports = { module.exports = {
name: 'invite', name: 'invite',
alias: 'i', alias: 'i',
@ -5,7 +7,10 @@ module.exports = {
description: 'Invite Bot', description: 'Invite Bot',
permission: 'none', permission: 'none',
category: 'info', category: 'info',
execute(msg, args, client, Discord, command) { data: new SlashCommandBuilder()
.setName('invite')
.setDescription('Invite Bot'),
execute(interaction, client, Discord, command) {
let message = {}; let message = {};
message.inviteTitle = client.messages.inviteTitle.replace("%client.user.username%", client.user.username); message.inviteTitle = client.messages.inviteTitle.replace("%client.user.username%", client.user.username);
const embed = new Discord.MessageEmbed() const embed = new Discord.MessageEmbed()
@ -13,6 +18,6 @@ module.exports = {
.setColor(client.config.embedColor) .setColor(client.config.embedColor)
.setURL("https://discordapp.com/api/oauth2/authorize?client_id=" + client.user.id + "&permissions=2184465408&scope=applications.commands%20bot") //View Channels, Send Messages, Embed Links, Use External Emojis, Use Slash Commands, Connect, Speak, Use Voice Activity .setURL("https://discordapp.com/api/oauth2/authorize?client_id=" + client.user.id + "&permissions=2184465408&scope=applications.commands%20bot") //View Channels, Send Messages, Embed Links, Use External Emojis, Use Slash Commands, Connect, Speak, Use Voice Activity
.setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, '')); .setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, ''));
return msg.channel.send({ embeds: [embed] }); return interaction.reply({ embeds: [embed] });
} }
}; };

View File

@ -1,3 +1,5 @@
const { SlashCommandBuilder } = require('@discordjs/builders');
module.exports = { module.exports = {
name: 'list', name: 'list',
alias: 'l', alias: 'l',
@ -5,11 +7,14 @@ module.exports = {
description: 'List radio stations.', description: 'List radio stations.',
permission: 'none', permission: 'none',
category: 'radio', category: 'radio',
execute(msg, args, client, Discord, command) { data: new SlashCommandBuilder()
.setName('list')
.setDescription('List radio stations.'),
execute(interaction, client, Discord, command) {
let message = {}; let message = {};
if(!client.stations) { if(!client.stations) {
message.errorToGetPlaylist = client.messages.errorToGetPlaylist.replace("%client.config.supportGuild%", client.config.supportGuild); message.errorToGetPlaylist = client.messages.errorToGetPlaylist.replace("%client.config.supportGuild%", client.config.supportGuild);
return msg.channel.send(client.messageEmojis["error"] + message.errorToGetPlaylist); return interaction.reply(client.messageEmojis["error"] + message.errorToGetPlaylist);
} }
let stations = `${client.stations.map(s => `**#** ${s.name}`).join('\n')}` let stations = `${client.stations.map(s => `**#** ${s.name}`).join('\n')}`
const hashs = stations.split('**#**').length; const hashs = stations.split('**#**').length;
@ -23,6 +28,6 @@ module.exports = {
.setColor(client.config.embedColor) .setColor(client.config.embedColor)
.setDescription(stations) .setDescription(stations)
.setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, '')); .setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, ''));
return msg.channel.send({ embeds: [embed] }); return interaction.reply({ embeds: [embed] });
} }
}; };

View File

@ -1,3 +1,5 @@
const { SlashCommandBuilder } = require('@discordjs/builders');
module.exports = { module.exports = {
name: 'maintenance', name: 'maintenance',
alias: 'm', alias: 'm',
@ -5,14 +7,17 @@ module.exports = {
description: 'Bot Maintenance', description: 'Bot Maintenance',
permission: 'none', permission: 'none',
category: 'info', category: 'info',
execute(msg, args, client, Discord, command) { data: new SlashCommandBuilder()
.setName('maintenance')
.setDescription('Bot Maintenance'),
execute(interaction, client, Discord, command) {
let message = {}; let message = {};
if(!client.funcs.isDev(client.config.devId, msg.author.id)) return msg.channel.send(client.messageEmojis["error"] + client.messages.notAllowed); if(!client.funcs.isDev(client.config.devId, interaction.user.id)) return interaction.reply(client.messageEmojis["error"] + client.messages.notAllowed);
if(!client.stations) { if(!client.stations) {
message.errorToGetPlaylist = client.messages.errorToGetPlaylist.replace("%client.config.supportGuild%", client.config.supportGuild); message.errorToGetPlaylist = client.messages.errorToGetPlaylist.replace("%client.config.supportGuild%", client.config.supportGuild);
return msg.channel.send(client.messageEmojis["error"] + message.errorToGetPlaylist); return interaction.reply(client.messageEmojis["error"] + message.errorToGetPlaylist);
} }
let currentRadios = client.radio.keys(); let currentRadios = client.radio.keys();
@ -48,6 +53,6 @@ module.exports = {
.setColor(client.config.embedColor) .setColor(client.config.embedColor)
.setDescription("Stopped all radios" + "\n" + stoppedRadios) .setDescription("Stopped all radios" + "\n" + stoppedRadios)
.setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, '')); .setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, ''));
return msg.channel.send({ embeds: [embed] }); return interaction.reply({ embeds: [embed] });
} }
}; };

View File

@ -1,3 +1,5 @@
const { SlashCommandBuilder } = require('@discordjs/builders');
module.exports = { module.exports = {
name: 'nowplaying', name: 'nowplaying',
alias: 'np', alias: 'np',
@ -5,13 +7,16 @@ module.exports = {
description: 'Current Radio Station', description: 'Current Radio Station',
permission: 'none', permission: 'none',
category: 'radio', category: 'radio',
async execute(msg, args, client, Discord, command) { data: new SlashCommandBuilder()
.setName('nowplaying')
.setDescription('Current Radio Station'),
async execute(interaction, client, Discord, command) {
let message = {}; let message = {};
const radio = client.radio.get(msg.guild.id); const radio = client.radio.get(interaction.guild.id);
if (!radio) return msg.channel.send('There is nothing playing.'); if (!radio) return interaction.reply('There is nothing playing.');
if(!client.stations) { if(!client.stations) {
message.errorToGetPlaylist = client.messages.errorToGetPlaylist.replace("%client.config.supportGuild%", client.config.supportGuild); message.errorToGetPlaylist = client.messages.errorToGetPlaylist.replace("%client.config.supportGuild%", client.config.supportGuild);
return msg.channel.send(client.messageEmojis["error"] + message.errorToGetPlaylist); return interaction.reply(client.messageEmojis["error"] + message.errorToGetPlaylist);
} }
const completed = (radio.connection.dispatcher.streamTime.toFixed(0)); const completed = (radio.connection.dispatcher.streamTime.toFixed(0));
@ -25,6 +30,6 @@ module.exports = {
.setColor(client.config.embedColor) .setColor(client.config.embedColor)
.setDescription(message.nowplayingDescription) .setDescription(message.nowplayingDescription)
.setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, '')); .setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, ''));
return msg.channel.send({ embeds: [embed] }); return interaction.reply({ embeds: [embed] });
} }
}; };

View File

@ -4,28 +4,37 @@ const {
getVoiceConnection, getVoiceConnection,
joinVoiceChannel joinVoiceChannel
} = require("@discordjs/voice"); } = require("@discordjs/voice");
const { SlashCommandBuilder } = require('@discordjs/builders');
const { createDiscordJSAdapter } = require("../utils/adapter"); const { createDiscordJSAdapter } = require("../utils/adapter");
module.exports = { module.exports = {
name: "play", name: "play",
alias: "p", alias: "p",
usage: "<song name>", usage: "<song name>",
description: "Play some music.", description: "Play radio.",
permission: "none", permission: "none",
category: "radio", category: "radio",
async execute(msg, args, client, Discord, command) { data: new SlashCommandBuilder()
.setName('play')
.setDescription('Play radio.')
.addStringOption(option =>
option.setName('query')
.setDescription('Select station')
.setRequired(true)),
async execute(interaction, client, Discord, command) {
let message = {}; let message = {};
let url = args[1] ? args[1].replace(/<(.+)>/g, "$1") : ""; let query = interaction.options.getString("query");
const radio = client.radio.get(msg.guild.id); let url = query ? query.replace(/<(.+)>/g, "$1") : "";
const voiceChannel = msg.member.voice.channel; const radio = client.radio.get(interaction.guild.id);
const voiceChannel = interaction.member.voice.channel;
if (!radio) { if (!radio) {
if (!msg.member.voice.channel) if (!interaction.member.voice.channel)
return msg.channel.send( return interaction.reply(
client.messageEmojis["error"] + client.messages.noVoiceChannel client.messageEmojis["error"] + client.messages.noVoiceChannel
); );
} else { } else {
if (voiceChannel !== radio.voiceChannel) if (voiceChannel !== radio.voiceChannel)
return msg.channel.send( return interaction.reply(
client.messageEmojis["error"] + client.messages.wrongVoiceChannel client.messageEmojis["error"] + client.messages.wrongVoiceChannel
); );
} }
@ -34,25 +43,25 @@ module.exports = {
"%client.config.supportGuild%", "%client.config.supportGuild%",
client.config.supportGuild client.config.supportGuild
); );
return msg.channel.send(client.messageEmojis["error"] + message.errorToGetPlaylist); return interaction.reply(client.messageEmojis["error"] + message.errorToGetPlaylist);
} }
if (!args[1]) return msg.channel.send(client.messages.noQuery); if (!query) return interaction.reply(client.messages.noQuery);
const permissions = voiceChannel.permissionsFor(msg.client.user); const permissions = voiceChannel.permissionsFor(interaction.client.user);
if (!permissions.has("CONNECT")) { if (!permissions.has("CONNECT")) {
return msg.channel.send(client.messageEmojis["error"] + client.messages.noPermsConnect); return interaction.reply(client.messageEmojis["error"] + client.messages.noPermsConnect);
} }
if (!permissions.has("SPEAK")) { if (!permissions.has("SPEAK")) {
return msg.channel.send(client.messageEmojis["error"] + client.messages.noPermsSpeak); return interaction.reply(client.messageEmojis["error"] + client.messages.noPermsSpeak);
} }
let station; let station;
const number = parseInt(args[1] - 1); const number = parseInt(query - 1);
if (url.startsWith("http")) { if (url.startsWith("http")) {
return msg.channel.send( return interaction.reply(
client.messageEmojis["error"] + client.messages.errorStationURL client.messageEmojis["error"] + client.messages.errorStationURL
); );
} else if (!isNaN(number)) { } else if (!isNaN(number)) {
if (number > client.stations.length - 1) { if (number > client.stations.length - 1) {
return msg.channel.send( return interaction.reply(
client.messageEmojis["error"] + client.messages.wrongStationNumber client.messageEmojis["error"] + client.messages.wrongStationNumber
); );
} else { } else {
@ -60,13 +69,13 @@ module.exports = {
station = client.stations[number]; station = client.stations[number];
} }
} else { } else {
if (args[1].length < 3) if (query.length < 3)
return msg.channel.send( return interaction.reply(
client.messageEmojis["error"] + client.messages.tooShortSearch client.messageEmojis["error"] + client.messages.tooShortSearch
); );
const sstation = await searchStation(args.slice(1).join(" "), client); const sstation = await searchStation(query.slice(1), client);
if (!sstation) if (!sstation)
return msg.channel.send( return interaction.reply(
client.messageEmojis["error"] + client.messages.noSearchResults client.messageEmojis["error"] + client.messages.noSearchResults
); );
url = sstation.stream[sstation.stream.default]; url = sstation.stream[sstation.stream.default];
@ -74,24 +83,24 @@ module.exports = {
} }
if (radio) { if (radio) {
client.funcs.statisticsUpdate(client, msg.guild, radio); client.funcs.statisticsUpdate(client, interaction.guild, radio);
radio.audioPlayer.stop(); radio.audioPlayer.stop();
radio.station = station; radio.station = station;
radio.textChannel = msg.channel; radio.textChannel = interaction.channel;
play(msg.guild, client, url); play(interaction.guild, client, url);
return; return;
} }
const construct = { const construct = {
textChannel: msg.channel, textChannel: interaction.channel,
voiceChannel: voiceChannel, voiceChannel: voiceChannel,
connection: null, connection: null,
audioPlayer: createAudioPlayer(), audioPlayer: createAudioPlayer(),
station: station station: station
}; };
client.radio.set(msg.guild.id, construct); client.radio.set(interaction.guild.id, construct);
try { try {
const connection = const connection =
@ -104,21 +113,21 @@ module.exports = {
construct.connection = connection; construct.connection = connection;
let date = new Date(); let date = new Date();
construct.startTime = date.getTime(); construct.startTime = date.getTime();
play(msg.guild, client, url); play(interaction.guild, client, url);
client.datastore.checkEntry(msg.guild.id); client.datastore.checkEntry(interaction.guild.id);
construct.currentGuild = client.datastore.getEntry(msg.guild.id); construct.currentGuild = client.datastore.getEntry(interaction.guild.id);
if (!construct.currentGuild.statistics[construct.station.name]) { if (!construct.currentGuild.statistics[construct.station.name]) {
construct.currentGuild.statistics[construct.station.name] = {}; construct.currentGuild.statistics[construct.station.name] = {};
construct.currentGuild.statistics[construct.station.name].time = 0; construct.currentGuild.statistics[construct.station.name].time = 0;
construct.currentGuild.statistics[construct.station.name].used = 0; construct.currentGuild.statistics[construct.station.name].used = 0;
client.datastore.updateEntry(msg.guild, construct.currentGuild); client.datastore.updateEntry(interaction.guild, construct.currentGuild);
} }
} catch (error) { } catch (error) {
console.log(error); console.log(error);
client.radio.delete(msg.guild.id); client.radio.delete(interaction.guild.id);
return msg.channel.send(client.messageEmojis["error"] + `An error occured: ${error}`); return interaction.reply(client.messageEmojis["error"] + `An error occured: ${error}`);
} }
} }
}; };

View File

@ -1,3 +1,5 @@
const { SlashCommandBuilder } = require('@discordjs/builders');
module.exports = { module.exports = {
name: 'statistics', name: 'statistics',
alias: 'stats', alias: 'stats',
@ -5,15 +7,18 @@ module.exports = {
description: 'Show usage statistics.', description: 'Show usage statistics.',
permission: 'none', permission: 'none',
category: 'info', category: 'info',
execute(msg, args, client, Discord, command) { data: new SlashCommandBuilder()
.setName('statistics')
.setDescription('Show usage statistics.'),
execute(interaction, client, Discord, command) {
let message = {}; let message = {};
let stations = client.stations; let stations = client.stations;
let currentGuild = client.datastore.getEntry(msg.guild.id); let currentGuild = client.datastore.getEntry(interaction.guild.id);
let statistics = ""; let statistics = "";
if(!client.stations) { if(!client.stations) {
message.errorToGetPlaylist = client.messages.errorToGetPlaylist.replace("%client.config.supportGuild%", client.config.supportGuild); message.errorToGetPlaylist = client.messages.errorToGetPlaylist.replace("%client.config.supportGuild%", client.config.supportGuild);
return msg.channel.send(client.messageEmojis["error"] + message.errorToGetPlaylist); return interaction.reply(client.messageEmojis["error"] + message.errorToGetPlaylist);
} }
if(!currentGuild || currentGuild && !currentGuild.statistics){ if(!currentGuild || currentGuild && !currentGuild.statistics){
@ -34,6 +39,6 @@ module.exports = {
.setColor(client.config.embedColor) .setColor(client.config.embedColor)
.setDescription(statistics) .setDescription(statistics)
.setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, '')); .setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, ''));
return msg.channel.send({ embeds: [embed] }); return interaction.reply({ embeds: [embed] });
} }
}; };

View File

@ -1,11 +1,16 @@
const { SlashCommandBuilder } = require('@discordjs/builders');
module.exports = { module.exports = {
name: 'status', name: 'status',
alias: 'none', alias: 'st',
usage: '', usage: '',
description: 'Bot Status', description: 'Bot Status',
permission: 'none', permission: 'none',
category: 'info', category: 'info',
async execute(msg, args, client, Discord, command) { data: new SlashCommandBuilder()
.setName('status')
.setDescription('Bot Status'),
async execute(interaction, client, Discord, command) {
let message = {}; let message = {};
message.statusTitle = client.messages.statusTitle.replace("%client.user.username%", client.user.username); message.statusTitle = client.messages.statusTitle.replace("%client.user.username%", client.user.username);
@ -15,13 +20,13 @@ module.exports = {
.setTitle(message.statusTitle) .setTitle(message.statusTitle)
.setThumbnail("https://cdn.discordapp.com/emojis/" + client.messageEmojis["logo"].replace(/[^0-9]+/g, '')) .setThumbnail("https://cdn.discordapp.com/emojis/" + client.messageEmojis["logo"].replace(/[^0-9]+/g, ''))
.setColor(client.config.embedColor) .setColor(client.config.embedColor)
.addField(client.messages.statusField1, Date.now() - msg.createdTimestamp + "ms", true) .addField(client.messages.statusField1, Date.now() - interaction.createdTimestamp + "ms", true)
.addField(client.messages.statusField2, client.ws.ping + "ms", true) .addField(client.messages.statusField2, client.ws.ping + "ms", true)
.addField(client.messages.statusField3, uptime, true) .addField(client.messages.statusField3, uptime, true)
.addField(client.messages.statusField4, client.config.version, true) .addField(client.messages.statusField4, client.config.version, true)
.addField(client.messages.statusField5, client.config.hostedBy, true) .addField(client.messages.statusField5, client.config.hostedBy, true)
.setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, '')); .setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, ''));
msg.channel.send({ embeds: [embed] }); interaction.reply({ embeds: [embed] });
} }
}; };

View File

@ -1,18 +1,23 @@
const { SlashCommandBuilder } = require('@discordjs/builders');
module.exports = { module.exports = {
name: 'stop', name: 'stop',
description: 'Stop command.', description: 'Stop radio.',
alias: 's', alias: 's',
usage: '', usage: '',
permission: 'none', permission: 'none',
category: 'radio', category: 'radio',
execute(msg, args, client, Discord, command) { data: new SlashCommandBuilder()
const radio = client.radio.get(msg.guild.id); .setName('stop')
if (client.funcs.check(client, msg, command)) { .setDescription('Stop radio.'),
client.funcs.statisticsUpdate(client, msg.guild, radio); execute(interaction, client, Discord, command) {
const radio = client.radio.get(interaction.guild.id);
if (client.funcs.check(client, interaction, command)) {
client.funcs.statisticsUpdate(client, interaction.guild, radio);
radio.connection?.destroy(); radio.connection?.destroy();
radio.audioPlayer?.stop(); radio.audioPlayer?.stop();
client.radio.delete(msg.guild.id); client.radio.delete(interaction.guild.id);
msg.channel.send(client.messageEmojis["stop"] + client.messages.stop); interaction.reply(client.messageEmojis["stop"] + client.messages.stop);
} }
} }
}; };