guildchat

v0.1.0
io.github.CloudCorpRecords/guildchat Checked 3 days ago Published 1 month ago

Discord 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.

ParameterTypeDescription
guild_id *stringID of the guild (server) to retrieve.

list_channels

List the channels in a guild.

ParameterTypeDescription
guild_id *stringID of the guild (server) whose channels to list.

get_channel

Get a channel by its ID.

ParameterTypeDescription
channel_id *stringID of the channel to retrieve.

send_message

Send a plain-text message to a channel.

ParameterTypeDescription
channel_id *stringID of the channel to send the message to.
content *stringPlain-text content of the message to send.

read_messages

Read recent messages from a channel, optionally limited and paged before a message ID.

ParameterTypeDescription
channel_id *stringID of the channel to read messages from.
beforestringMessage ID to page before; only messages older than this ID are returned.
limitnumberMaximum number of messages to return.

edit_message

Edit a message previously sent by the bot in a channel.

ParameterTypeDescription
channel_id *stringID of the channel containing the message to edit.
content *stringNew plain-text content to replace the message's existing content.
message_id *stringID of the message to edit.

delete_message

Delete a message from a channel.

ParameterTypeDescription
channel_id *stringID of the channel containing the message to delete.
message_id *stringID of the message to delete.

add_reaction

Add an emoji reaction to a message as the bot user.

ParameterTypeDescription
channel_id *stringID of the channel containing the message to react to.
emoji *stringEmoji to add as a reaction to the message.
message_id *stringID of the message to add the reaction to.

get_current_user

Get the current bot user.