cordo 2.16.1 → 2.16.3
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.
package/package.json
CHANGED
|
@@ -250,12 +250,15 @@ export namespace CommandInternals {
|
|
|
250
250
|
const apiCmd: any = {
|
|
251
251
|
name,
|
|
252
252
|
name_localizations: nameLocalizations,
|
|
253
|
-
description,
|
|
254
|
-
description_localizations: descriptionLocalizations,
|
|
255
253
|
type: cmdType,
|
|
256
254
|
options: apiOptions.length > 0 ? apiOptions : undefined
|
|
257
255
|
}
|
|
258
256
|
|
|
257
|
+
if (cmdType === ApplicationCommandType.ChatInput) {
|
|
258
|
+
apiCmd.description = description
|
|
259
|
+
apiCmd.description_localizations = descriptionLocalizations
|
|
260
|
+
}
|
|
261
|
+
|
|
259
262
|
if (tree.command) {
|
|
260
263
|
apiCmd.default_member_permissions = tree.command.defaultMemberPermissions?.toString()
|
|
261
264
|
apiCmd.nsfw = tree.command.nsfw
|
package/src/core/files/config.ts
CHANGED
|
@@ -43,7 +43,7 @@ export type CordoConfig = {
|
|
|
43
43
|
/** The app's public key. Only required if you are receiving interactions via HTTP */
|
|
44
44
|
publicKey: string
|
|
45
45
|
/** The bot token. Only required for actions that call Discord proactively like syncing commands, not required for handling interactions. */
|
|
46
|
-
token
|
|
46
|
+
token: string
|
|
47
47
|
}
|
|
48
48
|
/** Upstream describes the Discord API */
|
|
49
49
|
upstream: {
|
|
@@ -124,7 +124,8 @@ export namespace ConfigInternals {
|
|
|
124
124
|
},
|
|
125
125
|
client: {
|
|
126
126
|
id: '',
|
|
127
|
-
publicKey: ''
|
|
127
|
+
publicKey: '',
|
|
128
|
+
token: ''
|
|
128
129
|
},
|
|
129
130
|
hooks: {
|
|
130
131
|
onRawInteraction: null,
|