A tool for searching for messages within 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 the discord channel ID of the channel. The _call method takes the search term 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

Constructors

Properties

description: string = ...
name: string = "discord_channel_search_tool"
botToken: string
channelId: string
client: Client<boolean>

Generated using TypeDoc