fix(reddit-bot): not properly checking for mod

This commit is contained in:
GramingFoxTeam
2022-11-17 15:02:47 +03:00
parent d42190e9b1
commit 72c99e5db9

View File

@@ -5,7 +5,8 @@ export default {
const isAdmin = await client
.getSubreddit('revancedapp')
.getModerators({ name: item.author.name });
if (!isAdmin)
if (!isAdmin[0])
return client.getComment(item.id).reply('You\'re not an admin.');
if (!args[0])
return client.getComment(item.id).reply('You didn\'t specifiy the label!');