Skip to content

telmengedar/NightlyCode.Discord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NightlyCode.Discord

Provides access to Discord. The websocket connection is more or less complete, REST though is lacking a lot of implementation.

Dependencies

Websocket connection

Most functionality of discord requires a websocket connection. Some REST calls require a previous websocket authentication aswell before calls are accepted by discord servers.

Connect Discord using websockets

Connection to Discord doesn't require much explanation. The following code connects to Discord using the websockets-API.


DiscordWebsocket websocket = new DiscordWebsocket(<Token>);
websocket.Connect();

Incoming websocket events are then routed to corresponding events of the DiscordWebsocket class. Subscribe to the events to get informed about whatever is happening at connected servers.

REST Api

Only some methods of the REST API are implemented yet. Using the REST API you can get information about a channel or send messages to it. Rate-Limiting headers are processed and the API seems to react to them quite well.

About

Implementation of the Discord-API as Assembly for .NET Languages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages