|
6 | 6 |
|
7 | 7 | --- |
8 | 8 |
|
9 | | -1.1.1.1 works from a Discord server, thanks to the 1.1.1.1 bot. [Invite the bot to your Discord server](https://dns-over-discord.v4.wtf/invite) to start using DNS over Discord. |
| 9 | +1.1.1.1 works from a Discord server, thanks to the 1.1.1.1 bot. [Invite the bot to your Discord server](https://dns-over-discord.v4.wtf/invite) to start using DNS over Discord. Or, [add the bot to your Discord account](https://dns-over-discord.v4.wtf/invite/user) to use it anywhere in Discord. |
10 | 10 |
|
11 | 11 | ## Perform DNS lookups |
12 | 12 |
|
@@ -301,8 +301,9 @@ Example: |
301 | 301 |
|
302 | 302 | ### `invite` command |
303 | 303 |
|
304 | | -The `/invite` command provides the user with a quick link to invite the 1.1.1.1 DNS over Discord bot to another Discord server. |
| 304 | +The `/invite` command provides the user with a quick link to invite the 1.1.1.1 DNS over Discord bot to another Discord server, or to add it to a Discord account. |
305 | 305 | The bot can be invited at any time with [https://dns-over-discord.v4.wtf/invite](https://dns-over-discord.v4.wtf/invite). |
| 306 | +The bot can also be added to accounts with [https://dns-over-discord.v4.wtf/invite/user](https://dns-over-discord.v4.wtf/invite/user). |
306 | 307 |
|
307 | 308 | ```txt |
308 | 309 | /invite |
@@ -361,6 +362,16 @@ node |
361 | 362 | 5. Develop with the worker by running `npm run dev`. |
362 | 363 | 6. (Optional) Start an HTTP tunnel to your local development server by running `npm run tunnel`, using [cloudflared](https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/run-tunnel/trycloudflare). |
363 | 364 |
|
| 365 | +### User-installed commands |
| 366 | + |
| 367 | +To test the user-installed commands functionality, you'll need to make sure your Discord application has the User Install option enabled. |
| 368 | + |
| 369 | +You'll then need to make sure that the `TEST_GUILD_ID` in `development.env` is commented out, as user-installed commands need to be registered globally. |
| 370 | + |
| 371 | +After that, start the worker as usual with `npm run dev`, install the application to your Discord user, and test the commands. |
| 372 | + |
| 373 | +If you no longer wish to have the commands registered globally, leave `TEST_GUILD_ID` commented and update `webpack.config.js` to pass an empty array to the `registerCommands` call, then start the worker again to remove the global commands. |
| 374 | + |
364 | 375 | ## Deployments |
365 | 376 |
|
366 | 377 | `wrangler.toml` and this repository is currently designed for a staging deployment and a production deployment. |
|
0 commit comments