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,
})
Get Channel
Retrieve a Discord channel's information by its ID.
Inputs
ID of the channel to retrieve.
Outputs
ID of the channel.
Name of the channel.
Topic of the channel.
Position of the channel in the server.
Example: 3
Type of channel (Text, Voice, etc.).
Whether the channel is marked NSFW.
ID of the parent category or thread owner.
User limit for voice channels.
Example: 0
User limit for voice and stage channels.
Example: 0
Member count for thread channels.
Example: 0
Owner ID for thread channels.
Link to the channel.
Example: https://discord.com/channels/123/456
Comma-separated applied forum tag IDs.
Comma-separated available forum tag IDs.
ID of the last message sent in the channel.
ID of the server containing the channel.
Slowmode delay in seconds (0 means disabled).
Example: 0
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
get_discord_channelInputs
| Field | InventScript name | Value |
|---|---|---|
| Channel ID | channel_id |
Outputs
| Field | InventScript name | Value |
|---|---|---|
| Channel ID | channel_id | |
| Channel Name | channel_name | |
| Channel Topic | channel_topic | |
| Channel Position | channel_position | e.g. "3" |
| Channel Type | channel_type | |
| Channel NSFW | channel_nsfw | |
| Parent Channel ID | parent_channel_id | |
| Voice Channel Limit | voice_channel_limit | e.g. "0" |
| Channel User Limit | channel_user_limit | e.g. "0" |
| Thread Channel Member Count | thread_channel_member_count | e.g. "0" |
| Thread Owner ID | thread_owner_id | |
| Channel Link | channel_link | e.g. "https://discord.com/channels/123/456" |
| Applied Forum Tags | applied_forum_tags | |
| Available Forum Tags | available_forum_tags | |
| Last Message ID | last_message_id | |
| Server ID | server_id | |
| Channel Slow Mode | channel_slow_mode | e.g. "0" |