mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-03 22:15:37 +00:00
fix: Changed command logic to be in property execute instead of run
This commit is contained in:
1 parent
6fdd943e56
commit
2d0df79dac
15 files changed
+18
-15
No files matched your search
@@ -9,7 +9,7 @@ module.exports = {
|
||||
.setName('guilds')
|
||||
.setDescription('Show list of guilds where bot is added.')
|
||||
.setDMPermission(false),
|
||||
run: async ({ interaction, client }) => {
|
||||
execute: async ({ interaction, client }) => {
|
||||
if (!systemServerGuildIds.includes(interaction.guildId)) {
|
||||
return await interaction.editReply({
|
||||
embeds: [
|
||||
|
||||
@@ -9,7 +9,7 @@ const packageJson = require(path.resolve('./package.json'));
|
||||
module.exports = {
|
||||
isSystemCommand: true,
|
||||
data: new SlashCommandBuilder().setName('status').setDescription('Show bot status.').setDMPermission(false),
|
||||
run: async ({ interaction, client }) => {
|
||||
execute: async ({ interaction, client }) => {
|
||||
if (!systemServerGuildIds.includes(interaction.guildId)) {
|
||||
return await interaction.editReply({
|
||||
embeds: [
|
||||
|
||||
Reference in new issue
Block a user