-
Notifications
You must be signed in to change notification settings - Fork 0
GET convultional
BulzyKrown Big Boss edited this page Dec 7, 2021
·
3 revisions
GET imgedit/convultional
Query / Header | Nombre | Tipo | Requerido |
---|---|---|---|
Header | Token | String | ✅ |
Query | avatar | String | ✅ |
Query | filter | String | ✅ |
- 🟢200: OK, Retorna Buffer de la imagen.
- 🔴400: Retorna error con respecto al input.
Documentate para más detalles: Aquí
curl --request GET \
--url 'https://c0met.xyz/imgedit/convolutional?avatar=https://cdn.discordapp.com/attachments/862319744987037736/917634980019052614/c4249b3c5acf3f537b025bb0359a8731.png?size=4096&filter=0%2C1%2C0%2C1%2C-4%2C1%2C0%2C1%2C0' \
--header 'Token: TU-TOKEN-TEMPORAL'
const Comet = new (require('c0met'))('TOKEN');
const Discord = require('discord.js');
const client = new Discord.Client();
client.on('message', async (msg) => {
if (msg.content == 'convultional') {
let img = await Comet.Convultional(msg.author.displayAvatarURL({ format: 'png' }), '0,1,0,1,-4,1,0,1,0');
msg.channel.send(new Discord.MessageAttachment(img, 'comet.png'));
}
});
- Original