A library that expands the Discordia features
There is no documentation at this moment, read the library code to learn more
- Open your project folder
- Run
git clone https://github.com/Be1zebub/Discordia-Expanded.git deps/discordia-expanded
auto crossposting
local discordia = require("discordia")
local client = discordia.Client()
require("discordia-expanded")
client:on("messageCreate", function(msg)
if msg.channel.type == 5 then -- is news channel
msg:Crosspost()
end
end)
client:run("Bot XXX")
auto threads
require("discordia-expanded")
local forumChannels = {
["676069143463723018"] = true,
["773170907879178241"] = true
}
client:on("messageCreate", function(msg)
if forumChannels[msg.channel.id] then
msg:CreateThread({name = msg.id})
end
end)
The library is being developed as new things are needed in my projects, so there are many things that have recently been added to the api discord - but ive still doesnt added it into this lib.
Here are some other libraries that expand the Discordia features, you can use them together with Discordia Expanded to make your bots better.
https://github.com/GitSparTV/discordia-slash
https://github.com/Bilal2453/discordia-interactions
https://github.com/Bilal2453/discordia-components