|
319 | 319 | !!! note "" |
320 | 320 | After starting the Gateway, verify whether the configuration is successful by following these steps: |
321 | 321 |
|
322 | | -- 1. Open the Discord client and enter the server where the bot was added. |
| 322 | + - 1. Open the Discord client and enter the server where the bot was added. |
323 | 323 |
|
324 | | -- 2. In the target channel (e.g., #general), send a message mentioning the bot (e.g., @OpenClaw Bot hello). |
| 324 | + - 2. In the target channel (e.g., #general), send a message mentioning the bot (e.g., @OpenClaw Bot hello). |
325 | 325 |
|
326 | | -- 3. If the bot replies normally, it indicates that the configuration is successful. The test effect is shown in the figure below. |
| 326 | + - 3. If the bot replies normally, it indicates that the configuration is successful. The test effect is shown in the figure below. |
327 | 327 |
|
328 | 328 |  |
329 | 329 |
|
|
341 | 341 |
|
342 | 342 | #### Common Issues and Solutions |
343 | 343 |
|
344 | | -- "Used disallowed intents": Enable "Message Content Intent" (and "Server Members Intent" if needed) in the Discord Developer Portal, then restart the Gateway. |
| 344 | +!!! note "" |
| 345 | + - "Used disallowed intents": Enable "Message Content Intent" (and "Server Members Intent" if needed) in the Discord Developer Portal, then restart the Gateway. |
345 | 346 |
|
346 | | -- Bot connects but does not reply in server channels: Check if the bot has "View Channels", "Send Messages", and "Read Message History" permissions; ensure "Message Content Intent" is enabled; verify if the configuration requires mentioning the bot (requireMention: true) but you did not mention it; check if the server/channel allowlist rejects the current channel/user. |
| 347 | + - Bot connects but does not reply in server channels: Check if the bot has "View Channels", "Send Messages", and "Read Message History" permissions; ensure "Message Content Intent" is enabled; verify if the configuration requires mentioning the bot (requireMention: true) but you did not mention it; check if the server/channel allowlist rejects the current channel/user. |
347 | 348 |
|
348 | | -- Private messages not working: Check if "channels.discord.dm.enabled" is false or "dm.policy" is "disabled"; if "dm.policy" is "pairing", you need to approve the pairing code first (run "openclaw pairing approve discord <code>"). |
| 349 | + - Private messages not working: Check if "channels.discord.dm.enabled" is false or "dm.policy" is "disabled"; if "dm.policy" is "pairing", you need to approve the pairing code first (run "openclaw pairing approve discord <code>"). |
349 | 350 |
|
350 | | -- requireMention: false but no reply: The default "groupPolicy" is "allowlist"; set "channels.discord.groupPolicy" to "open" or add a server entry under "channels.discord.guilds". |
| 351 | + - requireMention: false but no reply: The default "groupPolicy" is "allowlist"; set "channels.discord.groupPolicy" to "open" or add a server entry under "channels.discord.guilds". |
351 | 352 |
|
352 | 353 | # 5. Model Configuration Modification |
353 | 354 |
|
|
0 commit comments