-
Notifications
You must be signed in to change notification settings - Fork 0
GET flip
BulzyKrown Big Boss edited this page Dec 7, 2021
·
2 revisions
GET imgedit/flip
Query / Header | Nombre | Tipo | Requerido |
---|---|---|---|
Header | Token | String | ✅ |
Query | avatar | String | ✅ |
- 🟢200: OK, Retorna Buffer de la imagen.
- 🔴400: Retorna error con respecto al input.
curl --request GET \
--url 'https://c0met.xyz/imgedit/concierge?avatar1=https://cdn.discordapp.com/attachments/862319744987037736/917634980019052614/c4249b3c5acf3f537b025bb0359a8731.png?size=4096&avatar2=https://cdn.discordapp.com/attachments/844006142824546332/912362291335401492/tumblr_3961c7d5765d8a860723cd6efe34d544_65c63425_540.jpg' \
--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 == 'flip') {
let img = await Comet.Flip(msg.author.displayAvatarURL({ format: 'png' }));
msg.channel.send(new Discord.MessageAttachment(img, 'comet.png'));
}
});
- Original