mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 14:38:49 +00:00
fix: more type annotation
This commit is contained in:
1 parent
3ac692d8eb
commit
2560f0fe9a
65 files changed
+408
-343
No files matched your search
@@ -2,6 +2,7 @@ import config from 'config';
|
||||
import { BaseGuildTextChannel, EmbedBuilder } from 'discord.js';
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
|
||||
import { Logger } from 'pino';
|
||||
import loggerModule from '../../services/logger';
|
||||
import { ExtendedClient } from '../../types/clientTypes';
|
||||
import { EmbedOptions, SystemOptions } from '../../types/configTypes';
|
||||
@@ -13,8 +14,8 @@ module.exports = {
|
||||
isDebug: false,
|
||||
once: false,
|
||||
execute: async (client: ExtendedClient) => {
|
||||
const executionId = uuidv4();
|
||||
const logger = loggerModule.child({
|
||||
const executionId: string = uuidv4();
|
||||
const logger: Logger = loggerModule.child({
|
||||
source: 'reconnecting.js',
|
||||
module: 'event',
|
||||
name: 'clientReconnecting',
|
||||
@@ -27,7 +28,7 @@ module.exports = {
|
||||
// send message to system message channel for event
|
||||
if (systemOptions.systemMessageChannelId && systemOptions.systemUserId) {
|
||||
if (systemOptions.systemMessageChannelId && systemOptions.systemUserId) {
|
||||
const channel = (await client.channels.cache.get(
|
||||
const channel: BaseGuildTextChannel = (await client.channels.cache.get(
|
||||
systemOptions.systemMessageChannelId
|
||||
)) as BaseGuildTextChannel;
|
||||
if (channel) {
|
||||
|
||||
Reference in new issue
Block a user