mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 06:28:53 +00:00
fix: Ensure promise is returned where applicable
This commit is contained in:
1 parent
f231c53fe8
commit
14cb6b4936
23 files changed
+86
-125
No files matched your search
@@ -26,12 +26,7 @@ const command: CustomSlashCommandInteraction = {
|
||||
guildId: interaction.guild?.id
|
||||
});
|
||||
|
||||
if (!client || !client.commands) {
|
||||
logger.error('Client is undefined or does not have commands property.');
|
||||
return;
|
||||
}
|
||||
|
||||
const commandList = client.commands
|
||||
const commandList = client!.commands!
|
||||
.filter((command) => {
|
||||
// don't include system commands
|
||||
if (command.isSystemCommand) {
|
||||
|
||||
Reference in new issue
Block a user