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',
permission: 'none',
category: 'info',
async execute(interaction, client, Discord, command) {
async execute(interaction, client, Discord) {
let message = {};
const radio = client.radio.get(interaction.guild.id);
if (!radio) return interaction.reply({

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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