mirror of
https://github.com/sern-handler/tools
synced 2026-06-26 09:42:24 +00:00
yea
This commit is contained in:
@@ -10,7 +10,6 @@ sidebar:
|
||||
- A common provider of this is `dotenv`
|
||||
```txt title=".env"
|
||||
DISCORD_TOKEN=<YOUR_TOKEN>
|
||||
APPLICATION_ID=<YOUR_APPLICATION_ID>
|
||||
NODE_ENV=<production|development>
|
||||
```
|
||||
- Calls the discord API with the [PUT route](https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-global-application-commands). Wherever your commands directory is located, publish will override the existing application commands at Discord.
|
||||
@@ -27,8 +26,6 @@ await makeDependencies(({ add }) => {
|
||||
});
|
||||
```
|
||||
|
||||
|
||||
|
||||
## Features
|
||||
- Automatically syncs api with your command base
|
||||
- generates JSON file of output (**.sern/command-data-remote.json**)
|
||||
|
||||
@@ -165,9 +165,6 @@ export class Publisher implements Init {
|
||||
}
|
||||
}
|
||||
}
|
||||
this.logger.info({
|
||||
message: "Result of publishing is located at .sern/command-data-remote.json.\n Do not remove this!"
|
||||
});
|
||||
await writeFile(
|
||||
'.sern/command-data-remote.json',
|
||||
JSON.stringify({ global: globalJsonBody,
|
||||
|
||||
Reference in New Issue
Block a user