Skip to content

Sopow/modmail.djs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

modmail.djs

A powerful Node.js module for discord.js that allows you to create a modmail bot with one function.


npm version npm downloads

Installation

npm install modmail.djs

Example

CJS:

const { Manager } = require('modmail.djs');
const { Client, GatewayIntentBits, Partials } = require('discord.js');

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

const manager = new Manager(client, {
    guildId: '',
    categoryId: '',
    role: ''
});

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

client.login('');

ESM:

import { Manager } from 'modmail.djs';
import { Client, GatewayIntentBits, Partials } from 'discord.js';

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

const manager = new Manager(client, {
    guildId: '',
    categoryId: '',
    role: ''
});

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

client.login('');

About

A powerful Node.js module for discord.js that allows you to create a modmail bot with one function.

Resources

Stars

Watchers

Forks

Packages

No packages published