© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
40 replies
The Fog from Human Resources

How to create a structure like Discord.NET

I want to write an extension to a library ive started some time ago and was wondering how i could build up a similar system to Discord.NET
here is an example of what i mean

You have a
public class
public class
that inherits
InteractionModuleBase
InteractionModuleBase
and from that moment on you can create things like
[SlashCommand("some-command", "command description")]
public async Task myCommand(string arg1, string arg2) {}
[SlashCommand("some-command", "command description")]
public async Task myCommand(string arg1, string arg2) {}

And within that function you can access a
Context
Context
object which contains some data about the Interaction context
i was wondering how i could create / achieve such a thing and what the steps for that are
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

How to create a better namespace structure?
C#CC# / help
3y ago
Discord.Net
C#CC# / help
2mo ago
Discord.net
C#CC# / help
3y ago
✅ Understanding how to create a controller in ASP.NET.
C#CC# / help
4mo ago