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

View File

@@ -8,7 +8,7 @@ export = {
name: "checkstats",
description: "Check your stats.",
async execute(interaction) {
async execute({ interaction }) {
await interaction.deferReply()
const message = interaction.message

View File

@@ -12,7 +12,7 @@ export = {
name: "guildapplicationaccept",
description: "Accept a guild application.",
async execute(interaction) {
async execute({ interaction }) {
await interaction.deferReply()
const user = interaction.user

View File

@@ -5,7 +5,7 @@ export = {
name: "guildapplicationdeny",
description: "Deny a guild application.",
async execute(interaction) {
async execute({ interaction }) {
const modal = new ModalBuilder()
.setTitle("Deny Reason")
.setCustomId("denyreasonbox")

View File

@@ -12,7 +12,7 @@ export = {
name: "guildapply",
description: "Guild application button.",
async execute(interaction) {
async execute({ interaction }) {
await interaction.deferReply({ ephemeral: true })
const user = interaction.member as GuildMember
const guild = interaction.guild!

View File

@@ -11,7 +11,7 @@ export = {
name: "guildinactivitylog",
description: "Configure the bot.",
async execute(interaction) {
async execute({ interaction }) {
const guild = interaction.guild!
const user = interaction.member as GuildMember
const userRoles = user.roles.cache

View File

@@ -4,7 +4,7 @@ export = {
name: "inactiveapplicationaccept",
description: "Accept an inactivity application.",
async execute(interaction) {
async execute({ interaction }) {
await interaction.reply({
content: "This button is currently disabled.",
ephemeral: true

View File

@@ -4,7 +4,7 @@ export = {
name: "inactiveapplicationdeny",
description: "Denies an inactivity application.",
async execute(interaction) {
async execute({ interaction }) {
await interaction.reply({
content: "This button is currently disabled.",
ephemeral: true

View File

@@ -7,7 +7,7 @@ export = {
name: "staffapplicationaccept",
description: "Accept a staff application.",
async execute(interaction) {
async execute({ interaction }) {
await interaction.deferReply()
const user = interaction.user

View File

@@ -5,7 +5,7 @@ export = {
name: "staffapplicationdeny",
description: "Deny a guild application.",
async execute(interaction) {
async execute({ interaction }) {
const modal = new ModalBuilder()
.setTitle("Deny Reason")
.setCustomId("staffdenyreasonbox")

View File

@@ -14,7 +14,7 @@ export = {
name: "staffapply",
description: "Apply for the staff team.",
async execute(interaction) {
async execute({ interaction }) {
const user = interaction.member as GuildMember
const guild = interaction.guild!
const userRoles = user.roles.cache

View File

@@ -5,7 +5,7 @@ export = {
name: "verify",
description: "Configure the bot.",
async execute(interaction) {
async execute({ interaction }) {
const modal = new ModalBuilder()
.setTitle("Verification")
.setCustomId("verifybox")

View File

@@ -7,7 +7,7 @@ export = {
name: "waitinglistupdate",
description: "Update the waiting list.",
async execute(interaction) {
async execute({ interaction }) {
await interaction.deferReply({ ephemeral: true })
const user = interaction.user

View File

@@ -7,7 +7,7 @@ export = {
name: "denyreasonbox",
description: "Deny reason box.",
async execute(interaction) {
async execute({ interaction }) {
await interaction.deferReply()
const guild = interaction.guild!

View File

@@ -7,7 +7,7 @@ export = {
name: "staffdenyreasonbox",
description: "Deny reason box.",
async execute(interaction) {
async execute({ interaction }) {
await interaction.deferReply()
const guild = interaction.guild

View File

@@ -10,7 +10,7 @@ export = {
name: "verifybox",
description: "Verify box.",
async execute(interaction) {
async execute({ interaction }) {
await interaction.deferReply({ ephemeral: true })
const user = interaction.member as GuildMember