C
C#•2y ago
thieved

automated event handler

i'm trying to index my bot's client with an event name but it throws an error, what's a way i can achieve something like this?
public void LoadEvents()
{
this.Events = this.Registrar.ReadEvents();

foreach (ElfinEvent ev in this.Events) {
this.RawClient[ev] += async (self, packet) => {

}
}
}
public void LoadEvents()
{
this.Events = this.Registrar.ReadEvents();

foreach (ElfinEvent ev in this.Events) {
this.RawClient[ev] += async (self, packet) => {

}
}
}
3 Replies
thieved
thievedOP•2y ago
by the way, i'm new to C#
ChucklesTheBeard
ChucklesTheBeard•2y ago
sadly, custom discord clients are against discord TOS, so you aren't likely to find help with this project here
thieved
thievedOP•2y ago
this isnt a custom discord client 😭 i think its my wording there i reworded it
Want results from more Discord servers?
Add your server