A tool for retrieving messages from a discord channel using a bot. It extends the base Tool class and implements the _call method to perform the retrieve operation. Requires an bot token which can be set in the environment variables, and a limit on how many messages to retrieve. The _call method takes the discord channel ID as the input argument. The bot must have read permissions to the given channel. It returns the message content, author, and time the message was created for each message.

Hierarchy (view full)

Constructors

Properties

description: string = ...
name: string = "discord-get-messages"
botToken: string
client: Client<boolean>
messageLimit: number

Generated using TypeDoc