diff --git a/src/helpers/messages/edit_message.ts b/src/helpers/messages/edit_message.ts index 9f29f820e..1be74894f 100644 --- a/src/helpers/messages/edit_message.ts +++ b/src/helpers/messages/edit_message.ts @@ -2,6 +2,7 @@ import { botId } from "../../bot.ts"; import { rest } from "../../rest/rest.ts"; import { Message, structures } from "../../structures/mod.ts"; import { Errors } from "../../types/misc/errors.ts"; +import { PermissionStrings } from "../../types/permissions/permission_strings.ts"; import { endpoints } from "../../util/constants.ts"; import { requireBotChannelPermissions } from "../../util/permissions.ts"; @@ -16,7 +17,7 @@ export async function editMessage( if (typeof content === "string") content = { content }; - const requiredPerms: Permission[] = ["SEND_MESSAGES"]; + const requiredPerms: PermissionStrings[] = ["SEND_MESSAGES"]; if (content.tts) requiredPerms.push("SEND_TTS_MESSAGES");