Remove unused message variables in commands

This commit is contained in:
Christer Warén
2023-06-06 07:10:21 +03:00
parent c181066c67
commit 7ba5ee97a8
8 changed files with 3 additions and 9 deletions

View File

@ -6,14 +6,12 @@ export default {
description: 'Bot Status',
category: 'info',
async execute(interaction: any, client: RadioClient) {
let message: any = {};
if(!client.user) return interaction.reply({
content: client.messages.emojis["error"] + client.messages.maintenance,
ephemeral: true
});
message.statusTitle = client.messages.statusTitle.replace("%client.user.username%", client.user.username);
let uptime = client.funcs.msToTime(client.uptime || 0);
const embed = new EmbedBuilder()