Get Channel

BlockChannels

Retrieve a Discord channel's information by its ID.

Inputs

Channel IDRequired

ID of the channel to retrieve.

Outputs

Channel ID

ID of the channel.

Channel Name

Name of the channel.

Channel Topic

Topic of the channel.

Channel Position

Position of the channel in the server.

Example: 3

Channel Type

Type of channel (Text, Voice, etc.).

Channel NSFW

Whether the channel is marked NSFW.

Parent Channel ID

ID of the parent category or thread owner.

Voice Channel Limit

User limit for voice channels.

Example: 0

Channel User Limit

User limit for voice and stage channels.

Example: 0

Thread Channel Member Count

Member count for thread channels.

Example: 0

Thread Owner ID

Owner ID for thread channels.

Channel Link

Link to the channel.

Example: https://discord.com/channels/123/456

Applied Forum Tags

Comma-separated applied forum tag IDs.

Available Forum Tags

Comma-separated available forum tag IDs.

Last Message ID

ID of the last message sent in the channel.

Server ID

ID of the server containing the channel.

Channel Slow Mode

Slowmode delay in seconds (0 means disabled).

Example: 0

Build a bot using blocks like Get Channel

Use this block in our visual flow editor. Bots are hosted 24/7 for free on inventor.bot.

Advanced Documentation

This documentation can be useful when using code mode. View as Markdown

ID: get_discord_channel

Inputs

FieldInventScript nameValue
Channel IDchannel_id

Outputs

FieldInventScript nameValue
Channel IDchannel_id
Channel Namechannel_name
Channel Topicchannel_topic
Channel Positionchannel_positione.g. "3"
Channel Typechannel_type
Channel NSFWchannel_nsfw
Parent Channel IDparent_channel_id
Voice Channel Limitvoice_channel_limite.g. "0"
Channel User Limitchannel_user_limite.g. "0"
Thread Channel Member Countthread_channel_member_counte.g. "0"
Thread Owner IDthread_owner_id
Channel Linkchannel_linke.g. "https://discord.com/channels/123/456"
Applied Forum Tagsapplied_forum_tags
Available Forum Tagsavailable_forum_tags
Last Message IDlast_message_id
Server IDserver_id
Channel Slow Modechannel_slow_modee.g. "0"

Example InventScript

channel := get_discord_channel(Args{channel_id: trigger.channel_id})
send_text_message(Args{
	channel_id:      trigger.channel_id,
	message_content: "Channel ID: " + channel.channel_id,
})

More channels blocks