mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
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:
@@ -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.",
|
||||
|
||||
Reference in New Issue
Block a user