mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-18 01:07:22 +00:00
Merge branch 'fp-attempt-9001' of https://github.com/Skillz4Killz/discordeno into fp-attempt-9001
This commit is contained in:
+1
-1
@@ -171,7 +171,7 @@ export function createExecute(cache: Cache): CacheExecutor {
|
||||
return function (type, options) {
|
||||
switch (type) {
|
||||
case "FILTER_CATEGORY_CHILDREN_CHANNELS":
|
||||
return cache.channels.filter(c => c.parentId === options.parentChannelId);
|
||||
return cache.channels.filter((c) => c.parentId === options.parentChannelId);
|
||||
case "DELETE_MESSAGES_FROM_CHANNEL":
|
||||
cache.messages.forEach((message) => {
|
||||
if (message.channelId === options.channelId) {
|
||||
|
||||
@@ -5,9 +5,5 @@ import type { Bot } from "../../bot.ts";
|
||||
export async function getIntegrations(bot: Bot, guildId: bigint) {
|
||||
await bot.utils.requireBotGuildPermissions(bot, guildId, ["MANAGE_GUILD"]);
|
||||
|
||||
return await bot.rest.runMethod<Integration>(
|
||||
bot.rest,
|
||||
"get",
|
||||
bot.constants.endpoints.GUILD_INTEGRATIONS(guildId)
|
||||
);
|
||||
return await bot.rest.runMethod<Integration>(bot.rest, "get", bot.constants.endpoints.GUILD_INTEGRATIONS(guildId));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user