feat(WebEmbed) Custom API, Custom ShortenAPI, and open-source API

https://github.com/aiko-chan-ai/WebEmbed
This commit is contained in:
Cinnamon
2022-06-27 13:23:00 +07:00
parent 3b2d88caf9
commit 58b4179e81
8 changed files with 45 additions and 23 deletions

View File

@@ -69,9 +69,12 @@ In this way, all Slash commands can be obtained
Code:
```js
const Discord = require('discord.js-selfbot-v13');
// Selfhost WebEmbed: https://github.com/aiko-chan-ai/WebEmbed
const w = new Discord.WebEmbed({
shorten: true,
hidden: false // if you send this embed with MessagePayload.options.embeds, it must set to false
baseURL: '', // if you want self-host API, else skip :v
shortenAPI: '', // if you want Custom shortenAPI (Method: Get, response: Text => URL), else skip :v
})
.setAuthor({ name: 'hello', url: 'https://google.com' })
.setColor('RED')