fix: updated logging for validators

This commit is contained in:
Marius Begby committed 2023-08-26 14:39:33 +02:00
1 parent 22109823e1
commit 57fc1e3ee8
23 files changed
+118 -70

No files matched your search

+2 -2
View File
@@ -13,8 +13,8 @@ module.exports = {
.setDescription('Show list of guilds where bot is added.')
.setDMPermission(false)
.setNSFW(false),
execute: async ({ interaction, client }) => {
if (await notValidGuildId(interaction)) {
execute: async ({ interaction, client, executionId }) => {
if (await notValidGuildId({ interaction, executionId })) {
logger.debug('Not a valid guild id.');
return;
}
+2 -2
View File
@@ -13,8 +13,8 @@ module.exports = {
.setDescription('Reload the bot commands.')
.setDMPermission(false)
.setNSFW(false),
execute: async ({ interaction, client }) => {
if (await notValidGuildId(interaction)) {
execute: async ({ interaction, client, executionId }) => {
if (await notValidGuildId({ interaction, executionId })) {
logger.debug('Not a valid guild id.');
return;
}
+2 -2
View File
@@ -30,8 +30,8 @@ module.exports = {
)
.addNumberOption((option) => option.setName('page').setDescription('Page number to show').setMinValue(1)),
execute: async ({ interaction, client }) => {
if (await notValidGuildId(interaction)) {
execute: async ({ interaction, client, executionId }) => {
if (await notValidGuildId({ interaction, executionId })) {
return;
}
+2 -2
View File
@@ -16,8 +16,8 @@ module.exports = {
.setDescription('Show the bot and system status.')
.setDMPermission(false)
.setNSFW(false),
execute: async ({ interaction, client }) => {
if (await notValidGuildId(interaction)) {
execute: async ({ interaction, client, executionId }) => {
if (await notValidGuildId({ interaction, executionId })) {
return;
}