langchain.js
    Preparing search index...

    A tool for sending messages to a discord channel using a bot. It extends the base Tool class and implements the _call method to perform the retrieve operation. Requires a bot token and channelId which can be set in the environment variables. The _call method takes the message to be sent as the input argument.

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • Optionalfields: DiscordSendMessageToolParams

      Returns DiscordSendMessagesTool

    Properties

    botToken: string
    channelId: string
    client: Client
    description: string = ...
    name: string = "discord-send-messages"

    Methods

    • Returns string