A RedM standalone Discord Webhook API system.
- Download this repo
- Copy and paste
bcc-discordfolder toresources/bcc-discord - Add
ensure bcc-discordto yourserver.cfgfile (ABOVE any scripts that use it) - Now you are ready to get coding!
This API allows you to easily add Discord webhooks messages to your scripts.
local discord = exports['bcc-discord'].initiate()
discord.sendMessage('webhookurl', 'My Script', 'https://cdn2.iconfinder.com/data/icons/frosted-glass/256/Danger.png', 'user123', 'this user is awesome')Add custom embeds
local discord = exports['bcc-discord'].initiate()
discord.sendMessage('webhookurl', 'My Script', 'https://cdn2.iconfinder.com/data/icons/frosted-glass/256/Danger.png', 'user123', 'this user is awesome'{
{
{
color = 11342935,
title = 'some times',
description = 'awesomesauce'
},
{
color = 11342935,
title = 'some other time',
description = 'awesomesauce'
},
}
})- NONE! It's standalone.