This commit is contained in:
ITOH
2021-04-09 22:22:06 +02:00
parent 3fc62b9572
commit dc9c33f0d4
22 changed files with 40 additions and 40 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ export async function createChannel(
const requiredPerms: Set<PermissionStrings> = new Set(["MANAGE_CHANNELS"]);
options?.permissionOverwrites?.forEach((overwrite) => {
eventHandlers.debug(
eventHandlers.debug?.(
"loop",
`Running forEach loop in create_channel file.`,
);
+2 -2
View File
@@ -78,7 +78,7 @@ function processEditChannelQueue() {
const now = Date.now();
editChannelNameTopicQueue.forEach((request) => {
eventHandlers.debug(
eventHandlers.debug?.(
"loop",
`Running forEach loop in edit_channel file.`,
);
@@ -102,7 +102,7 @@ function processEditChannelQueue() {
if (editChannelNameTopicQueue.size) {
setTimeout(() => {
eventHandlers.debug(
eventHandlers.debug?.(
"loop",
`Running setTimeout in EDIT_CHANNEL file.`,
);
@@ -26,7 +26,7 @@ export async function sendInteractionResponse(
cache.executedSlashCommands.set(token, id);
setTimeout(
() => {
eventHandlers.debug(
eventHandlers.debug?.(
"loop",
`Running setTimeout in send_interaction_response file.`,
);
+1 -1
View File
@@ -19,7 +19,7 @@ export async function getEmojis(guildId: string, addToCache = true) {
if (!guild) throw new Error(Errors.GUILD_NOT_FOUND);
result.forEach((emoji) => {
eventHandlers.debug(
eventHandlers.debug?.(
"loop",
`Running forEach loop in get_emojis file.`,
);
+2 -2
View File
@@ -32,7 +32,7 @@ export async function getMembers(guildId: string, options?: GetMemberOptions) {
(options?.limit ?? guild.memberCount) > members.size &&
membersLeft > 0
) {
eventHandlers.debug("loop", "Running while loop in getMembers function.");
eventHandlers.debug?.("loop", "Running while loop in getMembers function.");
if (options?.limit && options.limit > 1000) {
console.log(
@@ -67,7 +67,7 @@ export async function getMembers(guildId: string, options?: GetMemberOptions) {
if (!memberStructures.length) break;
memberStructures.forEach((member) => {
eventHandlers.debug(
eventHandlers.debug?.(
"loop",
`Running forEach loop in get_members file.`,
);
+1 -1
View File
@@ -14,7 +14,7 @@ export async function addReactions(
);
} else {
for (const reaction of reactions) {
eventHandlers.debug(
eventHandlers.debug?.(
"loop",
"Running for of loop in addReactions function.",
);