fix: typo conditional. Thanks itoh!

This commit is contained in:
Skillz4Killz
2022-03-21 11:09:16 +00:00
committed by GitHub
parent b22e7f954f
commit 90d5744e14
@@ -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.");
}
}