fix: Update validators with new types

This commit is contained in:
Marius Begby committed 2023-09-05 14:57:08 +02:00
1 parent af6bdd4da8
commit e67d0004b0
7 files changed
+39 -73

No files matched your search

+3 -4
View File
@@ -8,14 +8,13 @@ import {
VoiceBasedChannel,
VoiceChannel
} from 'discord.js';
import { Logger } from 'pino';
import loggerModule from '../../services/logger';
import { EmbedOptions } from '../../types/configTypes';
import { CannotJoinVoiceOrTalkParams, CannotSendMessageInChannelParams } from '../../types/utilTypes';
import { ValidatorParams } from '../../types/utilTypes';
const embedOptions: EmbedOptions = config.get('embedOptions');
export const cannotJoinVoiceOrTalk = async ({ interaction, executionId }: CannotJoinVoiceOrTalkParams) => {
export const cannotJoinVoiceOrTalk = async ({ interaction, executionId }: ValidatorParams) => {
const logger: Logger = loggerModule.child({
module: 'utilValidation',
name: 'cannotJoinVoiceOrTalk',
@@ -49,7 +48,7 @@ export const cannotJoinVoiceOrTalk = async ({ interaction, executionId }: Cannot
return false;
};
export const cannotSendMessageInChannel = async ({ interaction, executionId }: CannotSendMessageInChannelParams) => {
export const cannotSendMessageInChannel = async ({ interaction, executionId }: ValidatorParams) => {
const logger: Logger = loggerModule.child({
module: 'utilValidation',
name: 'cannotSendMessageInChannel',