summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utils/bot_voice_check.js2
-rw-r--r--utils/user_voice_check.js7
2 files changed, 8 insertions, 1 deletions
diff --git a/utils/bot_voice_check.js b/utils/bot_voice_check.js
index 4bef372..e68eab9 100644
--- a/utils/bot_voice_check.js
+++ b/utils/bot_voice_check.js
@@ -1,5 +1,5 @@
module.exports = {
- name: 'voice_check',
+ name: 'bot_voice_check',
description: '',
async execute(msg, args, bot) {
if (msg.guild.voiceConnection) return true;
diff --git a/utils/user_voice_check.js b/utils/user_voice_check.js
new file mode 100644
index 0000000..effbd2d
--- /dev/null
+++ b/utils/user_voice_check.js
@@ -0,0 +1,7 @@
+module.exports = {
+ name: 'user_voice_check',
+ description: '',
+ async execute(msg, args, bot) {
+ if (msg.member.voiceChannel) return true;
+ }
+}; \ No newline at end of file