apy-wrapper
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

APY

The Node.JS wrapper for interfacing with APY.

Example Image

Native

const { Image } = require('apy-wrapper');

(async () => {
    let image = await Image.get('discordjs', { text: 'APY' });
    console.log(image);
});

Discord.js

const { AttachmentBuilder } = require('discord.js'),
    { Image } = require('apy-wrapper');
...
async run(message, args) {
    let image = await Image.get('discordjs', { text: 'APY' });
    let attach = new AttachmentBuilder(image, { name: 'myAPYImage.jpeg' });
    return (await message.channel.send({ content: 'Hello!', files: [attach] }));
}

Readme

Keywords

none

Package Sidebar

Install

npm i apy-wrapper

Weekly Downloads

0

Version

1.1.1

License

ISC

Unpacked Size

10.2 kB

Total Files

10

Last publish

Collaborators

  • cyberghxstuwu
  • asperion