Moved to using an object for execute args

This commit is contained in:
2024-03-12 14:51:25 +01:00
parent 1f2a9b9d18
commit 36c2cc6d81
62 changed files with 68 additions and 67 deletions

View File

@@ -5,7 +5,7 @@ export = {
name: "music",
description: "Music",
async execute(interaction) {
async execute({ interaction }) {
const focusedOption = interaction.options.getFocused(true)
if (interaction.options.getSubcommand() !== "play" && focusedOption.name !== "query") return

View File

@@ -4,7 +4,7 @@ export = {
name: "unban",
description: "Unban a user from the server",
async execute(interaction) {
async execute({ interaction }) {
const focusedOption = interaction.options.getFocused(true)
if (focusedOption.name !== "user") return