Moved to using an object for execute args
This commit is contained in:
@@ -8,7 +8,7 @@ export = {
|
||||
name: "checkstats",
|
||||
description: "Check your stats.",
|
||||
|
||||
async execute(interaction) {
|
||||
async execute({ interaction }) {
|
||||
await interaction.deferReply()
|
||||
|
||||
const message = interaction.message
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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!
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user