Compare commits
5 commits
dbbfbd28cc
...
056996bb14
Author | SHA1 | Date | |
---|---|---|---|
056996bb14 | |||
efb431ef3a | |||
900acff3df | |||
0506385099 | |||
b437293dc4 |
5 changed files with 748 additions and 890 deletions
|
@ -1,4 +1,4 @@
|
||||||
import { Client } from "discord.js";
|
import { Client, Partials } from "discord.js";
|
||||||
import * as dotenv from "dotenv";
|
import * as dotenv from "dotenv";
|
||||||
import { createConnection } from "typeorm";
|
import { createConnection } from "typeorm";
|
||||||
import { EventType } from "../constants/EventType";
|
import { EventType } from "../constants/EventType";
|
||||||
|
@ -25,8 +25,8 @@ export class CoreClient extends Client {
|
||||||
return this._eventItems;
|
return this._eventItems;
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(intents: number[]) {
|
constructor(intents: number[], partials: Partials[]) {
|
||||||
super({ intents: intents });
|
super({ intents: intents, partials: partials });
|
||||||
dotenv.config();
|
dotenv.config();
|
||||||
|
|
||||||
CoreClient._commandItems = [];
|
CoreClient._commandItems = [];
|
||||||
|
|
|
@ -57,7 +57,7 @@ export default class DefaultValues {
|
||||||
this.values.push({ Key: "event.member.remove.channel", Value: "member-logs" });
|
this.values.push({ Key: "event.member.remove.channel", Value: "member-logs" });
|
||||||
|
|
||||||
this.values.push({ Key: "event.member.update.enabled", Value: "false" });
|
this.values.push({ Key: "event.member.update.enabled", Value: "false" });
|
||||||
this.values.push({ Key: "event.member.remove.channel", Value: "member-logs" });
|
this.values.push({ Key: "event.member.update.channel", Value: "member-logs" });
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { CoreClient } from "./client/client";
|
import { CoreClient } from "./client/client";
|
||||||
import * as dotenv from "dotenv";
|
import * as dotenv from "dotenv";
|
||||||
import registry from "./registry";
|
import registry from "./registry";
|
||||||
import { IntentsBitField } from "discord.js";
|
import { IntentsBitField, Partials } from "discord.js";
|
||||||
|
|
||||||
dotenv.config();
|
dotenv.config();
|
||||||
|
|
||||||
|
@ -30,6 +30,9 @@ const client = new CoreClient([
|
||||||
IntentsBitField.Flags.GuildMessages,
|
IntentsBitField.Flags.GuildMessages,
|
||||||
IntentsBitField.Flags.GuildMembers,
|
IntentsBitField.Flags.GuildMembers,
|
||||||
IntentsBitField.Flags.MessageContent,
|
IntentsBitField.Flags.MessageContent,
|
||||||
|
], [
|
||||||
|
Partials.GuildMember,
|
||||||
|
Partials.User,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
registry.RegisterCommands();
|
registry.RegisterCommands();
|
||||||
|
|
Loading…
Reference in a new issue