'API Services' is an API (Application Programming Interface) that allows the generation of images from avatars. It is intended for use in Discord bots, although any service can use it through HTTP requests (https://services.d-assurance.tk:2096) or through this package.
Need help?
$ npm i api-services.js
const services = require('api-services.js');
All images must be strings in PNG format.
services
.achievement('text');
.ad('image');
.affect('image');
.amiajoke('image');
.approved('image');
.bad('image');
.batslap('image1', 'image2');
.bed('image1', 'image2');
.biden('image');
.blink('image1', 'image2');
.blur('image', level<number>);
.bobross('image');
.brightness('image', level<number>);
.burn('image', level<number>);
.calling('text');
.captcha('image');
.challenge('text');
.changemymind('text');
.circle('image');
.clyde('text');
.color('hexcolor');
.communist('image');
.confusedstonk('image');
.crush('image');
.darkness('image', level<number>);
.delete('image');
.discordblack('image');
.discordblue('image');
.dislike('image');
.distracted('image1', 'image2', 'image3');
.doublestonk('image1', 'image2');
.facepalm('image');
.facts('text');
.fuse('image1', 'image2');
.gay('image');
.glitch('image');
.grab('image');
.greyscale('image');
.gun('image');
.hearts('image');
.hitler('image');
.invert('image');
.jail('image');
.karaba('image');
.kiss('image1', 'image2');
.lesbian('image');
.like('image');
.lisapresentation('text');
.mms('image');
.money('image');
.nonbinary('image');
.notstonk('image');
.ohno('text');
.opinion('image', 'text');
.phub('username', 'message', 'avatar');
.poutine('image');
.quote('username', 'message', 'avatar', 'hexcolor');
.rip('image');
.salty('image');
.sepia('image');
.shame('image');
.sharpen('image', level<number>);
.simp('image');
.spank('image');
.spongebobtimecard('text');
.stonk('image');
.tatoo('image');
.thomas('image');
.trash('image');
.trump('image');
.wanted('image');
.what('image');
const services = require('api-services.js');
const url = services.ad(msg.author.dynamicAvatarURL('png'));
return bot.createMessage(msg.channel.id, {
embed: {
image: {
url: url,
},
},
});
const services = require('api-services.js');
const url = services.ad(msg.author.displayAvatarURL({ dynamic: true, size: 1024, format: 'png' }));
return message.channel.send({
embed: {
image: {
url: url,
},
},
});
const services = require('api-services.js');
const Discord = require('discord.js');
const url = services.ad(msg.author.displayAvatarURL({ dynamic: true, size: 1024, format: 'png' }));
const embed = new Discord.MessageEmbed().setImage(url);
return message.channel.send(embed);