guildchat
v0.1.0Discord guild and channel messaging via REST API v10: guilds, channels, messages and reactions.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_guilds
List the guilds (servers) the bot user is a member of.
get_guild
Get a guild (server) by its ID.
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | ID of the guild (server) to retrieve. |
list_channels
List the channels in a guild.
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | ID of the guild (server) whose channels to list. |
get_channel
Get a channel by its ID.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | ID of the channel to retrieve. |
send_message
Send a plain-text message to a channel.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | ID of the channel to send the message to. |
content * | string | Plain-text content of the message to send. |
read_messages
Read recent messages from a channel, optionally limited and paged before a message ID.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | ID of the channel to read messages from. |
before | string | Message ID to page before; only messages older than this ID are returned. |
limit | number | Maximum number of messages to return. |
edit_message
Edit a message previously sent by the bot in a channel.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | ID of the channel containing the message to edit. |
content * | string | New plain-text content to replace the message's existing content. |
message_id * | string | ID of the message to edit. |
delete_message
Delete a message from a channel.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | ID of the channel containing the message to delete. |
message_id * | string | ID of the message to delete. |
add_reaction
Add an emoji reaction to a message as the bot user.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | ID of the channel containing the message to react to. |
emoji * | string | Emoji to add as a reaction to the message. |
message_id * | string | ID of the message to add the reaction to. |
get_current_user
Get the current bot user.