forked from Supositware/Haha-Yes
Fix message.guild check
Signed-off-by: loicbersier <loic.bersier1@gmail.com>
This commit is contained in:
parent
d12f621ce7
commit
1df280fae0
1 changed files with 2 additions and 2 deletions
4
rand.js
4
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*\]/,
|
||||
|
|
Loading…
Reference in a new issue