C#C
C#3y 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) => {
                    
                }
            }
        }
image.png
Was this page helpful?