Merge branch 'fp-attempt-9001' of https://github.com/Skillz4Killz/discordeno into fp-attempt-9001

This commit is contained in:
Skillz4Killz
2021-11-05 17:22:02 +00:00
committed by GitHub
4 changed files with 15 additions and 13 deletions
+1 -1
View File
@@ -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) {
+1 -5
View File
@@ -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));
}