RELEASE: 17.1.0

This commit is contained in:
Skillz4Killz
2022-10-22 12:42:21 +00:00
parent ae1cca9de9
commit 6d17797fb1
2 changed files with 3 additions and 3 deletions

View File

@@ -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"],
);

View File

@@ -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})`;