Process of format fixing

This commit is contained in:
2024-01-19 21:36:01 +01:00
parent ee217d5f64
commit 3eed20e788
77 changed files with 1079 additions and 1086 deletions

View File

@@ -15,7 +15,7 @@ export default function loadAutocompleteEvents(client: Client, ft: FileType) {
"..",
"..",
"components",
"autocomplete",
"autocomplete"
)
const autocompleteFiles = fs
.readdirSync(autocompletePath)
@@ -31,8 +31,8 @@ export default function loadAutocompleteEvents(client: Client, ft: FileType) {
console.log(
colorLog(
`[WARNING] The autocomplete at ${filePath} is missing a required "name", "execute" or "type" property.`,
"red",
),
"red"
)
)
}
}
@@ -44,7 +44,7 @@ export default function loadAutocompleteEvents(client: Client, ft: FileType) {
if (!autocomplete) {
console.error(
`No autocomplete matching ${interaction.commandName} was found.`,
`No autocomplete matching ${interaction.commandName} was found.`
)
return
}
@@ -65,10 +65,10 @@ export default function loadAutocompleteEvents(client: Client, ft: FileType) {
text:
interaction.user.username +
" | " +
interaction.commandName,
},
},
],
interaction.commandName
}
}
]
})
}
console.error(error)

View File

@@ -23,8 +23,8 @@ export default function loadButtonEvents(client: Client, ft: FileType) {
console.log(
colorLog(
`[WARNING] The button at ${filePath} is missing a required "name", "execute" or "type" property.`,
"red",
),
"red"
)
)
}
}
@@ -36,7 +36,7 @@ export default function loadButtonEvents(client: Client, ft: FileType) {
if (!button) {
console.error(
`No event matching ${interaction.customId} was found.`,
`No event matching ${interaction.customId} was found.`
)
return
}
@@ -57,10 +57,10 @@ export default function loadButtonEvents(client: Client, ft: FileType) {
text:
interaction.user.username +
" | " +
interaction.customId,
},
},
],
interaction.customId
}
}
]
})
}
@@ -71,10 +71,10 @@ export default function loadButtonEvents(client: Client, ft: FileType) {
{
description:
"There was an error while executing this button!",
color: embedColor,
},
color: embedColor
}
],
ephemeral: true,
ephemeral: true
})
} else {
await interaction.editReply({
@@ -82,9 +82,9 @@ export default function loadButtonEvents(client: Client, ft: FileType) {
{
description:
"There was an error while executing this button! 2",
color: embedColor,
},
],
color: embedColor
}
]
})
}
}

View File

@@ -23,8 +23,8 @@ export default function loadSlashCommandsEvents(client: Client, ft: FileType) {
console.log(
colorLog(
`[WARNING] The command at ${filePath} is missing a required "data", "execute" or "type" property.`,
"red",
),
"red"
)
)
}
}
@@ -37,7 +37,7 @@ export default function loadSlashCommandsEvents(client: Client, ft: FileType) {
if (!command) {
console.error(
`No command matching ${interaction.commandName} was found.`,
`No command matching ${interaction.commandName} was found.`
)
return
}
@@ -58,10 +58,10 @@ export default function loadSlashCommandsEvents(client: Client, ft: FileType) {
text:
interaction.user.username +
" | " +
interaction.commandName,
},
},
],
interaction.commandName
}
}
]
})
}
@@ -72,10 +72,10 @@ export default function loadSlashCommandsEvents(client: Client, ft: FileType) {
{
description:
"There was an error while executing this command!",
color: embedColor,
},
color: embedColor
}
],
ephemeral: true,
ephemeral: true
})
} else {
await interaction.editReply({
@@ -83,9 +83,9 @@ export default function loadSlashCommandsEvents(client: Client, ft: FileType) {
{
description:
"There was an error while executing this command!",
color: embedColor,
},
],
color: embedColor
}
]
})
}
}

View File

@@ -14,7 +14,7 @@ export default function loadContextMenuEvents(client: Client, ft: FileType) {
__dirname,
"..",
"..",
"commands-contextmenu",
"commands-contextmenu"
)
const contextMenuFiles = fs
.readdirSync(contextMenuPath)
@@ -30,8 +30,8 @@ export default function loadContextMenuEvents(client: Client, ft: FileType) {
console.log(
colorLog(
`[WARNING] The command at ${filePath} is missing a required "data", "execute" or "type" property.`,
"red",
),
"red"
)
)
}
}
@@ -44,7 +44,7 @@ export default function loadContextMenuEvents(client: Client, ft: FileType) {
if (!command) {
console.error(
`No command matching ${interaction.commandName} was found.`,
`No command matching ${interaction.commandName} was found.`
)
return
}
@@ -65,10 +65,10 @@ export default function loadContextMenuEvents(client: Client, ft: FileType) {
text:
interaction.user.username +
" | " +
interaction.commandName,
},
},
],
interaction.commandName
}
}
]
})
}
@@ -79,10 +79,10 @@ export default function loadContextMenuEvents(client: Client, ft: FileType) {
{
description:
"There was an error while executing this contextmenu command!",
color: embedColor,
},
color: embedColor
}
],
ephemeral: true,
ephemeral: true
})
} else {
await interaction.editReply({
@@ -90,9 +90,9 @@ export default function loadContextMenuEvents(client: Client, ft: FileType) {
{
description:
"There was an error while executing this contextmenu command!",
color: embedColor,
},
],
color: embedColor
}
]
})
}
}

View File

@@ -31,7 +31,7 @@ export default function loadCronEvents() {
cron.execute,
cron.onComplete,
cron.start,
cron.timeZone,
cron.timeZone
).start()
}
}

View File

@@ -25,8 +25,8 @@ export default function loadModalEvents(client: Client, ft: FileType) {
console.log(
colorLog(
`[WARNING] The modal at ${filePath} is missing a required "name", "execute" or "type" property.`,
"red",
),
"red"
)
)
}
}
@@ -38,7 +38,7 @@ export default function loadModalEvents(client: Client, ft: FileType) {
if (!modal) {
console.error(
`No modal matching ${interaction.customId} was found.`,
`No modal matching ${interaction.customId} was found.`
)
return
}
@@ -59,10 +59,10 @@ export default function loadModalEvents(client: Client, ft: FileType) {
text:
interaction.user.username +
" | " +
interaction.customId,
},
},
],
interaction.customId
}
}
]
})
}
@@ -73,9 +73,9 @@ export default function loadModalEvents(client: Client, ft: FileType) {
{
description:
"There was an error while executing this modal!",
color: embedColor,
},
],
color: embedColor
}
]
})
} else {
await interaction.editReply({
@@ -83,9 +83,9 @@ export default function loadModalEvents(client: Client, ft: FileType) {
{
description:
"There was an error while executing this modal!",
color: embedColor,
},
],
color: embedColor
}
]
})
}
}