@satorijs/adapter-discord 3.8.4 → 3.8.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -131,6 +131,11 @@ export declare namespace ApplicationCommand {
131
131
  CHANNEL = 3
132
132
  }
133
133
  namespace Params {
134
+ /** https://discord.com/developers/docs/interactions/application-commands#get-global-application-commands-query-string-params */
135
+ interface Get {
136
+ /** Whether to include full localization dictionaries (name_localizations and description_localizations) in the returned objects, instead of the name_localized and description_localized fields. Default false. */
137
+ with_localizations: boolean;
138
+ }
134
139
  /** https://discord.com/developers/docs/interactions/application-commands#create-global-application-command-json-params */
135
140
  interface Create {
136
141
  /** 1-32 character name */
@@ -197,7 +202,7 @@ declare module './internal' {
197
202
  * Fetch all of the global commands for your application. Returns an array of application command objects.
198
203
  * @see https://discord.com/developers/docs/interactions/application-commands#get-global-application-commands
199
204
  */
200
- getGlobalApplicationCommands(application_id: snowflake): Promise<ApplicationCommand[]>;
205
+ getGlobalApplicationCommands(application_id: snowflake, param?: ApplicationCommand.Params.Get): Promise<ApplicationCommand[]>;
201
206
  /**
202
207
  * Creating a command with the same name as an existing command for your application will overwrite the old command.
203
208
  * @see https://discord.com/developers/docs/interactions/application-commands#create-global-application-command
@@ -207,7 +212,7 @@ declare module './internal' {
207
212
  * Takes a list of application commands, overwriting the existing global command list for this application. Updates will be available in all guilds after 1 hour. Returns 200 and a list of application command objects. Commands that do not already exist will count toward daily application command create limits.
208
213
  * @see https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-global-application-commands
209
214
  */
210
- bulkOverwriteGlobalApplicationCommands(application_id: snowflake): Promise<ApplicationCommand[]>;
215
+ bulkOverwriteGlobalApplicationCommands(application_id: snowflake, data: ApplicationCommand.Params.Create[]): Promise<ApplicationCommand[]>;
211
216
  /**
212
217
  * Fetch a global command for your application. Returns an application command object.
213
218
  * @see https://discord.com/developers/docs/interactions/application-commands#get-global-application-command
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@satorijs/adapter-discord",
3
3
  "description": "Discord Adapter for Satorijs",
4
- "version": "3.8.4",
4
+ "version": "3.8.6",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [
@@ -29,7 +29,7 @@
29
29
  "satori"
30
30
  ],
31
31
  "peerDependencies": {
32
- "@satorijs/satori": "^2.5.2"
32
+ "@satorijs/satori": "^2.6.1"
33
33
  },
34
34
  "dependencies": {
35
35
  "form-data": "^4.0.0"
package/readme.md ADDED
@@ -0,0 +1,5 @@
1
+ # [@satorijs/adapter-discord](https://koishi.chat/plugins/adapter/discord.html)
2
+
3
+ Discord adapter for [Satori](https://github.com/satorijs/satori).
4
+
5
+ - [Documentation](https://koishi.chat/plugins/adapter/discord.html)