discord_luau/rest
v0.0.1 ·
Discord-Luau Rest - providing calls to the discord HTTP Rest API
Typed interface for the Discord HTTP REST API.
Source: packages/rest
Installation
pesde add discord_luau/rest
Example
local REST = require("./luau_packages/rest")
local request = REST.request.new({
token = "Bot YOUR_TOKEN_HERE",
restApiVersion = 10,
})
local channel = REST.channel:getChannelAsync(request, channelId):await()
print(channel.body.name)
REST.message:createMessageAsync(request, channelId, {
content = "Hello from discord-luau!",
}):await()
Full documentation at discordluau-docs.devcomp.workers.dev.
Contributing
Contributions are welcome via the repository at github.com/DiscordLuau/discord-luau.
License
This package is licensed under the MIT License.