fix(editMessage): permissions plugin (#1993)

Fix permissions plugin, that throws an error about message content length when it's valid instead of when it's invalid.
This commit is contained in:
TriForMine
2022-02-03 17:16:04 -05:00
committed by GitHub
parent 511f4ed940
commit 9a41896918
+1 -1
View File
@@ -163,7 +163,7 @@ export function editMessage(bot: BotWithCache) {
if (
content.content &&
bot.utils.validateLength(content.content, { max: 2000 })
!bot.utils.validateLength(content.content, { max: 2000 })
) {
throw new Error(
"A message content can not contain more than 2000 characters.",