Discordia icon indicating copy to clipboard operation
Discordia copied to clipboard

Discord API library written in Lua for the Luvit runtime environment

Results 62 Discordia issues
Sort by recently updated
recently updated
newest added

`2024-03-25 13:29:29 | [ERROR] | Could not authenticate, check token: /home/runner/lua420/deps/coro-http.lua:75: timeout` And my token is definately correct. ```2024-03-25 13:40:24 | [INFO] | Discordia 2.11.2 2024-03-25 13:40:24 | [INFO] |...

my code: ``` local discordia = require('discordia') local client = discordia.Client() client:on('ready', function() print('Logged in as '.. client.user.username) end) client:on('messageCreate', function(message) if message.content == '!ping' then message.channel:send('Pong!') end print(message.content) end)...

Is there a specific reason `Cache:_insert` doesn't apply `:_load` to deleted objects? If no, then this PR should fix that.

Example with the permission overwrites, but I can see this potentially happening with other objects too ```lua client:on("ready", function () local guild = client:getGuild(" ") local channel = client:getChannel(" ")...

This pull request creates a new Enum, `enum.userFlag`, creates a new Resolver, `Resolver.userFlag()`, a new User getter, `get.badges()`, and a new User method, `User:hasBadge(User-Flag-Resolvable)`. These all allow for Badges support....

Just a bit of documentation fix. I noticed this ```lua --[=[@p stickers ArrayIterable An iterable array of all stickers that are sent in this message.]=] function get.stickers(self) if not self._stickers...

Adds the ability to follow Announcement/News channels, as well as the ability to crosspost messages. This should be forward compatible with the dev branch. ### New Methods - `Message:crosspost()` -...

Explicitly indicates that the user has to enable the messageContent privileged intent if they wish for the examples to work.

Added the follow new methods to Date class: - `Date.parseTimestampFormat(str)`, returns `number, string`. - `Date.fromTimestampFormat(str)`, returns `Date`. - `Date:toTimestampFormat(style)`, accepts `enums.timestampStyle`, returns string. Might want to choose a better name...

Makes it so the bot goes offline instantly instead of waiting until Discord sends a heartbeat on `client:stop()`. I did notice after writing this that the [dev branch](https://github.com/SinisterRectus/Discordia/blob/dev/libs/client/Shard.lua#L185) handles it...

hacktoberfest-accepted