diff --git a/bots/reddit/commands/train.js b/bots/reddit/commands/train.js index 4503fdc..d52ede8 100644 --- a/bots/reddit/commands/train.js +++ b/bots/reddit/commands/train.js @@ -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!');