A tool for retrieving text channels within a server/guild a bot is a member of. It extends the base Tool class and implements the _call method to perform the retrieve operation. Requires a bot token which can be set in the environment variables. The _call method takes a server/guild ID to get its text channels.

Hierarchy

  • Tool
    • DiscordGetTextChannelsTool

Constructors

Properties

Constructors

Properties

description: string = ...
name: string = "discord-get-text-channels"
botToken: string
client: Client<boolean>

Generated using TypeDoc