Procedures

Automation procedures in the Discord book.

The following documentation is for Discord v1.1.3 (BDK).

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.

discord guild or discord server

Yes

(no default)

Output Concepts

Concept
Description
Type

A list of Channel objects containing information about each channel.

discord channel or discord guild channel

Examples

Get all channels from a specific guild:

Get channels by name:

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.

discord guild or discord server

Examples

Get all guilds the bot is in:

Get guilds and use them in further operations:

Get the guilds with specific names:

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.

discord guild or discord server

Yes

(no default)

Output Concepts

Concept
Description
Type

A list of GuildMember objects containing information about each member.

discord guild member or discord member

Examples

Get all members from a specific guild:

Get members by nick:

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.

discord channel or discord guild channel

Yes

(no default)

The MessageBody object containing the message content and any embeds.

discord message body

Yes

(no default)

Output Concepts

Concept
Description
Type

A Message object representing the sent message.

discord message

Examples

Get channels and send a message:

Last updated

Was this helpful?