djs-modmail
v1.0.0
Published
A simple package made with Javascript to make a quick and easy modmail bot for your server!
Downloads
5
Maintainers
Readme
djs-modmail
A simple package made with Javascript to make a quick and easy modmail bot for your server!
Setup
const Discord = require('discord.js');
const allIntents = new Discord.Intents(32767);
const client = new Discord.Client({
messageCacheLifetime: 60,
fetchAllMembers: false,
messageCacheMaxSize: 10,
restTimeOffset: 0,
restWsBridgetimeout: 100,
allowedMentions: {
parse: ["roles", "users", "everyone"],
repliedUser: true,
},
partials: ["MESSAGE", "CHANNEL", "REACTION"],
intents: allIntents,
});
client.login("TOKEN");
const modmail = require('djs-modmail');
client.on("ready", () => {
modmail.init(client, {
guildID: "ID",
categoryID: "ID",
staffRole: "ID",
embedColor: "HEX",
anonymousReply: true/false,
closedTitle: "Your modmail thread has been closed",
closedMessage: "A staff member has closed your modmail thread",
staffOpenedTitle: "A modmail thread has been opened",
staffOpenedMessage: "Someone has opened a thread and needs support!",
userOpenedTitle: "Thread Created",
userOpenedMessage: "You have created a modmail thread",
wrongEmoji: "EMOJI",
rightEmoji: "EMOJI"
})
});