From 83bef4ca77548d42448936b76bf0e0fc7f2a1f0a Mon Sep 17 00:00:00 2001 From: Schuyler Cebulskie Date: Thu, 27 Oct 2016 20:45:09 -0400 Subject: [PATCH] Teensy weensy cleanup --- src/client/voice/ClientVoiceManager.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/client/voice/ClientVoiceManager.js b/src/client/voice/ClientVoiceManager.js index e32eae4bf..e73e095d9 100644 --- a/src/client/voice/ClientVoiceManager.js +++ b/src/client/voice/ClientVoiceManager.js @@ -55,7 +55,7 @@ class ClientVoiceManager { throw new Error('There is no permission set for the client user in this channel - are they part of the guild?'); } if (!permissions.hasPermission('CONNECT')) { - throw new Error('You do not have permission to connect to this voice channel.'); + throw new Error('You do not have permission to join this voice channel.'); } options = mergeDefault({ @@ -79,10 +79,7 @@ class ClientVoiceManager { joinChannel(channel) { return new Promise((resolve, reject) => { if (this.pending.get(channel.guild.id)) throw new Error('Already connecting to this guild\'s voice server.'); - - if (!channel.joinable) { - throw new Error('You do not have permission to join this voice channel'); - } + if (!channel.joinable) throw new Error('You do not have permission to join this voice channel.'); const existingConnection = this.connections.get(channel.guild.id); if (existingConnection) {