mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-03 22:15:37 +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
+5
-3
@@ -9,9 +9,11 @@ import { createClient } from './utils/factory/createClient';
|
||||
import { createPlayer } from './utils/factory/createPlayer';
|
||||
import { registerClientCommands } from './utils/registerClientCommands';
|
||||
import { registerEventListeners } from './utils/registerEventListeners';
|
||||
import { Player } from 'discord-player';
|
||||
import { Logger } from 'pino';
|
||||
|
||||
const executionId = uuidv4();
|
||||
const logger = loggerModule.child({
|
||||
const executionId: string = uuidv4();
|
||||
const logger: Logger = loggerModule.child({
|
||||
source: 'bot.js',
|
||||
module: 'shardingClient',
|
||||
name: 'shardingClient',
|
||||
@@ -22,7 +24,7 @@ const logger = loggerModule.child({
|
||||
(async () => {
|
||||
try {
|
||||
const client: ExtendedClient = await createClient({ executionId });
|
||||
const player = await createPlayer({ client, executionId });
|
||||
const player: Player = await createPlayer({ client, executionId });
|
||||
|
||||
client.on('allShardsReady', async () => {
|
||||
client.registerClientCommands = registerClientCommands;
|
||||
|
||||
Reference in new issue
Block a user