Procedures

Automation procedures in the Discord BDK Book.

to get some (channels) from a guild

FILTER - CAPABLE

Retrieves all channels from a specific guild.

Input Concepts

Concept
Description
Type
Required
Default Value

The Guild object representing the server to get channels from.

guild or server

Yes

Output Concepts

Concept
Description
Type

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)

FILTER - CAPABLE

Retrieves all guilds (servers) that the bot is a member of.

Output Concepts

Concept
Description
Type

A list of Guild objects representing the servers the bot has access to.

guild or server

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

FILTER - CAPABLE

Retrieves all members from a specific guild.

Input Concepts

Concept
Description
Type
Required
Default Value

The reference to the Guild that the bot is in.

guild or server

Yes

Output Concepts

Concept
Description
Type

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

Concept
Description
Type
Required
Default Value

The Channel object representing where to send the message.

channel or guild channel

Yes

The MessageBody object containing the message content and any embeds.

message body

Yes

Output Concepts

Concept
Description
Type

A Message object representing the sent message.

message

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?