Removed unused variable command from commands.

This commit is contained in:
Christer Warén 2021-09-05 03:06:47 +03:00
parent c81dbddab1
commit ec6ea7e839
7 changed files with 8 additions and 8 deletions

View File

@ -3,7 +3,7 @@ module.exports = {
description: 'Next Station', description: 'Next Station',
permission: 'none', permission: 'none',
category: 'info', category: 'info',
async execute(interaction, client, Discord, command) { async execute(interaction, client, Discord) {
let message = {}; let message = {};
const radio = client.radio.get(interaction.guild.id); const radio = client.radio.get(interaction.guild.id);
if (!radio) return interaction.reply({ if (!radio) return interaction.reply({

View File

@ -3,7 +3,7 @@ module.exports = {
description: 'Current Radio Station', description: 'Current Radio Station',
permission: 'none', permission: 'none',
category: 'radio', category: 'radio',
async execute(interaction, client, Discord, command) { async execute(interaction, client, Discord) {
let message = {}; let message = {};
const radio = client.radio.get(interaction.guild.id); const radio = client.radio.get(interaction.guild.id);
if (!radio) return interaction.reply({ if (!radio) return interaction.reply({

View File

@ -3,7 +3,7 @@ module.exports = {
description: 'Previous Station', description: 'Previous Station',
permission: 'none', permission: 'none',
category: 'info', category: 'info',
async execute(interaction, client, Discord, command) { async execute(interaction, client, Discord) {
let message = {}; let message = {};
const radio = client.radio.get(interaction.guild.id); const radio = client.radio.get(interaction.guild.id);
if (!radio) return interaction.reply({ if (!radio) return interaction.reply({

View File

@ -3,7 +3,7 @@ module.exports = {
description: 'Show statistics', description: 'Show statistics',
permission: 'none', permission: 'none',
category: 'info', category: 'info',
execute(interaction, client, Discord, command) { execute(interaction, client, Discord) {
let message = {}; let message = {};
let stations = client.stations; let stations = client.stations;
let currentGuild = client.datastore.getEntry(interaction.guild.id); let currentGuild = client.datastore.getEntry(interaction.guild.id);

View File

@ -3,7 +3,7 @@ module.exports = {
description: 'Bot Status', description: 'Bot Status',
permission: 'none', permission: 'none',
category: 'info', category: 'info',
async execute(interaction, client, Discord, command) { async execute(interaction, client, Discord) {
let message = {}; let message = {};
message.statusTitle = client.messages.statusTitle.replace("%client.user.username%", client.user.username); message.statusTitle = client.messages.statusTitle.replace("%client.user.username%", client.user.username);

View File

@ -3,7 +3,7 @@ module.exports = {
description: 'Stop radio', description: 'Stop radio',
permission: 'none', permission: 'none',
category: 'radio', category: 'radio',
async execute(interaction, client, Discord, command) { async execute(interaction, client, Discord) {
const radio = client.radio.get(interaction.guild.id); const radio = client.radio.get(interaction.guild.id);
if (client.funcs.check(client, interaction, command)) { if (client.funcs.check(client, interaction, command)) {
client.funcs.statisticsUpdate(client, interaction.guild, radio); client.funcs.statisticsUpdate(client, interaction.guild, radio);

View File

@ -13,7 +13,7 @@ module.exports = {
if (!command) return; if (!command) return;
try { try {
command.execute(interaction, client, Discord, command); command.execute(interaction, client, Discord);
} catch (error) { } catch (error) {
interaction.reply({ interaction.reply({
content: client.messages.runningCommandFailed, content: client.messages.runningCommandFailed,
@ -27,7 +27,7 @@ module.exports = {
if (!command) return; if (!command) return;
try { try {
command.execute(interaction, client, Discord, command); command.execute(interaction, client, Discord);
} catch (error) { } catch (error) {
interaction.reply({ interaction.reply({
content: client.messages.runningCommandFailed, content: client.messages.runningCommandFailed,