# 将 Discord 机器人 接入 Open Flow

Source: https://openflow.run/zh-cn/integrations/discordbot/

[全部集成](https://openflow.run/zh-cn/integrations/)

了解热闹频道里的讨论，或向社群发布新公告。

*   [146 个工具](https://openflow.run/zh-cn/integrations/discordbot/#integration-actions)
*   OAuth 2.0
*   自定义凭据
*   沟通
*   开发工具

[连接 Discord 机器人](https://console.openflow.run/connections/discordbot)

每月 20,000 次免费应用调用（付费服务另计）

## 可以做什么

读取可访问的频道消息，并按 Discord 机器人的权限管理社群资料与活动。

### 读取与维护频道消息

读取、创建及编辑消息，管理置顶及回应，或删除指定消息。

### 读取与管理服务器资源

读取频道、角色、成员及计划活动，在权限允许时维护角色及计划活动。

## 使用 Discord 机器人 的模板

![Route Webflow Forms to Discord Channels 在 Open Flow 中的工作流截图](https://openflow.run/template-previews/route-webflow-forms-to-discord-channels/light-cover.webp)

效率

### [Route Webflow Forms to Discord Channels](https://openflow.run/zh-cn/templates/route-webflow-forms-to-discord-channels/)

Send Webflow form submissions to a matching Discord channel, creating the channel when needed.

![Send Sheet Investment Updates to Discord 在 Open Flow 中的工作流截图](https://openflow.run/template-previews/send-sheet-investment-updates-to-discord/light-cover.webp)

效率

### [Send Sheet Investment Updates to Discord](https://openflow.run/zh-cn/templates/send-sheet-investment-updates-to-discord/)

Watch investment security codes and send the complete sheet table to Discord when rows are added or codes change.

![Notify Discord When Stock Text Is Absent 在 Open Flow 中的工作流截图](https://openflow.run/template-previews/monitor-stock-text-to-discord/light-cover.webp)

运营

### [Notify Discord When Stock Text Is Absent](https://openflow.run/zh-cn/templates/monitor-stock-text-to-discord/)

Check a webpage every hour and notify Discord when the text “Out Of Stock” is absent.

![Post Ranked Product Hunt Launches to Discord 在 Open Flow 中的工作流截图](https://openflow.run/template-previews/post-ranked-product-hunt-launches-to-discord/light-cover.webp)

Community

### [Post Ranked Product Hunt Launches to Discord](https://openflow.run/zh-cn/templates/post-ranked-product-hunt-launches-to-discord/)

Post the five highest-ranked recent Product Hunt launches to a Discord channel every hour.

![Live Tennis Discord Alert 在 Open Flow 中的工作流截图](https://openflow.run/template-previews/live-tennis-discord-alert/light-cover.webp)

运营

### [Live Tennis Discord Alert](https://openflow.run/zh-cn/templates/live-tennis-discord-alert/)

Check the first page of live tennis matches every five minutes and announce previously unseen match IDs in Discord.

![Discord Feedback Router 在 Open Flow 中的工作流截图](https://openflow.run/template-previews/discord-feedback-router/light-cover.webp)

支持

### [Discord Feedback Router](https://openflow.run/zh-cn/templates/discord-feedback-router/)

Classify one feedback message and send its department instruction to the configured customer-success, IT, or support channel in Discord.

## 所有工具

146 个工具

### Modify Guild Channel Positions

调整 Discord 服务器频道的顺序或所属分类。需要 MANAGE\_CHANNELS 权限；每次请求只能有一项修改 parent\_id。

`discordbot.modify_guild_channel_positions`

### Get Guild Role

按 ID 获取 Discord 服务器角色。

`discordbot.get_guild_role`

### Get Guild Role Member Counts

获取 Discord 服务器中各角色的成员数量，不包括 @everyone。

`discordbot.get_guild_role_member_counts`

### Modify Guild Role Positions

调整 Discord 服务器角色的顺序，需要 MANAGE\_ROLES 权限。

`discordbot.modify_guild_role_positions`

### Modify Guild Incident Actions

暂停 Discord 服务器邀请或私信，最长 24 小时，需要 MANAGE\_GUILD 权限。

`discordbot.modify_guild_incident_actions`

### Get Application

按 ID 获取应用程序。

`discordbot.get_application`

### Get My Application

获取当前平台机器人应用程序。

`discordbot.get_my_application`

### Get My Oauth2 Application

获取当前 OAuth2 应用程序信息。

`discordbot.get_my_oauth2_application`

### Get Public Keys

获取 Discord OAuth2 公钥。

`discordbot.get_public_keys`

### Get Gateway

获取公共 Discord 网关 URL。

`discordbot.get_gateway`

### Get Bot Gateway

获取平台机器人的网关连接信息。

`discordbot.get_bot_gateway`

### Get Guild

使用平台机器人令牌按 ID 获取服务器。

`discordbot.get_guild`

### Update Guild

更新服务器设置。

`discordbot.update_guild`

### Create Guild

使用平台机器人令牌创建服务器。

`discordbot.create_guild`

### Create Guild From Template

使用平台机器人令牌从模板创建服务器。

`discordbot.create_guild_from_template`

### Delete Guild

删除平台机器人拥有的服务器。

`discordbot.delete_guild`

### List Guild Audit Log Entries

列出服务器的审计日志条目。

`discordbot.list_guild_audit_log_entries`

### List Guild Bans

列出服务器的封禁。

`discordbot.list_guild_bans`

### Get Guild Ban

按用户 ID 获取特定服务器封禁。

`discordbot.get_guild_ban`

### Ban User From Guild

封禁服务器中的用户。

`discordbot.ban_user_from_guild`

### Bulk Ban Users From Guild

批量封禁服务器中的用户。

`discordbot.bulk_ban_users_from_guild`

### Unban User From Guild

移除用户的服务器封禁。

`discordbot.unban_user_from_guild`

### Preview Prune Guild

预览将从服务器修剪的成员数量。

`discordbot.preview_prune_guild`

### Prune Guild

修剪服务器中的不活跃成员。

`discordbot.prune_guild`

### Leave Guild

以当前机器人用户身份离开服务器。

`discordbot.leave_guild`

### Get User

按 ID 获取用户。

`discordbot.get_user`

### Update My User

更新当前机器人用户的个人资料。

`discordbot.update_my_user`

### Test Auth

针对 /users/@me 测试配置的机器人令牌。

`discordbot.test_auth`

### Get Guild Preview

获取可发现服务器的预览。

`discordbot.get_guild_preview`

### Get Guild Vanity Url

获取服务器的自定义邀请链接。

`discordbot.get_guild_vanity_url`

### Get Guild Template

按代码获取服务器模板。

`discordbot.get_guild_template`

### List Guild Templates

列出服务器的模板。

`discordbot.list_guild_templates`

### Create Guild Template

为服务器创建模板。

`discordbot.create_guild_template`

### Sync Guild Template

将服务器模板与当前服务器状态同步。

`discordbot.sync_guild_template`

### Delete Guild Template

删除服务器模板。

`discordbot.delete_guild_template`

### Update Guild Template

更新服务器模板。

`discordbot.update_guild_template`

### Get Guild Welcome Screen

获取服务器欢迎屏幕。

`discordbot.get_guild_welcome_screen`

### Update Guild Welcome Screen

更新服务器欢迎屏幕。

`discordbot.update_guild_welcome_screen`

### Get Guild Widget

获取公共服务器小组件 JSON。

`discordbot.get_guild_widget`

### Get Guild Widget Png

获取公共服务器小组件 PNG。

`discordbot.get_guild_widget_png`

### Get Guild Widget Settings

获取服务器小组件设置。

`discordbot.get_guild_widget_settings`

### Update Guild Widget Settings

更新服务器小组件设置。

`discordbot.update_guild_widget_settings`

### List Guild Integrations

列出服务器的集成。

`discordbot.list_guild_integrations`

### Delete Guild Integration

删除服务器的集成。

`discordbot.delete_guild_integration`

### Get Guilds Onboarding

获取服务器入门配置。

`discordbot.get_guilds_onboarding`

### Put Guilds Onboarding

更新服务器入门配置。

`discordbot.put_guilds_onboarding`

### Create Auto Moderation Rule

创建服务器自动审核规则。

`discordbot.create_auto_moderation_rule`

### Delete Auto Moderation Rule

删除自动审核规则。

`discordbot.delete_auto_moderation_rule`

### Get Auto Moderation Rule

获取自动审核规则。

`discordbot.get_auto_moderation_rule`

### List Auto Moderation Rules

列出服务器的自动审核规则。

`discordbot.list_auto_moderation_rules`

### Update Auto Moderation Rule

更新自动审核规则。

`discordbot.update_auto_moderation_rule`

### List Voice Regions

列出公共语音区域。

`discordbot.list_voice_regions`

### List Guild Voice Regions

列出服务器的语音区域。

`discordbot.list_guild_voice_regions`

### Update Self Voice State

更新当前机器人用户的语音状态。

`discordbot.update_self_voice_state`

### Update Voice State

更新其他用户的语音状态。

`discordbot.update_voice_state`

### List Sticker Packs

列出公共贴纸包。

`discordbot.list_sticker_packs`

### Get Sticker

按 ID 获取贴纸。

`discordbot.get_sticker`

### Create Guild Emoji

创建服务器表情符号。

`discordbot.create_guild_emoji`

### Get Guild Emoji

按 ID 获取服务器表情符号。

`discordbot.get_guild_emoji`

### List Guild Emojis

列出服务器的表情符号。

`discordbot.list_guild_emojis`

### Delete Guild Emoji

删除服务器表情符号。

`discordbot.delete_guild_emoji`

### Update Guild Emoji

更新服务器表情符号。

`discordbot.update_guild_emoji`

### Create Guild Sticker

从 base64 文件内容创建服务器贴纸。

`discordbot.create_guild_sticker`

### Get Guild Sticker

按 ID 获取服务器贴纸。

`discordbot.get_guild_sticker`

### List Guild Stickers

列出服务器的贴纸。

`discordbot.list_guild_stickers`

### Delete Guild Sticker

删除服务器贴纸。

`discordbot.delete_guild_sticker`

### Update Guild Sticker

更新服务器贴纸。

`discordbot.update_guild_sticker`

### Create Guild Scheduled Event

创建服务器预定活动。

`discordbot.create_guild_scheduled_event`

### Get Guild Scheduled Event

获取服务器预定活动。

`discordbot.get_guild_scheduled_event`

### List Guild Scheduled Events

列出服务器的预定活动。

`discordbot.list_guild_scheduled_events`

### List Guild Scheduled Event Users

列出服务器预定活动的用户。

`discordbot.list_guild_scheduled_event_users`

### Delete Guild Scheduled Event

删除服务器预定活动。

`discordbot.delete_guild_scheduled_event`

### Update Guild Scheduled Event

更新服务器预定活动。

`discordbot.update_guild_scheduled_event`

### List Guild Channels

列出服务器中的频道。

`discordbot.list_guild_channels`

### Get Guild Member

按服务器 ID 和用户 ID 获取服务器成员。

`discordbot.get_guild_member`

### List Guild Members

列出服务器成员。

`discordbot.list_guild_members`

### Search Guild Members

按查询搜索服务器成员。

`discordbot.search_guild_members`

### List Guild Roles

列出服务器中的角色。

`discordbot.list_guild_roles`

### Add Guild Member Role

向服务器成员添加角色。

`discordbot.add_guild_member_role`

### Delete Guild Member Role

从服务器成员删除角色。

`discordbot.delete_guild_member_role`

### Update Guild Member

更新服务器成员。

`discordbot.update_guild_member`

### Update My Guild Member

更新当前机器人用户的服务器成员资料。

`discordbot.update_my_guild_member`

### Add Guild Member

使用用户访问令牌将用户添加到服务器。

`discordbot.add_guild_member`

### Delete Guild Member

从服务器删除用户。

`discordbot.delete_guild_member`

### Create Guild Role

在服务器中创建角色。

`discordbot.create_guild_role`

### Update Guild Role

更新服务器角色。

`discordbot.update_guild_role`

### Delete Guild Role

删除服务器角色。

`discordbot.delete_guild_role`

### List Application Commands

列出全局应用程序命令。

`discordbot.list_application_commands`

### Get Application Command

获取全局应用程序命令。

`discordbot.get_application_command`

### Create Application Command

创建全局应用程序命令。

`discordbot.create_application_command`

### Update Application Command

更新全局应用程序命令。

`discordbot.update_application_command`

### Delete Application Command

删除全局应用程序命令。

`discordbot.delete_application_command`

### Get Guild Application Command Permissions

获取服务器应用程序命令权限。

`discordbot.get_guild_application_command_permissions`

### List Guild Application Command Permissions

列出服务器应用程序命令权限。

`discordbot.list_guild_application_command_permissions`

### Get Application Role Connections Metadata

获取应用程序角色连接元数据。

`discordbot.get_application_role_connections_metadata`

### Get Application User Role Connection

获取当前用户的应用程序角色连接。

`discordbot.get_application_user_role_connection`

### Update Application User Role Connection

更新当前用户的应用程序角色连接。

`discordbot.update_application_user_role_connection`

### List Guild Application Commands

列出服务器范围的应用程序命令。

`discordbot.list_guild_application_commands`

### Get Guild Application Command

获取服务器范围的应用程序命令。

`discordbot.get_guild_application_command`

### Create Guild Application Command

创建服务器范围的应用程序命令。

`discordbot.create_guild_application_command`

### Update Guild Application Command

更新服务器范围的应用程序命令。

`discordbot.update_guild_application_command`

### Delete Guild Application Command

删除服务器范围的应用程序命令。

`discordbot.delete_guild_application_command`

### List Public Archived Threads

列出频道中的公共归档线程。

`discordbot.list_public_archived_threads`

### List Private Archived Threads

列出频道中的私有归档线程。

`discordbot.list_private_archived_threads`

### List My Private Archived Threads

列出当前机器人用户加入的私有归档线程。

`discordbot.list_my_private_archived_threads`

### Get Active Guild Threads

获取服务器的活跃线程。

`discordbot.get_active_guild_threads`

### Join Thread

以当前机器人用户身份加入线程。

`discordbot.join_thread`

### Leave Thread

以当前机器人用户身份离开线程。

`discordbot.leave_thread`

### Add Thread Member

向线程添加成员。

`discordbot.add_thread_member`

### Delete Thread Member

从线程删除成员。

`discordbot.delete_thread_member`

### List Thread Members

列出线程成员。

`discordbot.list_thread_members`

### Get Thread Member

按用户 ID 获取线程成员。

`discordbot.get_thread_member`

### Pin Message

在频道中固定消息。

`discordbot.pin_message`

### Unpin Message

取消固定频道中的消息。

`discordbot.unpin_message`

### List Pinned Messages

列出频道中固定的消息。

`discordbot.list_pinned_messages`

### List Channel Invites

列出频道的邀请。

`discordbot.list_channel_invites`

### List Guild Invites

列出服务器的邀请。

`discordbot.list_guild_invites`

### Invite Resolve

按代码解析服务器或频道邀请。

`discordbot.invite_resolve`

### Invite Revoke

按代码撤销邀请。

`discordbot.invite_revoke`

### Get Channel

按 ID 获取频道。

`discordbot.get_channel`

### Get Message

按频道 ID 和消息 ID 获取消息。

`discordbot.get_message`

### List Messages

列出频道中的消息。

`discordbot.list_messages`

### Create Message

使用平台机器人令牌创建 Discord 频道消息。

`discordbot.create_message`

### Update Message

更新 Discord 频道中的消息。

`discordbot.update_message`

### Delete Message

删除 Discord 频道中的消息。

`discordbot.delete_message`

### Bulk Delete Messages

批量删除 Discord 频道中的消息。

`discordbot.bulk_delete_messages`

### Add My Message Reaction

以当前机器人用户身份添加反应。

`discordbot.add_my_message_reaction`

### Delete My Message Reaction

删除当前机器人用户对消息的反应。

`discordbot.delete_my_message_reaction`

### List Message Reactions By Emoji

列出对消息使用特定表情符号做出反应的用户。

`discordbot.list_message_reactions_by_emoji`

### Delete User Message Reaction

删除其他用户对消息的反应。

`discordbot.delete_user_message_reaction`

### Delete All Message Reactions

删除消息上的所有反应。

`discordbot.delete_all_message_reactions`

### Delete All Message Reactions By Emoji

删除消息上特定表情符号的所有反应。

`discordbot.delete_all_message_reactions_by_emoji`

### Create Dm

创建或获取与收件人用户的私信频道。

`discordbot.create_dm`

### Add Group Dm User

向群组私信频道添加收件人。

`discordbot.add_group_dm_user`

### Delete Group Dm User

从群组私信频道移除收件人。

`discordbot.delete_group_dm_user`

### Create Channel Invite

为 Discord 频道创建邀请。

`discordbot.create_channel_invite`

### Create Guild Channel

在服务器中创建频道。

`discordbot.create_guild_channel`

### Delete Channel

删除频道。

`discordbot.delete_channel`

### Update Channel

更新现有频道的设置。

`discordbot.update_channel`

### Set Channel Permission Overwrite

创建或更新频道权限覆盖。

`discordbot.set_channel_permission_overwrite`

### Delete Channel Permission Overwrite

删除频道权限覆盖。

`discordbot.delete_channel_permission_overwrite`

### Follow Channel

将公告频道关注到目标频道。

`discordbot.follow_channel`

### Crosspost Message

在公告频道中跨帖发布消息。

`discordbot.crosspost_message`

### Create Thread

在 Discord 频道中创建线程。

`discordbot.create_thread`

### Create Thread From Message

从 Discord 消息创建线程。

`discordbot.create_thread_from_message`

### Trigger Typing Indicator

在频道中触发正在输入指示器。

`discordbot.trigger_typing_indicator`

没有符合搜索条件的工具。

## 将 Discord 机器人 接入 Open Flow

[连接 Discord 机器人](https://console.openflow.run/connections/discordbot)

每月 20,000 次免费应用调用（付费服务另计）
