Skip to main content
Version: 2.x

Utilities

Utility functions are used to complement the comunication between corde and Discord, it provide just a few functions to iterate tests with Discord using corde's bot or your self bot.

sendMessage(string | number | MessageEmbed)

Use sendMessage to send a message as corde bot. This is usefull if you do not want to depend directly of expect to wait corde to send a message.

const message = await corde.sendMessage("Hi Frodo!");

withClient(Client)

Use withClient if you want