nuxt-discord 0.0.17 → 0.2.0
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/README.md +249 -171
- package/dist/module.d.mts +146 -10
- package/dist/module.json +3 -3
- package/dist/module.mjs +1077 -348
- package/dist/runtime/acknowledgement.d.ts +11 -0
- package/dist/runtime/acknowledgement.js +156 -0
- package/dist/runtime/client/chat-theme.css +52 -0
- package/dist/runtime/client/components/ChatAvatar.d.vue.ts +6 -0
- package/dist/runtime/client/components/ChatAvatar.vue +11 -0
- package/dist/runtime/client/components/ChatAvatar.vue.d.ts +6 -0
- package/dist/runtime/client/components/CommandPicker.d.vue.ts +24 -0
- package/dist/runtime/client/components/CommandPicker.vue +67 -0
- package/dist/runtime/client/components/CommandPicker.vue.d.ts +24 -0
- package/dist/runtime/client/components/CommandReference.d.vue.ts +20 -0
- package/dist/runtime/client/components/CommandReference.vue +21 -0
- package/dist/runtime/client/components/CommandReference.vue.d.ts +20 -0
- package/dist/runtime/client/components/CommandTestBar.d.vue.ts +60 -0
- package/dist/runtime/client/components/CommandTestBar.vue +332 -0
- package/dist/runtime/client/components/CommandTestBar.vue.d.ts +60 -0
- package/dist/runtime/client/components/CommandTranscript.d.vue.ts +39 -0
- package/dist/runtime/client/components/CommandTranscript.vue +147 -0
- package/dist/runtime/client/components/CommandTranscript.vue.d.ts +39 -0
- package/dist/runtime/client/components/ProjectLogo.d.vue.ts +3 -0
- package/dist/runtime/client/components/ProjectLogo.vue +31 -0
- package/dist/runtime/client/components/ProjectLogo.vue.d.ts +3 -0
- package/dist/runtime/client/components/ReferenceContent.d.ts +26 -0
- package/dist/runtime/client/components/ReferenceContent.js +73 -0
- package/dist/runtime/client/components/TheHeader.d.vue.ts +3 -0
- package/dist/runtime/client/components/TheHeader.vue +53 -16
- package/dist/runtime/client/components/TheHeader.vue.d.ts +2 -2
- package/dist/runtime/client/components/appearance-select.d.ts +17 -0
- package/dist/runtime/client/components/appearance-select.js +15 -0
- package/dist/runtime/client/pages/activity.d.vue.ts +3 -0
- package/dist/runtime/client/pages/activity.vue +202 -0
- package/dist/runtime/client/pages/activity.vue.d.ts +3 -0
- package/dist/runtime/client/pages/context-menus.d.vue.ts +3 -0
- package/dist/runtime/client/pages/context-menus.vue +120 -0
- package/dist/runtime/client/pages/context-menus.vue.d.ts +3 -0
- package/dist/runtime/client/pages/listeners.d.vue.ts +3 -0
- package/dist/runtime/client/pages/listeners.vue +68 -0
- package/dist/runtime/client/pages/listeners.vue.d.ts +3 -0
- package/dist/runtime/client/pages/overview.d.vue.ts +3 -0
- package/dist/runtime/client/pages/overview.vue +280 -0
- package/dist/runtime/client/pages/overview.vue.d.ts +3 -0
- package/dist/runtime/client/pages/slash-commands.d.vue.ts +3 -0
- package/dist/runtime/client/pages/slash-commands.vue +185 -359
- package/dist/runtime/client/pages/slash-commands.vue.d.ts +2 -3
- package/dist/runtime/client/reference.css +46 -0
- package/dist/runtime/client/style.css +4 -1
- package/dist/runtime/client/useActivityLog.d.ts +7 -0
- package/dist/runtime/client/useActivityLog.js +76 -0
- package/dist/runtime/client/useCommandRegistry.d.ts +7 -0
- package/dist/runtime/client/useCommandRegistry.js +34 -0
- package/dist/runtime/client/useDashboardCatalog.d.ts +5 -0
- package/dist/runtime/client/useDashboardCatalog.js +9 -0
- package/dist/runtime/client/useDiscordCommandReference.d.ts +2 -0
- package/dist/runtime/client/useDiscordCommandReference.js +6 -0
- package/dist/runtime/dashboard/auth.d.ts +4 -0
- package/dist/runtime/dashboard/auth.js +55 -0
- package/dist/runtime/dashboard/oauth.d.ts +17 -0
- package/dist/runtime/dashboard/oauth.js +172 -0
- package/dist/runtime/dashboard/origin.d.ts +3 -0
- package/dist/runtime/dashboard/origin.js +15 -0
- package/dist/runtime/dashboard/permissions.d.ts +4 -0
- package/dist/runtime/dashboard/permissions.js +84 -0
- package/dist/runtime/dashboard/signin.d.ts +3 -0
- package/dist/runtime/dashboard/signin.js +42 -0
- package/dist/runtime/diagnostics.d.ts +4 -0
- package/dist/runtime/diagnostics.js +24 -0
- package/dist/runtime/discordInvocation.d.ts +14 -0
- package/dist/runtime/discordInvocation.js +28 -0
- package/dist/runtime/middleware.d.ts +1 -0
- package/dist/runtime/middleware.js +12 -0
- package/dist/runtime/reference/access.d.ts +6 -0
- package/dist/runtime/reference/access.js +143 -0
- package/dist/runtime/reference/catalog.d.ts +2 -0
- package/dist/runtime/reference/catalog.js +9 -0
- package/dist/runtime/reference/document.d.ts +2 -0
- package/dist/runtime/reference/document.js +22 -0
- package/dist/runtime/reference/hosted.d.ts +2 -0
- package/dist/runtime/reference/hosted.js +16 -0
- package/dist/runtime/reference/oauth.d.ts +2 -0
- package/dist/runtime/reference/oauth.js +4 -0
- package/dist/runtime/registration.d.ts +65 -0
- package/dist/runtime/registration.js +354 -0
- package/dist/runtime/server/api/discord/activity.get.d.ts +2 -0
- package/dist/runtime/server/api/discord/activity.get.js +6 -0
- package/dist/runtime/server/api/discord/catalog.get.d.ts +2 -0
- package/dist/runtime/server/api/discord/catalog.get.js +3 -0
- package/dist/runtime/server/api/discord/slash-command/autocomplete.post.d.ts +2 -0
- package/dist/runtime/server/api/discord/slash-command/autocomplete.post.js +14 -0
- package/dist/runtime/server/api/discord/slash-command/register.post.d.ts +1 -1
- package/dist/runtime/server/api/discord/slash-command/register.post.js +1 -1
- package/dist/runtime/server/api/discord/slash-command/remote-all.get.d.ts +1 -1
- package/dist/runtime/server/api/discord/slash-command/remote-diff.post.d.ts +1 -238
- package/dist/runtime/server/api/discord/slash-command/remote-diff.post.js +3 -1
- package/dist/runtime/server/api/discord/slash-command/test.post.d.ts +20 -0
- package/dist/runtime/server/api/discord/slash-command/test.post.js +19 -0
- package/dist/runtime/server/plugins/discord.js +95 -31
- package/dist/runtime/server/utils/client.d.ts +59 -246
- package/dist/runtime/server/utils/client.js +413 -451
- package/dist/runtime/server/utils/defineContextMenu.d.ts +49 -0
- package/dist/runtime/server/utils/defineContextMenu.js +12 -0
- package/dist/runtime/server/utils/defineListener.d.ts +24 -0
- package/dist/runtime/server/utils/defineListener.js +7 -0
- package/dist/runtime/server/utils/defineMiddleware.d.ts +29 -0
- package/dist/runtime/server/utils/defineMiddleware.js +24 -0
- package/dist/runtime/server/utils/describeCommand.d.ts +2 -0
- package/dist/runtime/server/utils/describeOption.d.ts +1 -1
- package/dist/runtime/server/utils/messageSender.d.ts +37 -0
- package/dist/runtime/server/utils/messageSender.js +149 -0
- package/dist/runtime/server/utils/middleware/cooldown.d.ts +1 -0
- package/dist/runtime/server/utils/middleware/cooldown.js +39 -0
- package/dist/runtime/server/utils/middleware/guildOnly.d.ts +1 -0
- package/dist/runtime/server/utils/middleware/guildOnly.js +6 -0
- package/dist/runtime/server/utils/middleware/ownerOnly.d.ts +1 -0
- package/dist/runtime/server/utils/middleware/ownerOnly.js +10 -0
- package/dist/runtime/server/utils/middleware/requireRole.d.ts +1 -0
- package/dist/runtime/server/utils/middleware/requireRole.js +15 -0
- package/dist/runtime/server/utils/reply.d.ts +13 -3
- package/dist/runtime/server/utils/reply.js +111 -162
- package/dist/runtime/server/utils/simulateInteraction.d.ts +20 -0
- package/dist/runtime/server/utils/simulateInteraction.js +127 -0
- package/dist/runtime/server/utils/useTextChannel.d.ts +56 -0
- package/dist/runtime/server/utils/useTextChannel.js +105 -0
- package/dist/types.d.mts +11 -1
- package/dist/types.d.ts +11 -1
- package/package.json +62 -44
- package/dist/runtime/client/components/TheHeader.css +0 -1
- package/dist/runtime/client/pages/slash-commands.css +0 -1
- package/dist/runtime/client/uno.config.d.ts +0 -2
- package/dist/runtime/client/uno.config.js +0 -10
package/dist/module.d.mts
CHANGED
|
@@ -2,11 +2,18 @@ import * as _nuxt_schema from '@nuxt/schema';
|
|
|
2
2
|
import * as __runtime_logger from '../dist/runtime/logger.js';
|
|
3
3
|
import * as _nuxt_kit from '@nuxt/kit';
|
|
4
4
|
import * as nuxt_schema from 'nuxt/schema';
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
5
|
+
import * as __runtime_acknowledgement from '../dist/runtime/acknowledgement.js';
|
|
6
|
+
import * as __runtime_server_utils_defineMiddleware from '../dist/runtime/server/utils/defineMiddleware.js';
|
|
7
|
+
export { MiddlewareDefinition, MiddlewareError, MiddlewareFn, MiddlewareOpts } from '../dist/runtime/server/utils/defineMiddleware.js';
|
|
8
|
+
import { LocalizationMap, ApplicationCommandOptionType, ClientOptions, CommandInteractionOption, ChatInputCommandInteraction, User, Role, APIRole, GuildMember, APIInteractionDataResolvedGuildMember, Attachment } from 'discord.js';
|
|
8
9
|
import { ListenOptions } from 'listhen';
|
|
9
10
|
import { MaybeRef } from 'vue';
|
|
11
|
+
import { DiscordClient } from '../dist/runtime/server/utils/client.js';
|
|
12
|
+
export { ActivityLogEntry, DiscordClient, DiscordClientError } from '../dist/runtime/server/utils/client.js';
|
|
13
|
+
import { IntegerOption, NumberOption, StringOption, DescribeOptionOptions } from '../dist/runtime/server/utils/describeOption.js';
|
|
14
|
+
export { ContextMenuDefinition } from '../dist/runtime/server/utils/defineContextMenu.js';
|
|
15
|
+
export { ListenerDefinition } from '../dist/runtime/server/utils/defineListener.js';
|
|
16
|
+
export { SendHandle, UseTextChannelReturn } from '../dist/runtime/server/utils/useTextChannel.js';
|
|
10
17
|
|
|
11
18
|
interface NuxtDiscordOptions {
|
|
12
19
|
/**
|
|
@@ -18,8 +25,8 @@ interface NuxtDiscordOptions {
|
|
|
18
25
|
*/
|
|
19
26
|
client: ClientOptions & {
|
|
20
27
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
28
|
+
* Automatically acknowledge a slash command whose reply approaches Discord’s deadline.
|
|
29
|
+
* The default acknowledgement is private. Fast commands reply directly.
|
|
23
30
|
*
|
|
24
31
|
* @default true
|
|
25
32
|
*/
|
|
@@ -38,6 +45,27 @@ interface NuxtDiscordOptions {
|
|
|
38
45
|
* @default true
|
|
39
46
|
*/
|
|
40
47
|
autoStart: boolean;
|
|
48
|
+
/** Build the authenticated dashboard into the production Node server. */
|
|
49
|
+
dashboard?: boolean;
|
|
50
|
+
/** Publish the generated command reference. Disabled by default. */
|
|
51
|
+
reference?: false | DiscordReferenceOptions;
|
|
52
|
+
/**
|
|
53
|
+
* Timeout in milliseconds before an interaction's reactive scope is disposed.
|
|
54
|
+
* This cleans up watchers (reactive replies) and component collectors (buttons).
|
|
55
|
+
* Defaults to Discord's interaction token lifetime (15 minutes).
|
|
56
|
+
* Set to `0` to disable automatic cleanup.
|
|
57
|
+
*/
|
|
58
|
+
interactionTimeout?: number;
|
|
59
|
+
/**
|
|
60
|
+
* Guild IDs to register guild-specific commands to.
|
|
61
|
+
* Commands tagged with `@guild` will be registered to these guilds
|
|
62
|
+
* instead of globally. Useful for development (instant updates)
|
|
63
|
+
* or server-specific commands.
|
|
64
|
+
*
|
|
65
|
+
* Can also be set via the DISCORD_GUILD_ID environment variable
|
|
66
|
+
* (comma-separated for multiple guilds).
|
|
67
|
+
*/
|
|
68
|
+
guilds?: string[];
|
|
41
69
|
/**
|
|
42
70
|
* HMR options
|
|
43
71
|
*/
|
|
@@ -67,16 +95,23 @@ interface DiscordRuntimeConfig {
|
|
|
67
95
|
client: NuxtDiscordOptions['client'];
|
|
68
96
|
autoStart: boolean;
|
|
69
97
|
sync: NuxtDiscordOptions['watch']['sync'];
|
|
98
|
+
guilds: string[];
|
|
70
99
|
dir: string;
|
|
71
100
|
buildDir: string;
|
|
72
101
|
rootDir: string;
|
|
102
|
+
interactionTimeout?: number;
|
|
73
103
|
}
|
|
74
|
-
declare const slashCommandOptionTypeIdentifiers: readonly ["number", "integer", "string", "boolean"];
|
|
104
|
+
declare const slashCommandOptionTypeIdentifiers: readonly ["number", "integer", "string", "boolean", "User", "Channel", "Role", "Mentionable", "Attachment"];
|
|
75
105
|
declare const typeIdentifierToEnum: {
|
|
76
106
|
readonly number: ApplicationCommandOptionType.Number;
|
|
77
107
|
readonly integer: ApplicationCommandOptionType.Integer;
|
|
78
108
|
readonly string: ApplicationCommandOptionType.String;
|
|
79
109
|
readonly boolean: ApplicationCommandOptionType.Boolean;
|
|
110
|
+
readonly User: ApplicationCommandOptionType.User;
|
|
111
|
+
readonly Channel: ApplicationCommandOptionType.Channel;
|
|
112
|
+
readonly Role: ApplicationCommandOptionType.Role;
|
|
113
|
+
readonly Mentionable: ApplicationCommandOptionType.Mentionable;
|
|
114
|
+
readonly Attachment: ApplicationCommandOptionType.Attachment;
|
|
80
115
|
};
|
|
81
116
|
type SlashCommandOptionTypeIdentifier = (typeof slashCommandOptionTypeIdentifiers)[number];
|
|
82
117
|
declare const integerLabel: unique symbol;
|
|
@@ -87,13 +122,17 @@ declare const integerLabel: unique symbol;
|
|
|
87
122
|
type integer = number & {
|
|
88
123
|
[integerLabel]: never;
|
|
89
124
|
};
|
|
90
|
-
|
|
125
|
+
/** A Discord mentionable option resolves to a user, guild member, or role. */
|
|
126
|
+
type Mentionable = NonNullable<CommandInteractionOption['user' | 'member' | 'role']>;
|
|
127
|
+
type SlashCommandOptionType = number | integer | string | boolean | User | Role | APIRole | GuildMember | APIInteractionDataResolvedGuildMember | Attachment | NonNullable<CommandInteractionOption['channel']>;
|
|
91
128
|
interface SlashCommandOptionBase {
|
|
92
129
|
name: string;
|
|
93
130
|
description: string;
|
|
94
131
|
type: ApplicationCommandOptionType;
|
|
95
132
|
required: boolean;
|
|
96
133
|
hasAutocomplete: boolean;
|
|
134
|
+
nameLocalizations?: LocalizationMap;
|
|
135
|
+
descriptionLocalizations?: LocalizationMap;
|
|
97
136
|
}
|
|
98
137
|
interface SlashCommandIntegerOption extends SlashCommandOptionBase, Omit<IntegerOption, 'name' | 'description'> {
|
|
99
138
|
type: ApplicationCommandOptionType.Integer;
|
|
@@ -107,12 +146,44 @@ interface SlashCommandStringOption extends SlashCommandOptionBase, Omit<StringOp
|
|
|
107
146
|
interface SlashCommandBooleanOption extends SlashCommandOptionBase {
|
|
108
147
|
type: ApplicationCommandOptionType.Boolean;
|
|
109
148
|
}
|
|
110
|
-
|
|
149
|
+
interface SlashCommandUserOption extends SlashCommandOptionBase {
|
|
150
|
+
type: ApplicationCommandOptionType.User;
|
|
151
|
+
}
|
|
152
|
+
interface SlashCommandChannelOption extends SlashCommandOptionBase {
|
|
153
|
+
type: ApplicationCommandOptionType.Channel;
|
|
154
|
+
}
|
|
155
|
+
interface SlashCommandRoleOption extends SlashCommandOptionBase {
|
|
156
|
+
type: ApplicationCommandOptionType.Role;
|
|
157
|
+
}
|
|
158
|
+
interface SlashCommandMentionableOption extends SlashCommandOptionBase {
|
|
159
|
+
type: ApplicationCommandOptionType.Mentionable;
|
|
160
|
+
}
|
|
161
|
+
interface SlashCommandAttachmentOption extends SlashCommandOptionBase {
|
|
162
|
+
type: ApplicationCommandOptionType.Attachment;
|
|
163
|
+
}
|
|
164
|
+
type SlashCommandOption = SlashCommandIntegerOption | SlashCommandNumberOption | SlashCommandStringOption | SlashCommandBooleanOption | SlashCommandUserOption | SlashCommandChannelOption | SlashCommandRoleOption | SlashCommandMentionableOption | SlashCommandAttachmentOption;
|
|
111
165
|
type SlashCommandCustomReturnHandler = (this: DiscordClient, interaction: ChatInputCommandInteraction, client: DiscordClient) => unknown;
|
|
112
166
|
type SlashCommandReturnType = void | MaybeRef<string> | SlashCommandCustomReturnHandler | Promise<SlashCommandReturnType> | Generator<SlashCommandReturnType> | AsyncGenerator<SlashCommandReturnType>;
|
|
167
|
+
interface MiddlewareEntry {
|
|
168
|
+
name: string;
|
|
169
|
+
fn: __runtime_server_utils_defineMiddleware.MiddlewareFn;
|
|
170
|
+
options?: Record<string, unknown>;
|
|
171
|
+
}
|
|
113
172
|
interface SlashCommand {
|
|
114
173
|
name: string;
|
|
115
174
|
description: string;
|
|
175
|
+
defer?: __runtime_acknowledgement.DeferPolicy;
|
|
176
|
+
nsfw?: boolean;
|
|
177
|
+
/** Middleware names from @middleware JSDoc tags */
|
|
178
|
+
middleware?: string[];
|
|
179
|
+
hasRuntimeMiddleware?: boolean;
|
|
180
|
+
/** Interaction contexts where this command is available (Guild=0, BotDM=1, PrivateChannel=2) */
|
|
181
|
+
contexts?: number[];
|
|
182
|
+
defaultMemberPermissions?: string | null;
|
|
183
|
+
/** Register to specific guilds instead of globally. `true` = all configured guilds, `string[]` = specific guild IDs */
|
|
184
|
+
guilds?: true | string[];
|
|
185
|
+
nameLocalizations?: LocalizationMap;
|
|
186
|
+
descriptionLocalizations?: LocalizationMap;
|
|
116
187
|
path: string;
|
|
117
188
|
options: (SlashCommandOption & {
|
|
118
189
|
varname: string;
|
|
@@ -130,10 +201,11 @@ interface SlashCommandSubcommand extends Omit<SlashCommand, 'subcommands' | 'par
|
|
|
130
201
|
}
|
|
131
202
|
interface SlashCommandRuntime extends Omit<SlashCommand, 'subcommands'> {
|
|
132
203
|
/** if execute is not defined load must be defined */
|
|
133
|
-
load?: () => Promise<Pick<SlashCommandRuntime, 'execute' | 'optionMacros'>>;
|
|
204
|
+
load?: () => Promise<Pick<SlashCommandRuntime, 'execute' | 'optionMacros' | 'middlewareEntries'>>;
|
|
134
205
|
execute?: (...args: (SlashCommandOptionType | undefined)[]) => SlashCommandReturnType;
|
|
135
206
|
id?: string;
|
|
136
207
|
optionMacros?: Record<string, DescribeOptionOptions>;
|
|
208
|
+
middlewareEntries?: MiddlewareEntry[];
|
|
137
209
|
subcommands?: (SlashCommandSubcommandRuntime | SlashCommandSubcommandGroupRuntime)[];
|
|
138
210
|
}
|
|
139
211
|
interface SlashCommandSubcommandGroupRuntime extends Omit<SlashCommandRuntime, 'subcommands' | 'parents'> {
|
|
@@ -144,10 +216,74 @@ interface SlashCommandSubcommandRuntime extends Omit<SlashCommandRuntime, 'subco
|
|
|
144
216
|
parents: [string] | [string, string];
|
|
145
217
|
subcommands?: [];
|
|
146
218
|
}
|
|
219
|
+
interface Listener {
|
|
220
|
+
/** File path */
|
|
221
|
+
path: string;
|
|
222
|
+
/** Discord event name (e.g. 'guildMemberAdd') */
|
|
223
|
+
event: string;
|
|
224
|
+
/** Whether this listener fires only once */
|
|
225
|
+
once?: boolean;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
interface ContextMenu {
|
|
229
|
+
/** Display name for the context menu */
|
|
230
|
+
name: string;
|
|
231
|
+
/** 'user' or 'message' */
|
|
232
|
+
type: 'user' | 'message';
|
|
233
|
+
/** File path */
|
|
234
|
+
path: string;
|
|
235
|
+
/** Register to specific guilds */
|
|
236
|
+
guilds?: true | string[];
|
|
237
|
+
/** Middleware names from @middleware JSDoc tags */
|
|
238
|
+
middleware?: string[];
|
|
239
|
+
hasRuntimeMiddleware?: boolean;
|
|
240
|
+
nameLocalizations?: LocalizationMap;
|
|
241
|
+
}
|
|
242
|
+
type DiscordReferenceOptions = {
|
|
243
|
+
page?: boolean;
|
|
244
|
+
} & ({
|
|
245
|
+
access: 'public' | 'private' | 'authenticated';
|
|
246
|
+
} | {
|
|
247
|
+
access: 'members';
|
|
248
|
+
guilds?: string[];
|
|
249
|
+
});
|
|
250
|
+
interface DiscordReferenceOption {
|
|
251
|
+
name: string;
|
|
252
|
+
description: string;
|
|
253
|
+
type: 'string' | 'integer' | 'number' | 'boolean' | 'user' | 'channel' | 'role' | 'mentionable' | 'attachment';
|
|
254
|
+
required: boolean;
|
|
255
|
+
hasAutocomplete: boolean;
|
|
256
|
+
choices?: {
|
|
257
|
+
name: string;
|
|
258
|
+
value: string | number;
|
|
259
|
+
}[];
|
|
260
|
+
min?: number;
|
|
261
|
+
max?: number;
|
|
262
|
+
minLength?: number;
|
|
263
|
+
maxLength?: number;
|
|
264
|
+
}
|
|
265
|
+
interface DiscordCommandReference {
|
|
266
|
+
commands: {
|
|
267
|
+
name: string;
|
|
268
|
+
description: string;
|
|
269
|
+
options: DiscordReferenceOption[];
|
|
270
|
+
}[];
|
|
271
|
+
menus: {
|
|
272
|
+
name: string;
|
|
273
|
+
type: 'user' | 'message';
|
|
274
|
+
}[];
|
|
275
|
+
}
|
|
276
|
+
interface DashboardCatalog {
|
|
277
|
+
commands: SlashCommand[];
|
|
278
|
+
menus: ContextMenu[];
|
|
279
|
+
listeners: Listener[];
|
|
280
|
+
}
|
|
147
281
|
interface NuxtDiscordContext {
|
|
148
282
|
nuxt: nuxt_schema.Nuxt;
|
|
149
283
|
options: NuxtDiscordOptions;
|
|
150
284
|
slashCommands: SlashCommand[];
|
|
285
|
+
contextMenus: ContextMenu[];
|
|
286
|
+
listeners: Listener[];
|
|
151
287
|
resolve: {
|
|
152
288
|
root: _nuxt_kit.Resolver['resolve'];
|
|
153
289
|
module: _nuxt_kit.Resolver['resolve'];
|
|
@@ -158,4 +294,4 @@ interface NuxtDiscordContext {
|
|
|
158
294
|
declare const _default: _nuxt_schema.NuxtModule<NuxtDiscordOptions, NuxtDiscordOptions, false>;
|
|
159
295
|
|
|
160
296
|
export { _default as default, slashCommandOptionTypeIdentifiers, typeIdentifierToEnum };
|
|
161
|
-
export type { DiscordRuntimeConfig, NuxtDiscordContext, NuxtDiscordOptions, SlashCommand, SlashCommandBooleanOption, SlashCommandCustomReturnHandler, SlashCommandIntegerOption, SlashCommandNumberOption, SlashCommandOption, SlashCommandOptionBase, SlashCommandOptionType, SlashCommandOptionTypeIdentifier, SlashCommandReturnType, SlashCommandRuntime, SlashCommandStringOption, SlashCommandSubcommand, SlashCommandSubcommandGroup, SlashCommandSubcommandGroupRuntime, SlashCommandSubcommandRuntime, integer };
|
|
297
|
+
export type { ContextMenu, DashboardCatalog, DiscordCommandReference, DiscordReferenceOption, DiscordReferenceOptions, DiscordRuntimeConfig, Listener, Mentionable, MiddlewareEntry, NuxtDiscordContext, NuxtDiscordOptions, SlashCommand, SlashCommandAttachmentOption, SlashCommandBooleanOption, SlashCommandChannelOption, SlashCommandCustomReturnHandler, SlashCommandIntegerOption, SlashCommandMentionableOption, SlashCommandNumberOption, SlashCommandOption, SlashCommandOptionBase, SlashCommandOptionType, SlashCommandOptionTypeIdentifier, SlashCommandReturnType, SlashCommandRoleOption, SlashCommandRuntime, SlashCommandStringOption, SlashCommandSubcommand, SlashCommandSubcommandGroup, SlashCommandSubcommandGroupRuntime, SlashCommandSubcommandRuntime, SlashCommandUserOption, integer };
|
package/dist/module.json
CHANGED