Console Log every Command
This commit is contained in:
@@ -9,10 +9,13 @@ export default async (client: Client<true>, interaction: Interaction) => {
|
||||
const localCommands = await getLocalCommands() as CommandInterface[];
|
||||
|
||||
try {
|
||||
|
||||
const commandObject = localCommands.find((cmd) => cmd.name == interaction.commandName);
|
||||
|
||||
if(!commandObject) return;
|
||||
|
||||
console.log(`/${interaction.commandName} wurde von ${interaction.user.username} ausgeführt!`)
|
||||
|
||||
if(commandObject.devOnly){
|
||||
if(!devs.includes(interaction.user.id)) {
|
||||
interaction.reply({
|
||||
|
||||
Reference in New Issue
Block a user