GuildMemberAdd Event LIstener
I am trying to create an event listener using sapphire ts and discord js. I am trying to find a way to test the event without having to create and ban accounts repeatedly. I tried using the node.js event emitter like so
I tried using Client.emit() as a couple stack overflow but I got an error telling me that there was no method for client named emit. Any help is appreciated.
Solution:Jump to solution
Worked in my eval command.
Make sure it's actually the Client instance you're trying to use emit() on. Inside a command file if you're extending the Command class, it would be
```ts
this.container.client.emit()...
2 Replies