Skip to content

Commit

Permalink
chore: update test
Browse files Browse the repository at this point in the history
  • Loading branch information
Idris1401 authored Oct 14, 2022
1 parent 5bd966f commit 5aa061c
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions test/index.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
const { Manager } = require("modmail.djs");
const { Client, GatewayIntentBits, Partials } = require("discord.js");
const { Manager } = require('modmail.djs');
const { Client, GatewayIntentBits, Partials } = require('discord.js');

const client = new Client({
intents: Object.keys(GatewayIntentBits),
partials: [Partials.Message, Partials.Channel, Partials.Reaction],
intents: Object.keys(GatewayIntentBits), // all intents
partials: [Partials.Message, Partials.Channel, Partials.Reaction]
});

client.once("ready", () => {
console.log("Ready!");
new Manager(client, { guildId: "", categoryId: "", role: "" }).setModmail();
const manager = new Manager(client, {
guildId: '',
categoryId: '',
role: ''
});

client.login("");
client.once('ready', () => {
console.log('Ready!');
manager.setModmail();
})

client.login('');

0 comments on commit 5aa061c

Please sign in to comment.