Table of Contents

Namespace BotManager.Discord.Expressions

Classes

DiscordActivity

Sets the status activity shown in the current bot users profile. The DiscordInit must be initialized.

Return type is null.

This json example sets the Discord status to "is playing The Game" and returns null:
{ "$DiscordActivity": { "Name": "The Game", "Activity": "Playing" } }
DiscordInit

The Discord plugin will connect to the Discord api using the given Token. You can register Commands that will run an expression once a user executes them.

Return type is null.

This json example initials OpenAI and returns null:
{ "$OpenAiInit": { "TokenType": "Bot", "Token": { "$Env": "DISCORD_TOKEN" } } }
DiscordRespond

Responds with a text message on a DiscordSlashCommand. The DiscordInit must be initialized.

Return type is null.

This json example sends a Discord message as a command response and returns null:
{ "$DiscordRespond": { "Message": "Got your command!" } }
DiscordSend

Sends a text message to a Discord channel. The DiscordInit must be initialized.

Return type is null.

This json example sends a Discord message to a channel and returns null:
{ "$DiscordSend": { "Message": "Hello World!", "Guild": "MyServer", "Channel": "MyChannel" } }