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

@@ -40,7 +40,7 @@ export default function loadAutocompleteEvents(client: Client, ft: FileType) {
}
try {
await autocomplete.execute(interaction)
await autocomplete.execute({ interaction, client })
} catch (error) {
if (process.env.NODE_ENV !== "dev") {
await logToChannel("error", {

View File

@@ -40,7 +40,7 @@ export default function loadButtonEvents(client: Client, ft: FileType) {
}
try {
await button.execute(interaction)
await button.execute({ interaction, client })
} catch (error) {
if (process.env.NODE_ENV !== "dev") {
await logToChannel("error", {

View File

@@ -43,7 +43,7 @@ export default function loadSlashCommandsEvents(client: Client, ft: FileType) {
}
try {
await command.execute(interaction, client)
await command.execute({ interaction, client })
} catch (error) {
if (process.env.NODE_ENV !== "dev") {
await logToChannel("error", {

View File

@@ -41,7 +41,7 @@ export default function loadContextMenuEvents(client: Client, ft: FileType) {
}
try {
await command.execute(interaction)
await command.execute({ interaction, client })
} catch (error) {
if (process.env.NODE_ENV !== "dev") {
await logToChannel("error", {

View File

@@ -40,7 +40,7 @@ export default function loadModalEvents(client: Client, ft: FileType) {
}
try {
await modal.execute(interaction)
await modal.execute({ interaction, client })
} catch (error) {
if (process.env.NODE_ENV !== "dev") {
await logToChannel("error", {