seyfert 1.1.0 → 1.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/lib/api/Routes/applications.d.ts +2 -2
- package/lib/api/Routes/channels.d.ts +2 -2
- package/lib/api/Routes/gateway.d.ts +2 -2
- package/lib/api/Routes/guilds.d.ts +2 -1
- package/lib/api/Routes/interactions.d.ts +2 -2
- package/lib/api/Routes/invites.d.ts +2 -2
- package/lib/api/Routes/stage-instances.d.ts +2 -2
- package/lib/api/Routes/stickers.d.ts +2 -2
- package/lib/api/Routes/users.d.ts +2 -2
- package/lib/api/Routes/voice.d.ts +2 -2
- package/lib/api/Routes/webhooks.d.ts +2 -2
- package/lib/builders/ActionRow.d.ts +2 -1
- package/lib/builders/ActionRow.js +3 -3
- package/lib/builders/Base.d.ts +1 -1
- package/lib/builders/Button.d.ts +2 -1
- package/lib/builders/Button.js +2 -2
- package/lib/builders/Embed.d.ts +2 -1
- package/lib/builders/Modal.d.ts +9 -2
- package/lib/builders/Modal.js +12 -3
- package/lib/builders/SelectMenu.d.ts +18 -1
- package/lib/builders/SelectMenu.js +36 -12
- package/lib/builders/index.d.ts +1 -1
- package/lib/builders/index.js +9 -9
- package/lib/builders/types.d.ts +1 -1
- package/lib/cache/adapters/types.d.ts +23 -23
- package/lib/cache/index.d.ts +5 -5
- package/lib/cache/index.js +3 -3
- package/lib/cache/resources/default/base.d.ts +10 -10
- package/lib/cache/resources/default/guild-based.d.ts +7 -7
- package/lib/cache/resources/default/guild-based.js +2 -1
- package/lib/cache/resources/default/guild-related.d.ts +9 -9
- package/lib/cache/resources/default/guild-related.js +2 -1
- package/lib/cache/resources/presence.d.ts +1 -1
- package/lib/cache/resources/stage-instances.d.ts +1 -1
- package/lib/cache/resources/voice-states.d.ts +1 -1
- package/lib/client/base.d.ts +19 -12
- package/lib/client/base.js +45 -7
- package/lib/client/client.d.ts +7 -4
- package/lib/client/client.js +21 -9
- package/lib/client/httpclient.d.ts +2 -1
- package/lib/client/httpclient.js +3 -3
- package/lib/client/oninteractioncreate.js +18 -19
- package/lib/client/onmessagecreate.js +6 -4
- package/lib/client/workerclient.d.ts +11 -5
- package/lib/client/workerclient.js +18 -11
- package/lib/commands/applications/chat.d.ts +4 -4
- package/lib/commands/applications/chat.js +17 -9
- package/lib/commands/applications/chatcontext.d.ts +7 -10
- package/lib/commands/applications/chatcontext.js +6 -17
- package/lib/commands/applications/menu.d.ts +2 -1
- package/lib/commands/applications/menu.js +7 -5
- package/lib/commands/applications/menucontext.d.ts +5 -9
- package/lib/commands/applications/menucontext.js +8 -21
- package/lib/commands/applications/shared.d.ts +5 -4
- package/lib/commands/basecontex.d.ts +15 -0
- package/lib/commands/basecontex.js +34 -0
- package/lib/commands/decorators.d.ts +3 -2
- package/lib/commands/decorators.js +5 -5
- package/lib/commands/handler.d.ts +6 -0
- package/lib/commands/handler.js +10 -4
- package/lib/commands/optionresolver.d.ts +3 -3
- package/lib/commands/optionresolver.js +14 -14
- package/lib/common/index.d.ts +0 -1
- package/lib/common/index.js +0 -1
- package/lib/common/it/constants.d.ts +3 -1
- package/lib/common/it/constants.js +2 -0
- package/lib/common/it/utils.d.ts +1 -0
- package/lib/common/it/utils.js +2 -1
- package/lib/common/shorters/channels.d.ts +1 -1
- package/lib/common/shorters/channels.js +4 -4
- package/lib/common/shorters/guilds.d.ts +1 -1
- package/lib/common/shorters/guilds.js +6 -1
- package/lib/common/shorters/members.d.ts +6 -1
- package/lib/common/shorters/members.js +25 -2
- package/lib/common/shorters/messages.d.ts +1 -1
- package/lib/common/shorters/messages.js +1 -1
- package/lib/common/shorters/users.d.ts +0 -6
- package/lib/common/shorters/users.js +0 -34
- package/lib/common/shorters/webhook.d.ts +2 -2
- package/lib/common/types/resolvables.d.ts +2 -1
- package/lib/common/types/util.d.ts +4 -1
- package/lib/common/types/write.d.ts +1 -1
- package/lib/components/ActionRow.d.ts +4 -3
- package/lib/components/ActionRow.js +6 -3
- package/lib/components/BaseComponent.d.ts +18 -0
- package/lib/components/BaseComponent.js +21 -0
- package/lib/components/BaseSelectMenuComponent.d.ts +10 -0
- package/lib/components/BaseSelectMenuComponent.js +22 -0
- package/lib/components/ButtonComponent.d.ts +14 -14
- package/lib/components/ButtonComponent.js +36 -25
- package/lib/components/ChannelSelectMenuComponent.d.ts +4 -4
- package/lib/components/ChannelSelectMenuComponent.js +6 -5
- package/lib/components/MentionableSelectMenuComponent.d.ts +3 -2
- package/lib/components/MentionableSelectMenuComponent.js +4 -1
- package/lib/components/RoleSelectMenuComponent.d.ts +3 -2
- package/lib/components/RoleSelectMenuComponent.js +4 -1
- package/lib/components/StringSelectMenuComponent.d.ts +3 -4
- package/lib/components/StringSelectMenuComponent.js +3 -5
- package/lib/components/TextInputComponent.d.ts +10 -5
- package/lib/components/TextInputComponent.js +24 -7
- package/lib/components/UserSelectMenuComponent.d.ts +3 -2
- package/lib/components/UserSelectMenuComponent.js +4 -1
- package/lib/components/command.d.ts +6 -5
- package/lib/components/command.js +4 -0
- package/lib/components/componentcontext.d.ts +42 -0
- package/lib/components/componentcontext.js +79 -0
- package/lib/components/handler.d.ts +22 -6
- package/lib/components/handler.js +19 -12
- package/lib/components/index.d.ts +2 -2
- package/lib/components/index.js +9 -9
- package/lib/events/handler.d.ts +12 -3
- package/lib/events/handler.js +6 -8
- package/lib/events/hooks/application_command.d.ts +2 -2
- package/lib/events/hooks/auto_moderation.d.ts +4 -4
- package/lib/events/hooks/channel.d.ts +1 -1
- package/lib/events/hooks/dispatch.d.ts +1 -1
- package/lib/events/hooks/entitlement.d.ts +4 -4
- package/lib/events/hooks/guild.d.ts +42 -42
- package/lib/events/hooks/integration.d.ts +19 -19
- package/lib/events/hooks/interactions.d.ts +2 -2
- package/lib/events/hooks/invite.d.ts +5 -5
- package/lib/events/hooks/message.d.ts +6 -5
- package/lib/events/hooks/presence.d.ts +7 -7
- package/lib/events/hooks/stage.d.ts +4 -4
- package/lib/events/hooks/thread.d.ts +49 -49
- package/lib/events/hooks/typing.d.ts +2 -2
- package/lib/events/hooks/user.d.ts +1 -1
- package/lib/events/hooks/voice.d.ts +2 -2
- package/lib/events/hooks/webhook.d.ts +1 -1
- package/lib/index.d.ts +3 -6
- package/lib/index.js +6 -7
- package/lib/langs/handler.d.ts +10 -1
- package/lib/langs/handler.js +1 -0
- package/lib/structures/AutoModerationRule.d.ts +3 -2
- package/lib/structures/ClientUser.d.ts +1 -1
- package/lib/structures/Guild.d.ts +27 -27
- package/lib/structures/GuildEmoji.d.ts +2 -1
- package/lib/structures/GuildMember.d.ts +16 -6
- package/lib/structures/GuildMember.js +35 -6
- package/lib/structures/GuildPreview.d.ts +1 -1
- package/lib/structures/GuildRole.d.ts +2 -1
- package/lib/structures/GuildTemplate.d.ts +3 -2
- package/lib/structures/Interaction.d.ts +5 -5
- package/lib/structures/Interaction.js +34 -34
- package/lib/structures/Message.d.ts +6 -5
- package/lib/structures/Sticker.d.ts +2 -1
- package/lib/structures/User.d.ts +7 -3
- package/lib/structures/User.js +5 -0
- package/lib/structures/Webhook.d.ts +63 -4
- package/lib/structures/Webhook.js +53 -0
- package/lib/structures/channels.d.ts +4 -4
- package/lib/structures/extra/BaseGuild.d.ts +2 -1
- package/lib/structures/extra/BaseGuild.js +3 -3
- package/lib/structures/extra/BitField.d.ts +2 -2
- package/lib/structures/extra/BitField.js +2 -2
- package/lib/structures/extra/Permissions.d.ts +1 -1
- package/lib/structures/extra/functions.d.ts +2 -1
- package/lib/structures/extra/functions.js +2 -1
- package/lib/types/index.d.ts +1 -0
- package/lib/types/index.js +17 -0
- package/lib/websocket/SharedTypes.d.ts +2 -1
- package/lib/websocket/SharedTypes.js +1 -0
- package/lib/websocket/discord/shard.d.ts +2 -1
- package/lib/websocket/discord/shard.js +30 -41
- package/lib/websocket/discord/sharder.d.ts +3 -2
- package/lib/websocket/discord/sharder.js +7 -6
- package/lib/websocket/discord/shared.d.ts +2 -1
- package/lib/websocket/discord/worker.d.ts +1 -1
- package/lib/websocket/discord/workermanager.d.ts +3 -2
- package/lib/websocket/discord/workermanager.js +1 -1
- package/package.json +2 -2
package/lib/components/index.js
CHANGED
|
@@ -15,8 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.componentFactory = void 0;
|
|
18
|
-
const
|
|
19
|
-
const BaseComponent_1 = require("
|
|
18
|
+
const v10_1 = require("discord-api-types/v10");
|
|
19
|
+
const BaseComponent_1 = require("./BaseComponent");
|
|
20
20
|
const ButtonComponent_1 = require("./ButtonComponent");
|
|
21
21
|
const ChannelSelectMenuComponent_1 = require("./ChannelSelectMenuComponent");
|
|
22
22
|
const MentionableSelectMenuComponent_1 = require("./MentionableSelectMenuComponent");
|
|
@@ -32,20 +32,20 @@ __exportStar(require("./command"), exports);
|
|
|
32
32
|
*/
|
|
33
33
|
function componentFactory(component) {
|
|
34
34
|
switch (component.type) {
|
|
35
|
-
case
|
|
36
|
-
if (component.style ===
|
|
35
|
+
case v10_1.ComponentType.Button:
|
|
36
|
+
if (component.style === v10_1.ButtonStyle.Link) {
|
|
37
37
|
return new ButtonComponent_1.LinkButtonComponent(component);
|
|
38
38
|
}
|
|
39
39
|
return new ButtonComponent_1.ButtonComponent(component);
|
|
40
|
-
case
|
|
40
|
+
case v10_1.ComponentType.ChannelSelect:
|
|
41
41
|
return new ChannelSelectMenuComponent_1.ChannelSelectMenuComponent(component);
|
|
42
|
-
case
|
|
42
|
+
case v10_1.ComponentType.RoleSelect:
|
|
43
43
|
return new RoleSelectMenuComponent_1.RoleSelectMenuComponent(component);
|
|
44
|
-
case
|
|
44
|
+
case v10_1.ComponentType.StringSelect:
|
|
45
45
|
return new StringSelectMenuComponent_1.StringSelectMenuComponent(component);
|
|
46
|
-
case
|
|
46
|
+
case v10_1.ComponentType.UserSelect:
|
|
47
47
|
return new UserSelectMenuComponent_1.UserSelectMenuComponent(component);
|
|
48
|
-
case
|
|
48
|
+
case v10_1.ComponentType.MentionableSelect:
|
|
49
49
|
return new MentionableSelectMenuComponent_1.MentionableSelectMenuComponent(component);
|
|
50
50
|
default:
|
|
51
51
|
return new BaseComponent_1.BaseComponent(component);
|
package/lib/events/handler.d.ts
CHANGED
|
@@ -1,16 +1,25 @@
|
|
|
1
|
+
import type { GatewayDispatchPayload } from 'discord-api-types/v10';
|
|
1
2
|
import type { Client, WorkerClient } from '../client';
|
|
2
|
-
import { BaseHandler, type
|
|
3
|
+
import { BaseHandler, type MakeRequired, type OnFailCallback, type SnakeCase } from '../common';
|
|
3
4
|
import type { ClientEvents } from '../events/hooks';
|
|
4
5
|
import type { ClientEvent, ClientNameEvents } from './event';
|
|
5
6
|
type EventValue = MakeRequired<ClientEvent, '__filePath'> & {
|
|
6
7
|
fired?: boolean;
|
|
7
8
|
};
|
|
8
9
|
type GatewayEvents = Uppercase<SnakeCase<keyof ClientEvents>>;
|
|
10
|
+
export interface EventHandlerLike {
|
|
11
|
+
runEvent: EventHandler['runEvent'];
|
|
12
|
+
execute: EventHandler['execute'];
|
|
13
|
+
load: EventHandler['load'];
|
|
14
|
+
reload: EventHandler['reload'];
|
|
15
|
+
reloadAll: EventHandler['reloadAll'];
|
|
16
|
+
values: EventHandler['values'];
|
|
17
|
+
onFail: EventHandler['onFail'];
|
|
18
|
+
}
|
|
9
19
|
export declare class EventHandler extends BaseHandler {
|
|
10
|
-
|
|
20
|
+
onFail: OnFailCallback;
|
|
11
21
|
protected filter: (path: string) => boolean;
|
|
12
22
|
values: Partial<Record<GatewayEvents, EventValue>>;
|
|
13
|
-
set OnFail(cb: OnFailCallback);
|
|
14
23
|
load(eventsDir: string): Promise<void>;
|
|
15
24
|
execute(name: GatewayEvents, ...args: [GatewayDispatchPayload, Client<true> | WorkerClient<true>, number]): Promise<void>;
|
|
16
25
|
runEvent(name: GatewayEvents, client: Client | WorkerClient, packet: any, shardId: number): Promise<void>;
|
package/lib/events/handler.js
CHANGED
|
@@ -27,12 +27,9 @@ exports.EventHandler = void 0;
|
|
|
27
27
|
const common_1 = require("../common");
|
|
28
28
|
const RawEvents = __importStar(require("../events/hooks"));
|
|
29
29
|
class EventHandler extends common_1.BaseHandler {
|
|
30
|
-
onFail = err => this.logger.warn('<Client>.events.
|
|
30
|
+
onFail = err => this.logger.warn('<Client>.events.onFail', err);
|
|
31
31
|
filter = (path) => path.endsWith('.js') || (!path.endsWith('.d.ts') && path.endsWith('.ts'));
|
|
32
32
|
values = {};
|
|
33
|
-
set OnFail(cb) {
|
|
34
|
-
this.onFail = cb;
|
|
35
|
-
}
|
|
36
33
|
async load(eventsDir) {
|
|
37
34
|
for (const i of await this.loadFilesK(await this.getFiles(eventsDir))) {
|
|
38
35
|
const instance = i.file;
|
|
@@ -42,6 +39,7 @@ class EventHandler extends common_1.BaseHandler {
|
|
|
42
39
|
}
|
|
43
40
|
instance.__filePath = i.path;
|
|
44
41
|
this.values[common_1.ReplaceRegex.snake(instance.data.name).toUpperCase()] = instance;
|
|
42
|
+
await this.__callback?.(instance);
|
|
45
43
|
}
|
|
46
44
|
}
|
|
47
45
|
async execute(name, ...args) {
|
|
@@ -54,7 +52,7 @@ class EventHandler extends common_1.BaseHandler {
|
|
|
54
52
|
case 'MESSAGE_CREATE':
|
|
55
53
|
{
|
|
56
54
|
const { d: data } = args[0];
|
|
57
|
-
if (args[1].components
|
|
55
|
+
if (args[1].components?.values.has(data.interaction?.id ?? data.id)) {
|
|
58
56
|
args[1].components.values.get(data.interaction?.id ?? data.id).messageId = data.id;
|
|
59
57
|
}
|
|
60
58
|
}
|
|
@@ -62,7 +60,7 @@ class EventHandler extends common_1.BaseHandler {
|
|
|
62
60
|
case 'MESSAGE_DELETE':
|
|
63
61
|
{
|
|
64
62
|
const { d: data } = args[0];
|
|
65
|
-
const value = [...args[1].components
|
|
63
|
+
const value = [...(args[1].components?.values ?? [])].find(x => x[1].messageId === data.id);
|
|
66
64
|
if (value) {
|
|
67
65
|
args[1].components.onMessageDelete(value[0]);
|
|
68
66
|
}
|
|
@@ -71,7 +69,7 @@ class EventHandler extends common_1.BaseHandler {
|
|
|
71
69
|
case 'MESSAGE_DELETE_BULK':
|
|
72
70
|
{
|
|
73
71
|
const { d: data } = args[0];
|
|
74
|
-
const values = [...args[1].components
|
|
72
|
+
const values = [...(args[1].components?.values ?? [])];
|
|
75
73
|
data.ids.forEach(id => {
|
|
76
74
|
const value = values.find(x => x[1].messageId === id);
|
|
77
75
|
if (value) {
|
|
@@ -97,7 +95,7 @@ class EventHandler extends common_1.BaseHandler {
|
|
|
97
95
|
await Event.run(...[hook, client, shardId]);
|
|
98
96
|
}
|
|
99
97
|
catch (e) {
|
|
100
|
-
await this.onFail
|
|
98
|
+
await this.onFail(e);
|
|
101
99
|
}
|
|
102
100
|
}
|
|
103
101
|
async reload(name) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import type { GatewayApplicationCommandPermissionsUpdateDispatchData } from 'discord-api-types/v10';
|
|
1
2
|
import type { BaseClient } from '../../client/base';
|
|
2
|
-
import type { GatewayApplicationCommandPermissionsUpdateDispatchData } from '../../common';
|
|
3
3
|
export declare const APPLICATION_COMMAND_PERMISSIONS_UPDATE: (_self: BaseClient, data: GatewayApplicationCommandPermissionsUpdateDispatchData) => {
|
|
4
4
|
id: string;
|
|
5
5
|
applicationId: string;
|
|
6
6
|
guildId: string;
|
|
7
7
|
permissions: {
|
|
8
8
|
id: string;
|
|
9
|
-
type: import("discord-api-types/
|
|
9
|
+
type: import("discord-api-types/v10").ApplicationCommandPermissionType;
|
|
10
10
|
permission: boolean;
|
|
11
11
|
}[];
|
|
12
12
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
import type { GatewayAutoModerationActionExecutionDispatchData, GatewayAutoModerationRuleCreateDispatchData, GatewayAutoModerationRuleDeleteDispatchData, GatewayAutoModerationRuleUpdateDispatchData } from 'discord-api-types/v10';
|
|
1
2
|
import type { BaseClient } from '../../client/base';
|
|
2
|
-
import { type GatewayAutoModerationActionExecutionDispatchData, type GatewayAutoModerationRuleCreateDispatchData, type GatewayAutoModerationRuleDeleteDispatchData, type GatewayAutoModerationRuleUpdateDispatchData } from '../../common';
|
|
3
3
|
import { AutoModerationRule } from '../../structures';
|
|
4
4
|
export declare const AUTO_MODERATION_ACTION_EXECUTION: (_self: BaseClient, data: GatewayAutoModerationActionExecutionDispatchData) => {
|
|
5
5
|
guildId: string;
|
|
6
6
|
action: {
|
|
7
|
-
type: import("discord-api-types/
|
|
8
|
-
metadata?: import("discord-api-types/
|
|
7
|
+
type: import("discord-api-types/v10").AutoModerationActionType;
|
|
8
|
+
metadata?: import("discord-api-types/v10").APIAutoModerationActionMetadata | undefined;
|
|
9
9
|
};
|
|
10
10
|
ruleId: string;
|
|
11
|
-
ruleTriggerType: import("discord-api-types/
|
|
11
|
+
ruleTriggerType: import("discord-api-types/v10").AutoModerationRuleTriggerType;
|
|
12
12
|
userId: string;
|
|
13
13
|
channelId?: string | undefined;
|
|
14
14
|
messageId?: string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { GatewayChannelCreateDispatchData, GatewayChannelDeleteDispatchData, GatewayChannelPinsUpdateDispatchData, GatewayChannelUpdateDispatchData } from 'discord-api-types/v10';
|
|
2
2
|
import type { BaseClient } from '../../client/base';
|
|
3
3
|
import type { AllChannels } from '../../structures';
|
|
4
4
|
export declare const CHANNEL_CREATE: (self: BaseClient, data: GatewayChannelCreateDispatchData) => AllChannels;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { GatewayDispatchPayload, GatewayReadyDispatchData, GatewayResumedDispatch } from 'discord-api-types/v10';
|
|
1
2
|
import type { BaseClient } from '../../client/base';
|
|
2
|
-
import type { GatewayDispatchPayload, GatewayReadyDispatchData, GatewayResumedDispatch } from '../../common';
|
|
3
3
|
import { ClientUser } from '../../structures';
|
|
4
4
|
export declare const READY: (self: BaseClient, data: GatewayReadyDispatchData) => ClientUser;
|
|
5
5
|
export declare const RESUMED: (_self: BaseClient, _data: GatewayResumedDispatch['d']) => void;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import type { APIEntitlement } from 'discord-api-types/v10';
|
|
1
2
|
import type { BaseClient } from '../../client/base';
|
|
2
|
-
import { type APIEntitlement } from '../../common';
|
|
3
3
|
export declare const ENTITLEMENT_CREATE: (_: BaseClient, data: APIEntitlement) => {
|
|
4
4
|
id: string;
|
|
5
5
|
skuId: string;
|
|
6
6
|
userId?: string | undefined;
|
|
7
7
|
guildId?: string | undefined;
|
|
8
8
|
applicationId: string;
|
|
9
|
-
type: import("discord-api-types/
|
|
9
|
+
type: import("discord-api-types/v10").EntitlementType;
|
|
10
10
|
deleted: boolean;
|
|
11
11
|
startsAt?: string | undefined;
|
|
12
12
|
endsAt?: string | undefined;
|
|
@@ -17,7 +17,7 @@ export declare const ENTITLEMENT_UPDATE: (_: BaseClient, data: APIEntitlement) =
|
|
|
17
17
|
userId?: string | undefined;
|
|
18
18
|
guildId?: string | undefined;
|
|
19
19
|
applicationId: string;
|
|
20
|
-
type: import("discord-api-types/
|
|
20
|
+
type: import("discord-api-types/v10").EntitlementType;
|
|
21
21
|
deleted: boolean;
|
|
22
22
|
startsAt?: string | undefined;
|
|
23
23
|
endsAt?: string | undefined;
|
|
@@ -28,7 +28,7 @@ export declare const ENTITLEMENT_DELETE: (_: BaseClient, data: APIEntitlement) =
|
|
|
28
28
|
userId?: string | undefined;
|
|
29
29
|
guildId?: string | undefined;
|
|
30
30
|
applicationId: string;
|
|
31
|
-
type: import("discord-api-types/
|
|
31
|
+
type: import("discord-api-types/v10").EntitlementType;
|
|
32
32
|
deleted: boolean;
|
|
33
33
|
startsAt?: string | undefined;
|
|
34
34
|
endsAt?: string | undefined;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
import type { GatewayGuildAuditLogEntryCreateDispatchData, GatewayGuildBanAddDispatchData, GatewayGuildBanRemoveDispatchData, GatewayGuildCreateDispatchData, GatewayGuildDeleteDispatchData, GatewayGuildEmojisUpdateDispatchData, GatewayGuildIntegrationsUpdateDispatchData, GatewayGuildMemberRemoveDispatchData, GatewayGuildMemberUpdateDispatchData, GatewayGuildMembersChunkDispatchData, GatewayGuildRoleCreateDispatchData, GatewayGuildRoleDeleteDispatchData, GatewayGuildRoleUpdateDispatchData, GatewayGuildScheduledEventCreateDispatchData, GatewayGuildScheduledEventDeleteDispatchData, GatewayGuildScheduledEventUpdateDispatchData, GatewayGuildScheduledEventUserAddDispatchData, GatewayGuildScheduledEventUserRemoveDispatchData, GatewayGuildStickersUpdateDispatchData, GatewayGuildUpdateDispatchData } from 'discord-api-types/v10';
|
|
1
2
|
import type { BaseClient } from '../../client/base';
|
|
2
|
-
import type { GatewayGuildAuditLogEntryCreateDispatchData, GatewayGuildBanAddDispatchData, GatewayGuildBanRemoveDispatchData, GatewayGuildCreateDispatchData, GatewayGuildDeleteDispatchData, GatewayGuildEmojisUpdateDispatchData, GatewayGuildIntegrationsUpdateDispatchData, GatewayGuildMemberRemoveDispatchData, GatewayGuildMemberUpdateDispatchData, GatewayGuildMembersChunkDispatchData, GatewayGuildRoleCreateDispatchData, GatewayGuildRoleDeleteDispatchData, GatewayGuildRoleUpdateDispatchData, GatewayGuildScheduledEventCreateDispatchData, GatewayGuildScheduledEventDeleteDispatchData, GatewayGuildScheduledEventUpdateDispatchData, GatewayGuildScheduledEventUserAddDispatchData, GatewayGuildScheduledEventUserRemoveDispatchData, GatewayGuildStickersUpdateDispatchData, GatewayGuildUpdateDispatchData } from '../../common';
|
|
3
3
|
import { Guild, GuildEmoji, GuildMember, GuildRole, Sticker, UnavailableMember, User, type GatewayGuildMemberAddDispatchDataFixed } from '../../structures';
|
|
4
4
|
export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: BaseClient, data: GatewayGuildAuditLogEntryCreateDispatchData) => {
|
|
5
5
|
guildId: string;
|
|
6
6
|
targetId: string | null;
|
|
7
|
-
changes?: import("discord-api-types/
|
|
7
|
+
changes?: import("discord-api-types/v10").APIAuditLogChange[] | undefined;
|
|
8
8
|
userId: string | null;
|
|
9
9
|
id: string;
|
|
10
|
-
actionType: import("discord-api-types/
|
|
11
|
-
options?: import("discord-api-types/
|
|
10
|
+
actionType: import("discord-api-types/v10").AuditLogEvent;
|
|
11
|
+
options?: import("discord-api-types/v10").APIAuditLogOptions | undefined;
|
|
12
12
|
reason?: string | undefined;
|
|
13
13
|
};
|
|
14
14
|
export declare const GUILD_BAN_ADD: (self: BaseClient, data: GatewayGuildBanAddDispatchData) => {
|
|
@@ -20,7 +20,7 @@ export declare const GUILD_BAN_REMOVE: (self: BaseClient, data: GatewayGuildBanR
|
|
|
20
20
|
guildId: string;
|
|
21
21
|
};
|
|
22
22
|
export declare const GUILD_CREATE: (self: BaseClient, data: GatewayGuildCreateDispatchData) => Guild<"create">;
|
|
23
|
-
export declare const GUILD_DELETE: (_self: BaseClient, data: GatewayGuildDeleteDispatchData) => Promise<import("discord-api-types/
|
|
23
|
+
export declare const GUILD_DELETE: (_self: BaseClient, data: GatewayGuildDeleteDispatchData) => Promise<import("discord-api-types/v10").APIUnavailableGuild>;
|
|
24
24
|
export declare const GUILD_EMOJIS_UPDATE: (self: BaseClient, data: GatewayGuildEmojisUpdateDispatchData) => {
|
|
25
25
|
emojis: GuildEmoji[];
|
|
26
26
|
guildId: string;
|
|
@@ -39,7 +39,7 @@ export declare const GUILD_MEMBERS_CHUNK: (self: BaseClient, data: GatewayGuildM
|
|
|
39
39
|
chunkIndex: number;
|
|
40
40
|
chunkCount: number;
|
|
41
41
|
notFound?: unknown[] | undefined;
|
|
42
|
-
presences?: import("discord-api-types/
|
|
42
|
+
presences?: import("discord-api-types/v10").GatewayGuildMembersChunkPresence[] | undefined;
|
|
43
43
|
nonce?: string | undefined;
|
|
44
44
|
};
|
|
45
45
|
export declare const GUILD_MEMBER_UPDATE: (self: BaseClient, data: GatewayGuildMemberUpdateDispatchData) => Promise<[member: GuildMember, old?: GuildMember]>;
|
|
@@ -53,11 +53,11 @@ export declare const GUILD_SCHEDULED_EVENT_CREATE: (_self: BaseClient, data: Gat
|
|
|
53
53
|
description?: string | null | undefined;
|
|
54
54
|
scheduledStartTime: string;
|
|
55
55
|
scheduledEndTime: string | null;
|
|
56
|
-
privacyLevel: import("discord-api-types/
|
|
57
|
-
status: import("discord-api-types/
|
|
58
|
-
entityType: import("discord-api-types/
|
|
56
|
+
privacyLevel: import("discord-api-types/v10").GuildScheduledEventPrivacyLevel;
|
|
57
|
+
status: import("discord-api-types/v10").GuildScheduledEventStatus;
|
|
58
|
+
entityType: import("discord-api-types/v10").GuildScheduledEventEntityType.StageInstance;
|
|
59
59
|
entityId: string | null;
|
|
60
|
-
creator?: import("discord-api-types/
|
|
60
|
+
creator?: import("discord-api-types/v10").APIUser | undefined;
|
|
61
61
|
userCount?: number | undefined;
|
|
62
62
|
image?: string | null | undefined;
|
|
63
63
|
} | {
|
|
@@ -70,11 +70,11 @@ export declare const GUILD_SCHEDULED_EVENT_CREATE: (_self: BaseClient, data: Gat
|
|
|
70
70
|
description?: string | null | undefined;
|
|
71
71
|
scheduledStartTime: string;
|
|
72
72
|
scheduledEndTime: string | null;
|
|
73
|
-
privacyLevel: import("discord-api-types/
|
|
74
|
-
status: import("discord-api-types/
|
|
75
|
-
entityType: import("discord-api-types/
|
|
73
|
+
privacyLevel: import("discord-api-types/v10").GuildScheduledEventPrivacyLevel;
|
|
74
|
+
status: import("discord-api-types/v10").GuildScheduledEventStatus;
|
|
75
|
+
entityType: import("discord-api-types/v10").GuildScheduledEventEntityType.Voice;
|
|
76
76
|
entityId: string | null;
|
|
77
|
-
creator?: import("discord-api-types/
|
|
77
|
+
creator?: import("discord-api-types/v10").APIUser | undefined;
|
|
78
78
|
userCount?: number | undefined;
|
|
79
79
|
image?: string | null | undefined;
|
|
80
80
|
} | {
|
|
@@ -89,11 +89,11 @@ export declare const GUILD_SCHEDULED_EVENT_CREATE: (_self: BaseClient, data: Gat
|
|
|
89
89
|
description?: string | null | undefined;
|
|
90
90
|
scheduledStartTime: string;
|
|
91
91
|
scheduledEndTime: string | null;
|
|
92
|
-
privacyLevel: import("discord-api-types/
|
|
93
|
-
status: import("discord-api-types/
|
|
94
|
-
entityType: import("discord-api-types/
|
|
92
|
+
privacyLevel: import("discord-api-types/v10").GuildScheduledEventPrivacyLevel;
|
|
93
|
+
status: import("discord-api-types/v10").GuildScheduledEventStatus;
|
|
94
|
+
entityType: import("discord-api-types/v10").GuildScheduledEventEntityType.External;
|
|
95
95
|
entityId: string | null;
|
|
96
|
-
creator?: import("discord-api-types/
|
|
96
|
+
creator?: import("discord-api-types/v10").APIUser | undefined;
|
|
97
97
|
userCount?: number | undefined;
|
|
98
98
|
image?: string | null | undefined;
|
|
99
99
|
};
|
|
@@ -107,11 +107,11 @@ export declare const GUILD_SCHEDULED_EVENT_UPDATE: (_self: BaseClient, data: Gat
|
|
|
107
107
|
description?: string | null | undefined;
|
|
108
108
|
scheduledStartTime: string;
|
|
109
109
|
scheduledEndTime: string | null;
|
|
110
|
-
privacyLevel: import("discord-api-types/
|
|
111
|
-
status: import("discord-api-types/
|
|
112
|
-
entityType: import("discord-api-types/
|
|
110
|
+
privacyLevel: import("discord-api-types/v10").GuildScheduledEventPrivacyLevel;
|
|
111
|
+
status: import("discord-api-types/v10").GuildScheduledEventStatus;
|
|
112
|
+
entityType: import("discord-api-types/v10").GuildScheduledEventEntityType.StageInstance;
|
|
113
113
|
entityId: string | null;
|
|
114
|
-
creator?: import("discord-api-types/
|
|
114
|
+
creator?: import("discord-api-types/v10").APIUser | undefined;
|
|
115
115
|
userCount?: number | undefined;
|
|
116
116
|
image?: string | null | undefined;
|
|
117
117
|
} | {
|
|
@@ -124,11 +124,11 @@ export declare const GUILD_SCHEDULED_EVENT_UPDATE: (_self: BaseClient, data: Gat
|
|
|
124
124
|
description?: string | null | undefined;
|
|
125
125
|
scheduledStartTime: string;
|
|
126
126
|
scheduledEndTime: string | null;
|
|
127
|
-
privacyLevel: import("discord-api-types/
|
|
128
|
-
status: import("discord-api-types/
|
|
129
|
-
entityType: import("discord-api-types/
|
|
127
|
+
privacyLevel: import("discord-api-types/v10").GuildScheduledEventPrivacyLevel;
|
|
128
|
+
status: import("discord-api-types/v10").GuildScheduledEventStatus;
|
|
129
|
+
entityType: import("discord-api-types/v10").GuildScheduledEventEntityType.Voice;
|
|
130
130
|
entityId: string | null;
|
|
131
|
-
creator?: import("discord-api-types/
|
|
131
|
+
creator?: import("discord-api-types/v10").APIUser | undefined;
|
|
132
132
|
userCount?: number | undefined;
|
|
133
133
|
image?: string | null | undefined;
|
|
134
134
|
} | {
|
|
@@ -143,11 +143,11 @@ export declare const GUILD_SCHEDULED_EVENT_UPDATE: (_self: BaseClient, data: Gat
|
|
|
143
143
|
description?: string | null | undefined;
|
|
144
144
|
scheduledStartTime: string;
|
|
145
145
|
scheduledEndTime: string | null;
|
|
146
|
-
privacyLevel: import("discord-api-types/
|
|
147
|
-
status: import("discord-api-types/
|
|
148
|
-
entityType: import("discord-api-types/
|
|
146
|
+
privacyLevel: import("discord-api-types/v10").GuildScheduledEventPrivacyLevel;
|
|
147
|
+
status: import("discord-api-types/v10").GuildScheduledEventStatus;
|
|
148
|
+
entityType: import("discord-api-types/v10").GuildScheduledEventEntityType.External;
|
|
149
149
|
entityId: string | null;
|
|
150
|
-
creator?: import("discord-api-types/
|
|
150
|
+
creator?: import("discord-api-types/v10").APIUser | undefined;
|
|
151
151
|
userCount?: number | undefined;
|
|
152
152
|
image?: string | null | undefined;
|
|
153
153
|
};
|
|
@@ -161,11 +161,11 @@ export declare const GUILD_SCHEDULED_EVENT_DELETE: (_self: BaseClient, data: Gat
|
|
|
161
161
|
description?: string | null | undefined;
|
|
162
162
|
scheduledStartTime: string;
|
|
163
163
|
scheduledEndTime: string | null;
|
|
164
|
-
privacyLevel: import("discord-api-types/
|
|
165
|
-
status: import("discord-api-types/
|
|
166
|
-
entityType: import("discord-api-types/
|
|
164
|
+
privacyLevel: import("discord-api-types/v10").GuildScheduledEventPrivacyLevel;
|
|
165
|
+
status: import("discord-api-types/v10").GuildScheduledEventStatus;
|
|
166
|
+
entityType: import("discord-api-types/v10").GuildScheduledEventEntityType.StageInstance;
|
|
167
167
|
entityId: string | null;
|
|
168
|
-
creator?: import("discord-api-types/
|
|
168
|
+
creator?: import("discord-api-types/v10").APIUser | undefined;
|
|
169
169
|
userCount?: number | undefined;
|
|
170
170
|
image?: string | null | undefined;
|
|
171
171
|
} | {
|
|
@@ -178,11 +178,11 @@ export declare const GUILD_SCHEDULED_EVENT_DELETE: (_self: BaseClient, data: Gat
|
|
|
178
178
|
description?: string | null | undefined;
|
|
179
179
|
scheduledStartTime: string;
|
|
180
180
|
scheduledEndTime: string | null;
|
|
181
|
-
privacyLevel: import("discord-api-types/
|
|
182
|
-
status: import("discord-api-types/
|
|
183
|
-
entityType: import("discord-api-types/
|
|
181
|
+
privacyLevel: import("discord-api-types/v10").GuildScheduledEventPrivacyLevel;
|
|
182
|
+
status: import("discord-api-types/v10").GuildScheduledEventStatus;
|
|
183
|
+
entityType: import("discord-api-types/v10").GuildScheduledEventEntityType.Voice;
|
|
184
184
|
entityId: string | null;
|
|
185
|
-
creator?: import("discord-api-types/
|
|
185
|
+
creator?: import("discord-api-types/v10").APIUser | undefined;
|
|
186
186
|
userCount?: number | undefined;
|
|
187
187
|
image?: string | null | undefined;
|
|
188
188
|
} | {
|
|
@@ -197,11 +197,11 @@ export declare const GUILD_SCHEDULED_EVENT_DELETE: (_self: BaseClient, data: Gat
|
|
|
197
197
|
description?: string | null | undefined;
|
|
198
198
|
scheduledStartTime: string;
|
|
199
199
|
scheduledEndTime: string | null;
|
|
200
|
-
privacyLevel: import("discord-api-types/
|
|
201
|
-
status: import("discord-api-types/
|
|
202
|
-
entityType: import("discord-api-types/
|
|
200
|
+
privacyLevel: import("discord-api-types/v10").GuildScheduledEventPrivacyLevel;
|
|
201
|
+
status: import("discord-api-types/v10").GuildScheduledEventStatus;
|
|
202
|
+
entityType: import("discord-api-types/v10").GuildScheduledEventEntityType.External;
|
|
203
203
|
entityId: string | null;
|
|
204
|
-
creator?: import("discord-api-types/
|
|
204
|
+
creator?: import("discord-api-types/v10").APIUser | undefined;
|
|
205
205
|
userCount?: number | undefined;
|
|
206
206
|
image?: string | null | undefined;
|
|
207
207
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
+
import type { GatewayIntegrationCreateDispatchData, GatewayIntegrationDeleteDispatchData, GatewayIntegrationUpdateDispatchData } from 'discord-api-types/v10';
|
|
1
2
|
import type { BaseClient } from '../../client/base';
|
|
2
|
-
import type { GatewayIntegrationCreateDispatchData, GatewayIntegrationDeleteDispatchData, GatewayIntegrationUpdateDispatchData } from '../../common';
|
|
3
3
|
import { User } from '../../structures';
|
|
4
4
|
export declare const INTEGRATION_CREATE: (self: BaseClient, data: GatewayIntegrationCreateDispatchData) => {
|
|
5
5
|
id: string;
|
|
6
6
|
name: string;
|
|
7
|
-
type: import("discord-api-types/
|
|
7
|
+
type: import("discord-api-types/v10").APIGuildIntegrationType;
|
|
8
8
|
enabled: boolean;
|
|
9
9
|
syncing?: boolean | undefined;
|
|
10
10
|
roleId?: string | undefined;
|
|
11
11
|
enableEmoticons?: boolean | undefined;
|
|
12
|
-
expireBehavior?: import("discord-api-types/
|
|
12
|
+
expireBehavior?: import("discord-api-types/v10").IntegrationExpireBehavior | undefined;
|
|
13
13
|
expireGracePeriod?: number | undefined;
|
|
14
|
-
user?: import("discord-api-types/
|
|
14
|
+
user?: import("discord-api-types/v10").APIUser | undefined;
|
|
15
15
|
account: {
|
|
16
16
|
id: string;
|
|
17
17
|
name: string;
|
|
@@ -19,19 +19,19 @@ export declare const INTEGRATION_CREATE: (self: BaseClient, data: GatewayIntegra
|
|
|
19
19
|
syncedAt?: string | undefined;
|
|
20
20
|
subscriberCount?: number | undefined;
|
|
21
21
|
revoked?: boolean | undefined;
|
|
22
|
-
application?: import("discord-api-types/
|
|
23
|
-
scopes?: import("discord-api-types/
|
|
22
|
+
application?: import("discord-api-types/v10").APIGuildIntegrationApplication | undefined;
|
|
23
|
+
scopes?: import("discord-api-types/v10").OAuth2Scopes[] | undefined;
|
|
24
24
|
guildId: string;
|
|
25
25
|
} | {
|
|
26
26
|
user: User;
|
|
27
27
|
id: string;
|
|
28
28
|
name: string;
|
|
29
|
-
type: import("discord-api-types/
|
|
29
|
+
type: import("discord-api-types/v10").APIGuildIntegrationType;
|
|
30
30
|
enabled: boolean;
|
|
31
31
|
syncing?: boolean | undefined;
|
|
32
32
|
roleId?: string | undefined;
|
|
33
33
|
enableEmoticons?: boolean | undefined;
|
|
34
|
-
expireBehavior?: import("discord-api-types/
|
|
34
|
+
expireBehavior?: import("discord-api-types/v10").IntegrationExpireBehavior | undefined;
|
|
35
35
|
expireGracePeriod?: number | undefined;
|
|
36
36
|
account: {
|
|
37
37
|
id: string;
|
|
@@ -40,21 +40,21 @@ export declare const INTEGRATION_CREATE: (self: BaseClient, data: GatewayIntegra
|
|
|
40
40
|
syncedAt?: string | undefined;
|
|
41
41
|
subscriberCount?: number | undefined;
|
|
42
42
|
revoked?: boolean | undefined;
|
|
43
|
-
application?: import("discord-api-types/
|
|
44
|
-
scopes?: import("discord-api-types/
|
|
43
|
+
application?: import("discord-api-types/v10").APIGuildIntegrationApplication | undefined;
|
|
44
|
+
scopes?: import("discord-api-types/v10").OAuth2Scopes[] | undefined;
|
|
45
45
|
guildId: string;
|
|
46
46
|
};
|
|
47
47
|
export declare const INTEGRATION_UPDATE: (self: BaseClient, data: GatewayIntegrationUpdateDispatchData) => {
|
|
48
48
|
id: string;
|
|
49
49
|
name: string;
|
|
50
|
-
type: import("discord-api-types/
|
|
50
|
+
type: import("discord-api-types/v10").APIGuildIntegrationType;
|
|
51
51
|
enabled: boolean;
|
|
52
52
|
syncing?: boolean | undefined;
|
|
53
53
|
roleId?: string | undefined;
|
|
54
54
|
enableEmoticons?: boolean | undefined;
|
|
55
|
-
expireBehavior?: import("discord-api-types/
|
|
55
|
+
expireBehavior?: import("discord-api-types/v10").IntegrationExpireBehavior | undefined;
|
|
56
56
|
expireGracePeriod?: number | undefined;
|
|
57
|
-
user?: import("discord-api-types/
|
|
57
|
+
user?: import("discord-api-types/v10").APIUser | undefined;
|
|
58
58
|
account: {
|
|
59
59
|
id: string;
|
|
60
60
|
name: string;
|
|
@@ -62,19 +62,19 @@ export declare const INTEGRATION_UPDATE: (self: BaseClient, data: GatewayIntegra
|
|
|
62
62
|
syncedAt?: string | undefined;
|
|
63
63
|
subscriberCount?: number | undefined;
|
|
64
64
|
revoked?: boolean | undefined;
|
|
65
|
-
application?: import("discord-api-types/
|
|
66
|
-
scopes?: import("discord-api-types/
|
|
65
|
+
application?: import("discord-api-types/v10").APIGuildIntegrationApplication | undefined;
|
|
66
|
+
scopes?: import("discord-api-types/v10").OAuth2Scopes[] | undefined;
|
|
67
67
|
guildId: string;
|
|
68
68
|
} | {
|
|
69
69
|
user: User;
|
|
70
70
|
id: string;
|
|
71
71
|
name: string;
|
|
72
|
-
type: import("discord-api-types/
|
|
72
|
+
type: import("discord-api-types/v10").APIGuildIntegrationType;
|
|
73
73
|
enabled: boolean;
|
|
74
74
|
syncing?: boolean | undefined;
|
|
75
75
|
roleId?: string | undefined;
|
|
76
76
|
enableEmoticons?: boolean | undefined;
|
|
77
|
-
expireBehavior?: import("discord-api-types/
|
|
77
|
+
expireBehavior?: import("discord-api-types/v10").IntegrationExpireBehavior | undefined;
|
|
78
78
|
expireGracePeriod?: number | undefined;
|
|
79
79
|
account: {
|
|
80
80
|
id: string;
|
|
@@ -83,8 +83,8 @@ export declare const INTEGRATION_UPDATE: (self: BaseClient, data: GatewayIntegra
|
|
|
83
83
|
syncedAt?: string | undefined;
|
|
84
84
|
subscriberCount?: number | undefined;
|
|
85
85
|
revoked?: boolean | undefined;
|
|
86
|
-
application?: import("discord-api-types/
|
|
87
|
-
scopes?: import("discord-api-types/
|
|
86
|
+
application?: import("discord-api-types/v10").APIGuildIntegrationApplication | undefined;
|
|
87
|
+
scopes?: import("discord-api-types/v10").OAuth2Scopes[] | undefined;
|
|
88
88
|
guildId: string;
|
|
89
89
|
};
|
|
90
90
|
export declare const INTEGRATION_DELETE: (_self: BaseClient, data: GatewayIntegrationDeleteDispatchData) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
+
import type { GatewayInteractionCreateDispatchData } from 'discord-api-types/v10';
|
|
1
2
|
import type { BaseClient } from '../../client/base';
|
|
2
|
-
import type { GatewayInteractionCreateDispatchData } from '../../common';
|
|
3
3
|
import { BaseInteraction } from '../../structures';
|
|
4
|
-
export declare const INTERACTION_CREATE: (self: BaseClient, data: GatewayInteractionCreateDispatchData) => import("../../structures").StringSelectMenuInteraction<string[]> | import("../../structures").AutocompleteInteraction<boolean> | BaseInteraction<boolean, import("discord-api-types/
|
|
4
|
+
export declare const INTERACTION_CREATE: (self: BaseClient, data: GatewayInteractionCreateDispatchData) => import("../../structures").StringSelectMenuInteraction<string[]> | import("../../structures").AutocompleteInteraction<boolean> | BaseInteraction<boolean, import("discord-api-types/v10").APIPingInteraction>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import type { GatewayInviteCreateDispatchData, GatewayInviteDeleteDispatchData } from '
|
|
1
|
+
import type { GatewayInviteCreateDispatchData, GatewayInviteDeleteDispatchData } from 'discord-api-types/v10';
|
|
2
2
|
import type { BaseClient } from '../../client/base';
|
|
3
3
|
export declare const INVITE_CREATE: (_self: BaseClient, data: GatewayInviteCreateDispatchData) => {
|
|
4
4
|
channelId: string;
|
|
5
5
|
code: string;
|
|
6
6
|
createdAt: number;
|
|
7
7
|
guildId?: string | undefined;
|
|
8
|
-
inviter?: import("discord-api-types/
|
|
8
|
+
inviter?: import("discord-api-types/v10").APIUser | undefined;
|
|
9
9
|
maxAge: number;
|
|
10
10
|
maxUses: number;
|
|
11
|
-
targetType?: import("discord-api-types/
|
|
12
|
-
targetUser?: import("discord-api-types/
|
|
13
|
-
targetApplication?: Partial<import("discord-api-types/
|
|
11
|
+
targetType?: import("discord-api-types/v10").InviteTargetType | undefined;
|
|
12
|
+
targetUser?: import("discord-api-types/v10").APIUser | undefined;
|
|
13
|
+
targetApplication?: Partial<import("discord-api-types/v10").APIApplication> | undefined;
|
|
14
14
|
temporary: boolean;
|
|
15
15
|
uses: 0;
|
|
16
16
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { GatewayMessageCreateDispatchData, GatewayMessageDeleteBulkDispatchData, GatewayMessageDeleteDispatchData, GatewayMessageReactionAddDispatchData, GatewayMessageReactionRemoveAllDispatchData, GatewayMessageReactionRemoveDispatchData, GatewayMessageReactionRemoveEmojiDispatchData, GatewayMessageUpdateDispatchData } from 'discord-api-types/v10';
|
|
1
2
|
import type { BaseClient } from '../../client/base';
|
|
2
|
-
import
|
|
3
|
+
import { type MakeRequired, type PartialClass } from '../../common';
|
|
3
4
|
import { Message } from '../../structures';
|
|
4
5
|
export declare const MESSAGE_CREATE: (self: BaseClient, data: GatewayMessageCreateDispatchData) => Message;
|
|
5
6
|
export declare const MESSAGE_DELETE: (_self: BaseClient, data: GatewayMessageDeleteDispatchData) => {
|
|
@@ -15,7 +16,7 @@ export declare const MESSAGE_DELETE_BULK: (_self: BaseClient, data: GatewayMessa
|
|
|
15
16
|
export declare const MESSAGE_REACTION_ADD: (_self: BaseClient, data: GatewayMessageReactionAddDispatchData) => {
|
|
16
17
|
emoji: {
|
|
17
18
|
roles?: string[] | undefined;
|
|
18
|
-
user?: import("discord-api-types/
|
|
19
|
+
user?: import("discord-api-types/v10").APIUser | undefined;
|
|
19
20
|
requireColons?: boolean | undefined;
|
|
20
21
|
managed?: boolean | undefined;
|
|
21
22
|
available?: boolean | undefined;
|
|
@@ -26,14 +27,14 @@ export declare const MESSAGE_REACTION_ADD: (_self: BaseClient, data: GatewayMess
|
|
|
26
27
|
guildId?: string | undefined;
|
|
27
28
|
channelId: string;
|
|
28
29
|
messageId: string;
|
|
29
|
-
member?: import("discord-api-types/
|
|
30
|
+
member?: import("discord-api-types/v10").APIGuildMember | undefined;
|
|
30
31
|
userId: string;
|
|
31
32
|
messageAuthorId?: string | undefined;
|
|
32
33
|
};
|
|
33
34
|
export declare const MESSAGE_REACTION_REMOVE: (_self: BaseClient, data: GatewayMessageReactionRemoveDispatchData) => {
|
|
34
35
|
emoji: {
|
|
35
36
|
roles?: string[] | undefined;
|
|
36
|
-
user?: import("discord-api-types/
|
|
37
|
+
user?: import("discord-api-types/v10").APIUser | undefined;
|
|
37
38
|
requireColons?: boolean | undefined;
|
|
38
39
|
managed?: boolean | undefined;
|
|
39
40
|
available?: boolean | undefined;
|
|
@@ -54,7 +55,7 @@ export declare const MESSAGE_REACTION_REMOVE_ALL: (_self: BaseClient, data: Gate
|
|
|
54
55
|
export declare const MESSAGE_REACTION_REMOVE_EMOJI: (_self: BaseClient, data: GatewayMessageReactionRemoveEmojiDispatchData) => {
|
|
55
56
|
emoji: {
|
|
56
57
|
roles?: string[] | undefined;
|
|
57
|
-
user?: import("discord-api-types/
|
|
58
|
+
user?: import("discord-api-types/v10").APIUser | undefined;
|
|
58
59
|
requireColons?: boolean | undefined;
|
|
59
60
|
managed?: boolean | undefined;
|
|
60
61
|
available?: boolean | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GatewayPresenceUpdateDispatchData } from '
|
|
1
|
+
import type { GatewayPresenceUpdateDispatchData } from 'discord-api-types/v10';
|
|
2
2
|
import type { BaseClient } from '../../client/base';
|
|
3
3
|
export declare const PRESENCE_UPDATE: (_self: BaseClient, data: GatewayPresenceUpdateDispatchData) => {
|
|
4
4
|
user: {
|
|
@@ -15,13 +15,13 @@ export declare const PRESENCE_UPDATE: (_self: BaseClient, data: GatewayPresenceU
|
|
|
15
15
|
locale?: string | undefined;
|
|
16
16
|
verified?: boolean | undefined;
|
|
17
17
|
email?: string | null | undefined;
|
|
18
|
-
flags?: import("discord-api-types/
|
|
19
|
-
premiumType?: import("discord-api-types/
|
|
20
|
-
publicFlags?: import("discord-api-types/
|
|
18
|
+
flags?: import("discord-api-types/v10").UserFlags | undefined;
|
|
19
|
+
premiumType?: import("discord-api-types/v10").UserPremiumType | undefined;
|
|
20
|
+
publicFlags?: import("discord-api-types/v10").UserFlags | undefined;
|
|
21
21
|
avatarDecoration?: string | null | undefined;
|
|
22
22
|
};
|
|
23
23
|
guildId: string;
|
|
24
|
-
status?: import("discord-api-types/
|
|
25
|
-
activities?: import("discord-api-types/
|
|
26
|
-
clientStatus?: import("discord-api-types/
|
|
24
|
+
status?: import("discord-api-types/v10").PresenceUpdateReceiveStatus | undefined;
|
|
25
|
+
activities?: import("discord-api-types/v10").GatewayActivity[] | undefined;
|
|
26
|
+
clientStatus?: import("discord-api-types/v10").GatewayPresenceClientStatus | undefined;
|
|
27
27
|
};
|