diff --git a/src/util/entities/Channel.ts b/src/util/entities/Channel.ts
index 577b627e..2200bfa3 100644
--- a/src/util/entities/Channel.ts
+++ b/src/util/entities/Channel.ts
@@ -245,11 +245,10 @@ export class Channel extends BaseClass {
static async createDMChannel(recipients: string[], creator_user_id: string, name?: string) {
recipients = recipients.unique().filter((x) => x !== creator_user_id);
- //@ts-ignore some typeorm typescript issue
- const otherRecipientsUsers = await User.find({ where: recipients.map((x) => ({ id: x })) });
-
// TODO: check config for max number of recipients
/** if you want to disallow note to self channels, uncomment the conditional below
+
+ const otherRecipientsUsers = await User.find({ where: recipients.map((x) => ({ id: x })) });
if (otherRecipientsUsers.length !== recipients.length) {
throw new HTTPError("Recipient/s not found");
}
diff --git a/src/util/entities/Member.ts b/src/util/entities/Member.ts
index d7bcefea..7d1346ba 100644
--- a/src/util/entities/Member.ts
+++ b/src/util/entities/Member.ts
@@ -165,7 +165,6 @@ export class Member extends BaseClassWithoutId {
static async addRole(user_id: string, guild_id: string, role_id: string) {
const [member, role] = await Promise.all([
- // @ts-ignore
Member.findOneOrFail({
where: { id: user_id, guild_id },
relations: ["user", "roles"], // we don't want to load the role objects just the ids
@@ -192,7 +191,6 @@ export class Member extends BaseClassWithoutId {
static async removeRole(user_id: string, guild_id: string, role_id: string) {
const [member] = await Promise.all([
- // @ts-ignore
Member.findOneOrFail({
where: { id: user_id, guild_id },
relations: ["user", "roles"], // we don't want to load the role objects just the ids
|