Slight wording changes in README. Use Modmail instead of ModMail consistently.
parent
1140e02824
commit
20b46811c0
|
@ -1,5 +1,5 @@
|
||||||
# Modmail for Discord
|
# Modmail for Discord
|
||||||
A bot for [Discord](https://discordapp.com/) that allows users to DM the bot to contact the server's moderators/staff
|
Modmail Bot is a bot for [Discord](https://discordapp.com/) that allows users to DM the bot to contact the server's moderators/staff
|
||||||
without messaging them individually or pinging them publically on the server.
|
without messaging them individually or pinging them publically on the server.
|
||||||
These DMs get relayed to modmail *threads*, channels where staff members can reply to and talk with the user.
|
These DMs get relayed to modmail *threads*, channels where staff members can reply to and talk with the user.
|
||||||
To the user, the entire process happens in DMs with the bot.
|
To the user, the entire process happens in DMs with the bot.
|
||||||
|
|
|
@ -144,7 +144,7 @@ async function createNewThreadForUser(user, quiet = false, ignoreRequirements =
|
||||||
// Attempt to create the inbox channel for this thread
|
// Attempt to create the inbox channel for this thread
|
||||||
let createdChannel;
|
let createdChannel;
|
||||||
try {
|
try {
|
||||||
createdChannel = await utils.getInboxGuild().createChannel(channelName, null, 'New ModMail thread', newThreadCategoryId);
|
createdChannel = await utils.getInboxGuild().createChannel(channelName, null, 'New Modmail thread', newThreadCategoryId);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error(`Error creating modmail channel for ${user.username}#${user.discriminator}!`);
|
console.error(`Error creating modmail channel for ${user.username}#${user.discriminator}!`);
|
||||||
throw err;
|
throw err;
|
||||||
|
@ -226,7 +226,7 @@ async function createNewThreadForUser(user, quiet = false, ignoreRequirements =
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ModMail history / previous logs
|
// Modmail history / previous logs
|
||||||
const userLogCount = await getClosedThreadCountByUserId(user.id);
|
const userLogCount = await getClosedThreadCountByUserId(user.id);
|
||||||
if (userLogCount > 0) {
|
if (userLogCount > 0) {
|
||||||
infoHeader += `\n\nThis user has **${userLogCount}** previous modmail threads. Use \`${config.prefix}logs\` to see them.`;
|
infoHeader += `\n\nThis user has **${userLogCount}** previous modmail threads. Use \`${config.prefix}logs\` to see them.`;
|
||||||
|
|
Loading…
Reference in New Issue