veld.chat-ts
A library for the chat service at chat.veld.dev
Client
Events
message:create
This emits a message object
content?: string;
embed?: Embed;
channelId: string;
mentions: Array<string>;
Functions
sendMessage
const content = 'Test' // Or it could be an embed. {title: 'a', description: 'b', thumbnailUrl: 'image url'...}
client.sendMessage(channelID, content)
channelID: the channel ID
content: the message's content
Other types
Embed
author?: EmbedAuthor;
title?: string;
description?: string;
color?: number;
footer?: string;
imageUrl?: string;
thumbnailUrl?: string;
EmbedAuthor
value: string;
iconUrl?: string;