mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-03 06:28:53 +00:00
fix: updated logging for validators
This commit is contained in:
1 parent
22109823e1
commit
57fc1e3ee8
23 files changed
+118
-70
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user