mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-11 13:56:15 +00:00
fix(reddit-bot): not properly checking for mod
This commit is contained in:
@@ -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!');
|
||||
|
||||
Reference in New Issue
Block a user