-
Notifications
You must be signed in to change notification settings - Fork 144
Home
Discordia is an asynchronous Discord API library written in Lua for the Luvit runtime. Here, you can find tutorials and API references for the library. You can find more general information about Discordia in the repository's readme and more general information about Luvit at https://luvit.io/.
Reading the documentation here should answer most of your questions. If you are still having trouble, visit our Discord channel.
Discord has its own official API documentation. Reading this is recommended, as it may supplement the Discordia documentation found here.
- Beginner
- Experienced
- Introduction
- Events
- Object caching
- Client options
- Permissions Management (unfinished)
- Asynchronous programming
- Extensions
- Voice
This is an index of Discordia classes and their properties and methods. This information can also be viewed by calling the help
method on any Discordia object or class.
In addition to the documented methods, a get
methods exists for every property, a set
method exists for every mutable property, and get
and find
methods exist for the documented cached objects. See the topics above for more information about this.
With a few exceptions, Discord object methods and property mutators use asynchronous HTTP or WebSocket functions and must be called from within a coroutine or a client event callback (which is pre-wrapped with a coroutine). If you receive an "attempt to yield across C-call boundary" error, then you need to wrap the relevant code with a coroutine.
Client
Voice
Utilities
Discord Objects