© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
6 replies
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) => {
                    
                }
            }
        }
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ Event Handler functionality
C#CC# / help
11mo ago
❔ OOP Event Handler implementation
C#CC# / help
4y ago
❔ event handler not being triggered
C#CC# / help
3y ago
❔ Using Event Handler null exception
C#CC# / help
4y ago