mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 04:10:59 -05:00
Ripbozo on Dave?
This commit is contained in:
parent
05f9d1d18c
commit
aa112b55cb
@ -16,6 +16,7 @@ export default async(client:TClient, interaction: Discord.ChatInputCommandIntera
|
||||
Logger.console('log', 'PunishmentLog', punishLog);
|
||||
(client.channels.cache.get(client.config.dcServer.channels.punishment_log) as Discord.TextChannel).send({embeds:[new client.embed().setColor(client.config.embedColor).setTitle('Punishment Log').setDescription(punishLog).setTimestamp()]});
|
||||
|
||||
if (!GuildMember.moderatable) return interaction.reply(`I cannot ${type} this user.`);
|
||||
if (interaction.user.id === User.id) return interaction.reply(`You cannot ${type} yourself.`);
|
||||
if (!GuildMember && !['unban', 'ban'].includes(type)) return interaction.reply(`You cannot ${type} someone who is not in the server.`);
|
||||
if (User.bot) return interaction.reply(`You cannot ${type} a bot!`);
|
||||
|
Loading…
Reference in New Issue
Block a user