mirror of
https://github.com/discordeno/discordeno.git
synced 2026-05-21 02:40:08 +00:00
RELEASE: 17.1.0
This commit is contained in:
@@ -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"],
|
||||
);
|
||||
|
||||
|
||||
@@ -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})`;
|
||||
|
||||
Reference in New Issue
Block a user