diff --git a/plugins/permissions/src/messages/publishMessage.ts b/plugins/permissions/src/messages/publishMessage.ts index 8b73efb30..317bae1ba 100644 --- a/plugins/permissions/src/messages/publishMessage.ts +++ b/plugins/permissions/src/messages/publishMessage.ts @@ -5,11 +5,11 @@ export function publishMessage(bot: BotWithCache) { const publishMessage = bot.helpers.publishMessage; bot.helpers.publishMessage = function (channelId, messageId) { - const message = bot.messages.get(messageId); + const message = bot.messages.get(bot.transformers.snowflake(messageId)); requireBotChannelPermissions( bot, - channelId, + bot.transformers.snowflake(channelId), message?.authorId === bot.id ? ["SEND_MESSAGES"] : ["MANAGE_MESSAGES"], ); diff --git a/util/constants.ts b/util/constants.ts index 3e99d0560..b03ee5db9 100644 --- a/util/constants.ts +++ b/util/constants.ts @@ -6,7 +6,7 @@ export const API_VERSION = 10; // TODO: update this version /** https://github.com/discordeno/discordeno/releases */ -export const DISCORDENO_VERSION = "17.0.0"; +export const DISCORDENO_VERSION = "17.1.0"; /** https://discord.com/developers/docs/reference#user-agent */ export const USER_AGENT = `DiscordBot (https://github.com/discordeno/discordeno, v${DISCORDENO_VERSION})`;