mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
fix: typo conditional. Thanks itoh!
This commit is contained in:
@@ -19,7 +19,7 @@ export default function editMember(bot: BotWithCache) {
|
||||
if (guild.ownerId === memberId) throw new Error("You can not timeout the servers owner.");
|
||||
}
|
||||
|
||||
if (!hasGuildPermissions(bot, guildId, memberId, ["ADMINISTRATOR"])) {
|
||||
if (hasGuildPermissions(bot, guildId, memberId, ["ADMINISTRATOR"])) {
|
||||
throw new Error("You can not timeout a server administrator.");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user