langchain.js
    Preparing search index...

    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 (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Parameters

      • Optionalfields: DiscordToolParams

      Returns DiscordGetTextChannelsTool

    Properties

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

    Methods

    • Returns string