1.0.3 • Published 11 months ago

apoow3b-modmail v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

apoow3b-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('apoow3b-modmail');

client.on("ready", () => {
modmail.init(client, {
  guildID: "ID",
  categoryID: "ID",
  staffRole: "ID",
  embedColor: "HEX",
  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",
})
});
1.0.3

11 months ago

1.0.1

12 months ago

1.0.0

12 months ago