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] });
} else {
const categories = [];
let commandsToArray = Array.from(client.commands.values());
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 = '';
for (let i = 0; i < categories.length; i++) {

View File

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

View File

@ -7,7 +7,7 @@ module.exports = {
bugTitle: "Found a bug with %client.user.username%?",
bugDescription: "Join the support server \n %client.config.supportGuild%",
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%",
helpCommandDescription: "%command.description% \n Command Alias: %command.alias%",
inviteTitle: "Invite %client.user.username% to your Discord server!",