Procedures
Automation procedures in the Discord BDK Book.
Make sure to add the Discord BDK Book to your agent before using these automation procedures.
to get some (channels) from a guild
Retrieves all channels from a specific guild.
Input Concepts
Output Concepts
A list of Channel objects containing information about each channel.
channel
or guild channel
Examples
Get all channels from a specific guild:
get some guilds
use the first guild
get some channels from the guild
Get channels by name:
get the guild's channels whose name is "general"
to get some (guilds)
Retrieves all guilds (servers) that the bot is a member of.
Output Concepts
Examples
Get all guilds the bot is in:
get some guilds
Get guilds and use them in further operations:
get some guilds
use the above as the servers
for each server in servers:
get some channels from the server
Get the guilds with specific names:
get some guilds whose name is "Kognitos Discord Test Secret Server"
to get some (members) from a guild
Retrieves all members from a specific guild.
Input Concepts
Output Concepts
A list of GuildMember objects containing information about each member.
guild member
or member
Examples
Get all members from a specific guild:
get some guilds
use the second guild as the guild
get some members from the guild
Get members by nick:
get the guild's member whose nick is "Integrations-Test"
to send a (new message) to a channel
Sends a message to a specific channel.
Input Concepts
Output Concepts
Examples
Get channels and send a message:
get some guilds
use the first guild as the guild
get some channels from the guild
use the first channel as the channel
get '{"content": "Hi Discord Channel!"}' as a json
use the above as the body
send the body to the channel
Last updated
Was this helpful?