Send a message on guild join

This commit is contained in:
Dragon Fire
2020-07-07 17:10:34 -04:00
parent 1d2ae54f2b
commit 98a8aba9b8
8 changed files with 22 additions and 10 deletions
+2 -1
View File
@@ -49,7 +49,8 @@ module.exports = class DECTalkCommand extends Command {
const inGuild = msg.guild ? undefined : null;
const connection = this.client.voice.connections.get(msg.guild.id);
if (!connection) {
return msg.reply(`I am not in a voice channel. Use ${msg.anyUsage('join', inGuild, inGuild)} to fix that!`);
const usage = this.client.registry.commands.get('join').usage();
return msg.reply(`I am not in a voice channel. Use ${usage} to fix that!`);
}
try {
const { url } = await request