This commit is contained in:
ITOH
2021-04-09 21:37:13 +02:00
parent 577010e953
commit 9312606100
26 changed files with 233 additions and 13 deletions
+5
View File
@@ -1,3 +1,4 @@
import { eventHandlers } from "../bot.ts";
import { cache } from "../cache.ts";
import { channelOverwriteHasPermission } from "../helpers/channels/channel_overwrite_has_permission.ts";
import { deleteChannel } from "../helpers/channels/delete_channel.ts";
@@ -81,6 +82,10 @@ export async function createChannelStruct(
const props: Record<string, PropertyDescriptor> = {};
Object.keys(rest).forEach((key) => {
eventHandlers.debug(
"loop",
`Running forEach loop in createChannelStruct function.`,
);
// @ts-ignore index signature
props[key] = createNewProp(rest[key]);
});