Merge branch 'master' into develop

This commit is contained in:
Christer Warén 2021-08-21 19:43:57 +03:00
commit 727cae13b4
3 changed files with 4 additions and 2 deletions

View File

@ -32,8 +32,9 @@ module.exports = {
interaction.reply({ embeds: [embed] }); interaction.reply({ embeds: [embed] });
} else { } else {
const categories = []; const categories = [];
let commandsToArray = Array.from(client.commands.values());
for (let i = 0; i < client.commands.size; i++) { for (let i = 0; i < client.commands.size; i++) {
if (!categories.includes(client.commands.array()[i].category)) categories.push(client.commands.array()[i].category); if (!categories.includes(commandsToArray[i].category)) categories.push(commandsToArray[i].category);
} }
let commands = ''; let commands = '';
for (let i = 0; i < categories.length; i++) { for (let i = 0; i < categories.length; i++) {

View File

@ -16,6 +16,7 @@ module.exports = {
if (newState.channel === null) { if (newState.channel === null) {
client.funcs.statisticsUpdate(client, newState.guild, radio); client.funcs.statisticsUpdate(client, newState.guild, radio);
radio.connection = null;
radio.audioPlayer?.stop(); radio.audioPlayer?.stop();
return client.radio.delete(newState.guild.id); return client.radio.delete(newState.guild.id);
} }

View File

@ -7,7 +7,7 @@ module.exports = {
bugTitle: "Found a bug with %client.user.username%?", bugTitle: "Found a bug with %client.user.username%?",
bugDescription: "Join the support server \n %client.config.supportGuild%", bugDescription: "Join the support server \n %client.config.supportGuild%",
helpTitle: "%client.user.username% help:", helpTitle: "%client.user.username% help:",
helpDescription: "%commands% \n %client.config.prefix%help <command> to see more information about a command.", helpDescription: "%commands%",
helpCommandTitle: "%client.config.prefix%%command.name% %command.usage%", helpCommandTitle: "%client.config.prefix%%command.name% %command.usage%",
helpCommandDescription: "%command.description% \n Command Alias: %command.alias%", helpCommandDescription: "%command.description% \n Command Alias: %command.alias%",
inviteTitle: "Invite %client.user.username% to your Discord server!", inviteTitle: "Invite %client.user.username% to your Discord server!",