remove console.logs
This commit is contained in:
@ -1,10 +1,11 @@
|
||||
import { CustomError, errorCodes } from "../interfaces"
|
||||
import { logger } from "../logger"
|
||||
import { ExtendedClient } from "../structures/client"
|
||||
|
||||
export async function sendFailureDM(creatorMessage: string, client: ExtendedClient, creatorId?: string): Promise<void> {
|
||||
if (!creatorId) throw new CustomError('No creator ID present', errorCodes.no_creator_id)
|
||||
const creator = await client.users.fetch(creatorId)
|
||||
console.log(`Creator ${JSON.stringify(creator)}`)
|
||||
logger.info(`Creator ${JSON.stringify(creator)}`)
|
||||
if (creator)
|
||||
if (!creator.dmChannel)
|
||||
await creator.createDM()
|
||||
|
Reference in New Issue
Block a user