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