跳到主要内容

🔖 Discord Webhooks

这是什么?

Discord webhooks允许您直接向Discord频道发送通知信息。 所有的webhook信息都被称为 "通知",当发生特定事件时,会适当的向webhooks发送通知。

Alert Privacy

Discord Webhooks will NEVER include private details such as IP Addresses in alerts! Because of this, you should make sure you are setting human-readable names in your RC-Paper configurations.

响应范围

你可以使用响应范围标记设置webhook的响应范围。

下表为可用的响应类型:

类型描述
ProxyThe proxy scope, alerts will be sent no matter what.
FamilyA family scope (the name of the family to target should be provided using the target-family tag.) Alerts will only trigger if they are related to this specific family.

通知

通知仅在正确的响应范围内使用才会触发。

响应类型: 代理端(Proxy)

类型Alert Name触发条件
Serversregister_allWhen the proxy sends a request for all servers to register themselves.
Serversserver_registerWhen a server registers to the proxy.
Serversserver_unregisterWhen a server unregisters from the proxy.
Playersplayer_joinWhen a player successfully connects to the proxy.
Playersplayer_leave玩家离开代理端时触发该事件。
Playersplayer_join_familyWhen a player joins a family.
Playersplayer_leave_familyWhen a player leaves a family.
Playersplayer_switch_serverWhen a player switches from one server in the proxy to another.
Playersplayer_switch_familyWhen a player switches from one family in the proxy to another.
Playersdisconnect_catchWhen a player disconnects or is kicked from a family and the root family catches them before they're kicked from the proxy.

响应类型: Family

类型Alert Name触发条件
Serversregister_allWhen /rc register family is used.
Serversserver_registerWhen a server successfully registers to the family.
Serversserver_unregisterWhen a server successfully unregisters from the family.
Playersplayer_joinWhen a player successfully connects to the family.
Playersplayer_leaveWhen a player leaves the family.
Playersplayer_switchWhen a player switches from one server in the family to another.