forked from Supositware/Haha-Yes
Add blacklist reason
This commit is contained in:
parent
4b0fcc7b36
commit
1c23090cd1
1 changed files with 2 additions and 2 deletions
|
@ -9,10 +9,10 @@ export default {
|
||||||
const globalBlacklist = await db.Blacklists.findOne({ where: { type:'global', uid:interaction.user.id } });
|
const globalBlacklist = await db.Blacklists.findOne({ where: { type:'global', uid:interaction.user.id } });
|
||||||
const commandBlacklist = await db.Blacklists.findOne({ where: { type:interaction.commandName, uid:interaction.user.id } });
|
const commandBlacklist = await db.Blacklists.findOne({ where: { type:interaction.commandName, uid:interaction.user.id } });
|
||||||
if (globalBlacklist) {
|
if (globalBlacklist) {
|
||||||
return interaction.reply({ content: 'You are globally blacklisted.', ephemeral: true });
|
return interaction.reply({ content: `You are globally blacklisted for the following reason: \`${globalBlacklist.reason}\``, ephemeral: true });
|
||||||
}
|
}
|
||||||
else if (commandBlacklist) {
|
else if (commandBlacklist) {
|
||||||
return interaction.reply({ content: 'You are blacklisted.', ephemeral: true });
|
return interaction.reply({ content: `You are blacklisted for the following reason: \`${commandBlacklist.reason}\``, ephemeral: true });
|
||||||
}
|
}
|
||||||
|
|
||||||
const userTag = interaction.user.tag;
|
const userTag = interaction.user.tag;
|
||||||
|
|
Loading…
Reference in a new issue