Closed singatias closed 3 years ago
can u post a snippet of your code
@Once("ready")
onReady([]: ArgsOf<"ready">, client: Client): void {
//client stuff
}
is how you can do that with the client injection https://github.com/OwenCalvin/discord.ts#client-payload-injection
Sorry for the late response. I was missing the []: ArgsOf<"ready"> first part.
Thank You
np :D
the client is undefined when injected in the ready event. I'm trying to create a channel if it doesn't exist when my bot startup.