1.1.6 • Published 4 months ago

moocard v1.1.6

Weekly downloads
-
License
ISC
Repository
-
Last release
4 months ago

Moocard is a futuristic music card library designed for Discord bots.

install

npm install moocard

example

    const card = new moocard()
      .setName(String(song?.title).toUpperCase())
      .setAuthor(String(song?.author).toUpperCase())
      .setColor(client.color.toString())
      .setThumbnail(
        track.thumbnail
          ? track.thumbnail
          : `https://img.youtube.com/vi/${track.identifier}/hqdefault.jpg`
      )
      .setRequester((song?.requester as User).username.toUpperCase());

    const cardBuffer = await card.build();

    const attachment = new AttachmentBuilder(cardBuffer, {
      name: "moo.png",
    });

classic

1.1.6

4 months ago