mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 03:18:17 +00:00
making it testable
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import type { Bot } from "../../bot.ts";
|
||||
import { cacheHandlers } from "../../cache.ts";
|
||||
// import { cacheHandlers } from "../../cache.ts";
|
||||
import type { Message } from "../../types/messages/message.ts";
|
||||
import type { SnakeCasedPropertiesDeep } from "../../types/util.ts";
|
||||
|
||||
/** Suppress all the embeds in this message */
|
||||
export async function suppressEmbeds(bot: Bot, channelId: bigint, messageId: bigint) {
|
||||
const message = await cacheHandlers.get("messages", messageId);
|
||||
const message = await bot.cache.messages.get(messageId);
|
||||
|
||||
await bot.utils.requireBotChannelPermissions(bot, channelId, message ? ["MANAGE_MESSAGES"] : ["SEND_MESSAGES"]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user