Update eslintrc.json to also make it consider typings
note that I've marked Promises awaiting as a warn, because I don't want to be bothered with it for now. I also edited all files to accomodate with the new rules. I should also think find a way to type-safely import Commands directory, another time
This commit is contained in:
parent
c4676175ff
commit
7225739527
9 changed files with 35 additions and 23 deletions
|
@ -23,11 +23,11 @@ export const database = new PrismaClient();
|
|||
const interactionManager = new InteractionManager();
|
||||
interactionManager.bindClient(discord);
|
||||
|
||||
discord.on("ready", async event => {
|
||||
discord.on("ready", event => {
|
||||
console.log(`Connected to Discord as ${event.user.tag} (${event.user.id})`);
|
||||
});
|
||||
|
||||
discord.on("messageCreate", async message => {
|
||||
discord.on("messageCreate", message => {
|
||||
if (message.author.bot) return;
|
||||
if (!message.mentions.has(message.client.user)) return;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue