Skip to content
This repository was archived by the owner on Oct 9, 2025. It is now read-only.

Commit 799ce49

Browse files
committed
Removed strict mode
1 parent a8927b2 commit 799ce49

File tree

4 files changed

+3
-8
lines changed

4 files changed

+3
-8
lines changed

src/Commands/Main/setup.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
'use strict';
21
import { SlashCommandBuilder, PermissionFlagsBits, ChatInputCommandInteraction, ChannelType, GuildTextBasedChannel, CategoryChannel } from 'discord.js';
32
import { getDb } from '../../Utils/functions/utils';
43
import logger from '../../Utils/logger';

src/Scripts/message/messageTypes.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { Client, EmbedBuilder, AttachmentBuilder, Message, TextChannel, MessageMentionTypes, BaseMessageOptions } from 'discord.js';
22
import { Collection } from 'mongodb';
33
import { connectedListDocument, setupDocument } from '../../Utils/typings/types';
4-
import {} from '../../Utils/typings/types';
54

65
interface WebhookMessageInterface extends BaseMessageOptions {
76
content: string,
@@ -25,7 +24,7 @@ export default {
2524
}
2625
// TODO: Make sending images a voter only feature, so that random people won't send inappropriate images
2726
else if (attachments) {
28-
await message.channel.send('Warn: Sending images directly is currently experimental, so it might take a few seconds to send images!');
27+
await message.channel.send('Warn: Sending images directly is currently experimental, so it might take a few seconds for chatbot to send images!');
2928
return await allChannel?.send({ embeds: [embed], files: [attachments], allowedMentions: { parse: ['roles'] } });
3029
}
3130

src/Utils/functions/utils.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -243,10 +243,8 @@ export async function deleteChannels(client: discord.Client) {
243243
}
244244

245245
if (unknownChannels.length > 0) {
246-
const deleteCursor = await connectedList.deleteMany({
247-
channelId: { $in: unknownChannels },
248-
});
249-
logger.info(`Deleted ${deleteCursor.deletedCount} channels from the connectedList database.`);
246+
const deletedChannels = await connectedList.deleteMany({ channelId: { $in: unknownChannels } });
247+
logger.info(`Deleted ${deletedChannels.deletedCount} channels from the connectedList database.`);
250248
return;
251249
}
252250
}

src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
'use strict';
21
import discord from 'discord.js';
32
import express from 'express';
43
import Levels from 'discord-xp';

0 commit comments

Comments
 (0)