Skip to content

Be1zebub/Discordia-Expanded

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discordia-Expanded

A library that expands the Discordia features

Documentation

There is no documentation at this moment, read the library code to learn more

Installation

  1. Open your project folder
  2. Run git clone https://github.com/Be1zebub/Discordia-Expanded.git deps/discordia-expanded

Examples

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)

True reply Threads

PS

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

About

A library that expands the discordia features

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages