From d12f621ce7eed93fbb28cc055ab16301fa3aea82 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Wed, 22 Jul 2020 21:08:17 +0200 Subject: [PATCH 1/2] Forgot to change vid to type url Signed-off-by: loicbersier --- commands/utility/vid2gif.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/utility/vid2gif.js b/commands/utility/vid2gif.js index 02840ef3..a22b60f9 100644 --- a/commands/utility/vid2gif.js +++ b/commands/utility/vid2gif.js @@ -13,7 +13,7 @@ class vid2gifCommand extends Command { args: [ { id: 'vid', - type: 'string' + type: 'url' }, { id: 'fps', From 1df280fae0ab24714f0efb68644f47474cd7ded6 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Thu, 23 Jul 2020 21:18:29 +0200 Subject: [PATCH 2/2] Fix message.guild check Signed-off-by: loicbersier --- rand.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rand.js b/rand.js index 4cba8187..79cc903c 100644 --- a/rand.js +++ b/rand.js @@ -27,11 +27,11 @@ exports.random = function (text, message) { }, { name: /\[member\]/, - value: message ? message.guild.members.cache.random().user.username : '' + value: message.guild ? message.guild.members.cache.random().user.username : '' }, { name: /\[memberRand\]/, - value: (() => message ? message.guild.members.cache.random().user.username : '') + value: (() => message.guild ? message.guild.members.cache.random().user.username : '') }, { name: /\[dice\d*\]/,