Channel Management
Creating Channels
Useerlc_bot_create_channel to create a new channel of any type in the server. After the block runs, set RESULT_VARIABLE to store the new channel’s ID for use in later blocks.
Deleting and Editing Channels
erlc_bot_delete_channel— Permanently delete a channel. Input:CHANNEL_IDerlc_bot_edit_channel— Rename an existing channel. Inputs:CHANNEL_ID,NAME
Channel Settings
Set Category
erlc_bot_set_channel_category — Move a channel into a category.Inputs: CHANNEL_ID, CATEGORY_IDSet Topic
erlc_bot_set_channel_topic — Set the channel topic displayed below the channel name.Inputs: CHANNEL_ID, CONTENTNSFW Toggle
erlc_bot_set_channel_nsfw — Mark or unmark a channel as age-restricted.Inputs: CHANNEL_ID; Field: ENABLED (true / false)Slowmode
erlc_bot_set_channel_slowmode — Set a per-user cooldown between messages (in seconds). Use 0 to disable.Inputs: CHANNEL_ID, SECONDSLock Channel
erlc_bot_lock_channel — Lock or unlock a channel, preventing members from sending messages.Inputs: CHANNEL_ID; Field: LOCKED (true / false)Sync Permissions
erlc_bot_sync_channel_permissions — Sync the channel’s permission overrides to match its parent category.Input: CHANNEL_IDThreads and Forum Posts
Creating Threads
Create Thread
erlc_bot_create_thread — Create a public thread in a text channel.Inputs: CHANNEL_ID, NAME; Field: RESULT_VARIABLECreate Thread (v2)
erlc_bot_create_thread_v2 — Create a thread with explicit type control.Inputs: CHANNEL_ID, NAME; Fields: THREAD_TYPE (11 = public, 12 = private), RESULT_VARIABLEerlc_bot_create_thread_v2 when you need a private thread visible only to explicitly added members.
Forum Posts
erlc_bot_create_forum_post — Create a new post in a forum channel.
Thread Settings
erlc_bot_set_thread_archived— Archive or unarchive a thread. Input:THREAD_ID; Field:ARCHIVED(true/false)erlc_bot_set_thread_locked— Lock or unlock a thread. Input:THREAD_ID; Field:LOCKED(true/false)erlc_bot_thread_member— Add or remove a member from a thread. Inputs:MEMBER_ID,THREAD_ID; Field:ADD(trueto add,falseto remove)
Invites
Creating Invites
erlc_bot_create_invite — Generate an invite link for a channel.
Deleting Invites
erlc_bot_delete_invite — Revoke an existing invite by its code.
Input: CODE (the invite code, not the full URL)
AutoMod Rules
AutoMod lets you automatically flag or block messages that match specific keywords or patterns.Create Rule
erlc_bot_create_automod_rule — Create a new AutoMod rule.Inputs: NAME, KEYWORDS, CONTENT; Field: RESULT_VARIABLEDelete Rule
erlc_bot_delete_automod_rule — Remove an AutoMod rule.Input: RULE_IDRename Rule
erlc_bot_rename_automod_rule — Rename an existing rule.Inputs: RULE_ID, NAMEEnable / Disable Rule
erlc_bot_set_automod_enabled — Enable or disable an AutoMod rule without deleting it.Input: RULE_ID; Field: ENABLED (true / false)Bot Control
Use these blocks to control the lifecycle of your custom Discord bot from within an automation flow.Raw Bot API Requests
For Discord API endpoints that don’t have a dedicated block, useerlc_bot_request to send a raw HTTP request authenticated as your bot.
The
ENDPOINT input is relative to the Discord API base URL. You do not need to include https://discord.com/api/v10. Read the Discord developer documentation for available endpoints.