seyfert 2.1.1-dev-12404125172.0 → 2.1.1-dev-12450598903.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/commands/applications/chatcontext.d.ts +5 -5
- package/lib/commands/applications/entrycontext.d.ts +8 -8
- package/lib/commands/applications/menucontext.d.ts +10 -10
- package/lib/commands/handle.d.ts +1 -1
- package/lib/commands/optionresolver.d.ts +1 -1
- package/lib/common/shorters/application.d.ts +3 -2
- package/lib/common/shorters/bans.d.ts +3 -2
- package/lib/common/shorters/channels.d.ts +3 -3
- package/lib/common/shorters/emojis.d.ts +5 -4
- package/lib/common/shorters/guilds.d.ts +18 -18
- package/lib/common/shorters/guilds.js +2 -2
- package/lib/common/shorters/interaction.d.ts +6 -5
- package/lib/common/shorters/members.d.ts +10 -10
- package/lib/common/shorters/messages.d.ts +9 -8
- package/lib/common/shorters/roles.d.ts +7 -6
- package/lib/common/shorters/templates.d.ts +7 -6
- package/lib/common/shorters/threads.d.ts +7 -6
- package/lib/common/shorters/threads.js +2 -2
- package/lib/common/shorters/users.d.ts +5 -4
- package/lib/common/shorters/webhook.d.ts +9 -8
- package/lib/components/componentcontext.d.ts +9 -9
- package/lib/components/modalcontext.d.ts +9 -9
- package/lib/events/hooks/auto_moderation.d.ts +4 -3
- package/lib/events/hooks/custom.d.ts +7 -7
- package/lib/events/hooks/dispatch.d.ts +2 -1
- package/lib/events/hooks/entitlement.d.ts +4 -3
- package/lib/events/hooks/guild.d.ts +20 -105
- package/lib/events/hooks/integration.d.ts +8 -148
- package/lib/events/hooks/message.d.ts +3 -6
- package/lib/events/hooks/soundboard.d.ts +12 -115
- package/lib/events/hooks/thread.d.ts +3 -7
- package/lib/events/hooks/typing.d.ts +5 -49
- package/lib/structures/AutoModerationRule.d.ts +9 -8
- package/lib/structures/ClientUser.d.ts +3 -2
- package/lib/structures/Guild.d.ts +33 -38
- package/lib/structures/GuildBan.d.ts +5 -4
- package/lib/structures/GuildEmoji.d.ts +8 -7
- package/lib/structures/GuildMember.d.ts +17 -16
- package/lib/structures/GuildRole.d.ts +10 -9
- package/lib/structures/GuildTemplate.d.ts +12 -11
- package/lib/structures/Interaction.d.ts +7 -7
- package/lib/structures/Interaction.js +1 -1
- package/lib/structures/Message.d.ts +14 -14
- package/lib/structures/Poll.d.ts +3 -2
- package/lib/structures/Sticker.d.ts +8 -8
- package/lib/structures/User.d.ts +4 -3
- package/lib/structures/VoiceState.d.ts +8 -8
- package/lib/structures/Webhook.d.ts +8 -7
- package/lib/structures/channels.d.ts +27 -27
- package/lib/structures/channels.js +1 -1
- package/lib/websocket/discord/shared.d.ts +2 -0
- package/lib/websocket/discord/workermanager.d.ts +1 -1
- package/lib/websocket/discord/workermanager.js +3 -2
- package/package.json +4 -4
|
@@ -2,13 +2,10 @@ import { type MessageStructure } from '../../client/transformers';
|
|
|
2
2
|
import type { UsingClient } from '../../commands';
|
|
3
3
|
import { type ObjectToLower, type OmitInsert } from '../../common';
|
|
4
4
|
import type { GatewayMessageCreateDispatchData, GatewayMessageDeleteBulkDispatchData, GatewayMessageDeleteDispatchData, GatewayMessagePollVoteDispatchData, GatewayMessageReactionAddDispatchData, GatewayMessageReactionRemoveAllDispatchData, GatewayMessageReactionRemoveDispatchData, GatewayMessageReactionRemoveEmojiDispatchData, GatewayMessageUpdateDispatchData } from '../../types';
|
|
5
|
-
export declare const MESSAGE_CREATE: (self: UsingClient, data: GatewayMessageCreateDispatchData) =>
|
|
5
|
+
export declare const MESSAGE_CREATE: (self: UsingClient, data: GatewayMessageCreateDispatchData) => MessageStructure;
|
|
6
6
|
export declare const MESSAGE_DELETE: (self: UsingClient, data: GatewayMessageDeleteDispatchData) => Promise<MessageStructure | ObjectToLower<GatewayMessageDeleteDispatchData>>;
|
|
7
|
-
export declare const MESSAGE_DELETE_BULK: (self: UsingClient, data: GatewayMessageDeleteBulkDispatchData) => Promise<{
|
|
8
|
-
messages: (
|
|
9
|
-
ids: import("../../types").Snowflake[];
|
|
10
|
-
channel_id: import("../../types").Snowflake;
|
|
11
|
-
guild_id?: import("../../types").Snowflake;
|
|
7
|
+
export declare const MESSAGE_DELETE_BULK: (self: UsingClient, data: GatewayMessageDeleteBulkDispatchData) => Promise<GatewayMessageDeleteBulkDispatchData & {
|
|
8
|
+
messages: (MessageStructure | string)[];
|
|
12
9
|
}>;
|
|
13
10
|
export declare const MESSAGE_REACTION_ADD: (_self: UsingClient, data: GatewayMessageReactionAddDispatchData) => {
|
|
14
11
|
type: import("../../types").ReactionType;
|
|
@@ -1,121 +1,18 @@
|
|
|
1
|
+
import { type UserStructure } from '../../client';
|
|
1
2
|
import type { UsingClient } from '../../commands';
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
available: boolean;
|
|
11
|
-
user?: {
|
|
12
|
-
id: string;
|
|
13
|
-
username: string;
|
|
14
|
-
discriminator: string;
|
|
15
|
-
globalName: string | null;
|
|
16
|
-
avatar: string | null;
|
|
17
|
-
bot?: boolean | undefined;
|
|
18
|
-
system?: boolean | undefined;
|
|
19
|
-
mfaEnabled?: boolean | undefined;
|
|
20
|
-
banner?: string | null | undefined;
|
|
21
|
-
accentColor?: number | null | undefined;
|
|
22
|
-
locale?: string | undefined;
|
|
23
|
-
verified?: boolean | undefined;
|
|
24
|
-
email?: string | null | undefined;
|
|
25
|
-
flags?: import("../../types").UserFlags | undefined;
|
|
26
|
-
premiumType?: import("../../types").UserPremiumType | undefined;
|
|
27
|
-
publicFlags?: import("../../types").UserFlags | undefined;
|
|
28
|
-
avatarDecoration?: string | null | undefined;
|
|
29
|
-
avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
|
|
30
|
-
} | undefined;
|
|
31
|
-
} | {
|
|
32
|
-
user: import("../..").User;
|
|
33
|
-
name: string;
|
|
34
|
-
soundId: string;
|
|
35
|
-
volume: number;
|
|
36
|
-
emojiId: string | null;
|
|
37
|
-
emojiName: string | null;
|
|
38
|
-
guildId?: string | undefined;
|
|
39
|
-
available: boolean;
|
|
40
|
-
};
|
|
41
|
-
export declare const GUILD_SOUNDBOARD_SOUND_UPDATE: (self: UsingClient, data: GatewayGuildSoundboardSoundUpdateDispatchData) => {
|
|
42
|
-
name: string;
|
|
43
|
-
soundId: string;
|
|
44
|
-
volume: number;
|
|
45
|
-
emojiId: string | null;
|
|
46
|
-
emojiName: string | null;
|
|
47
|
-
guildId?: string | undefined;
|
|
48
|
-
available: boolean;
|
|
49
|
-
user?: {
|
|
50
|
-
id: string;
|
|
51
|
-
username: string;
|
|
52
|
-
discriminator: string;
|
|
53
|
-
globalName: string | null;
|
|
54
|
-
avatar: string | null;
|
|
55
|
-
bot?: boolean | undefined;
|
|
56
|
-
system?: boolean | undefined;
|
|
57
|
-
mfaEnabled?: boolean | undefined;
|
|
58
|
-
banner?: string | null | undefined;
|
|
59
|
-
accentColor?: number | null | undefined;
|
|
60
|
-
locale?: string | undefined;
|
|
61
|
-
verified?: boolean | undefined;
|
|
62
|
-
email?: string | null | undefined;
|
|
63
|
-
flags?: import("../../types").UserFlags | undefined;
|
|
64
|
-
premiumType?: import("../../types").UserPremiumType | undefined;
|
|
65
|
-
publicFlags?: import("../../types").UserFlags | undefined;
|
|
66
|
-
avatarDecoration?: string | null | undefined;
|
|
67
|
-
avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
|
|
68
|
-
} | undefined;
|
|
69
|
-
} | {
|
|
70
|
-
user: import("../..").User;
|
|
71
|
-
name: string;
|
|
72
|
-
soundId: string;
|
|
73
|
-
volume: number;
|
|
74
|
-
emojiId: string | null;
|
|
75
|
-
emojiName: string | null;
|
|
76
|
-
guildId?: string | undefined;
|
|
77
|
-
available: boolean;
|
|
78
|
-
};
|
|
3
|
+
import { type ObjectToLower } from '../../common';
|
|
4
|
+
import type { APISoundBoard, GatewayGuildSoundboardSoundCreateDispatchData, GatewayGuildSoundboardSoundDeleteDispatchData, GatewayGuildSoundboardSoundUpdateDispatchData, GatewayGuildSoundboardSoundsUpdateDispatchData, GatewaySoundboardSoundsDispatchData } from '../../types';
|
|
5
|
+
export declare const GUILD_SOUNDBOARD_SOUND_CREATE: (self: UsingClient, data: GatewayGuildSoundboardSoundCreateDispatchData) => (ObjectToLower<Omit<GatewayGuildSoundboardSoundCreateDispatchData, "user">> & {
|
|
6
|
+
user: UserStructure;
|
|
7
|
+
}) | ObjectToLower<Omit<GatewayGuildSoundboardSoundCreateDispatchData, "user">>;
|
|
8
|
+
export declare const GUILD_SOUNDBOARD_SOUND_UPDATE: (self: UsingClient, data: GatewayGuildSoundboardSoundUpdateDispatchData) => (ObjectToLower<Omit<GatewayGuildSoundboardSoundUpdateDispatchData, "user">> & {
|
|
9
|
+
user: UserStructure;
|
|
10
|
+
}) | ObjectToLower<Omit<GatewayGuildSoundboardSoundUpdateDispatchData, "user">>;
|
|
79
11
|
export declare const GUILD_SOUNDBOARD_SOUNDS_UPDATE: (self: UsingClient, data: GatewayGuildSoundboardSoundsUpdateDispatchData) => {
|
|
80
12
|
guildId: string;
|
|
81
|
-
sounds: ({
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
volume: number;
|
|
85
|
-
emojiId: string | null;
|
|
86
|
-
emojiName: string | null;
|
|
87
|
-
guildId?: string | undefined;
|
|
88
|
-
available: boolean;
|
|
89
|
-
user?: {
|
|
90
|
-
id: string;
|
|
91
|
-
username: string;
|
|
92
|
-
discriminator: string;
|
|
93
|
-
globalName: string | null;
|
|
94
|
-
avatar: string | null;
|
|
95
|
-
bot?: boolean | undefined;
|
|
96
|
-
system?: boolean | undefined;
|
|
97
|
-
mfaEnabled?: boolean | undefined;
|
|
98
|
-
banner?: string | null | undefined;
|
|
99
|
-
accentColor?: number | null | undefined;
|
|
100
|
-
locale?: string | undefined;
|
|
101
|
-
verified?: boolean | undefined;
|
|
102
|
-
email?: string | null | undefined;
|
|
103
|
-
flags?: import("../../types").UserFlags | undefined;
|
|
104
|
-
premiumType?: import("../../types").UserPremiumType | undefined;
|
|
105
|
-
publicFlags?: import("../../types").UserFlags | undefined;
|
|
106
|
-
avatarDecoration?: string | null | undefined;
|
|
107
|
-
avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
|
|
108
|
-
} | undefined;
|
|
109
|
-
} | {
|
|
110
|
-
user: import("../..").User;
|
|
111
|
-
name: string;
|
|
112
|
-
soundId: string;
|
|
113
|
-
volume: number;
|
|
114
|
-
emojiId: string | null;
|
|
115
|
-
emojiName: string | null;
|
|
116
|
-
guildId?: string | undefined;
|
|
117
|
-
available: boolean;
|
|
118
|
-
})[];
|
|
13
|
+
sounds: ((ObjectToLower<Omit<APISoundBoard, "user">> & {
|
|
14
|
+
user: UserStructure;
|
|
15
|
+
}) | ObjectToLower<Omit<APISoundBoard, "user">>)[];
|
|
119
16
|
};
|
|
120
17
|
export declare const GUILD_SOUNDBOARD_SOUND_DELETE: (_: UsingClient, data: GatewayGuildSoundboardSoundDeleteDispatchData) => {
|
|
121
18
|
soundId: string;
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { type ThreadChannelStructure } from '../../client/transformers';
|
|
2
2
|
import type { UsingClient } from '../../commands';
|
|
3
|
+
import { type ObjectToLower } from '../../common';
|
|
3
4
|
import type { GatewayThreadCreateDispatchData, GatewayThreadDeleteDispatchData, GatewayThreadListSyncDispatchData, GatewayThreadMemberUpdateDispatchData, GatewayThreadMembersUpdateDispatchData, GatewayThreadUpdateDispatchData } from '../../types';
|
|
4
|
-
export declare const THREAD_CREATE: (self: UsingClient, data: GatewayThreadCreateDispatchData) =>
|
|
5
|
-
export declare const THREAD_DELETE: (self: UsingClient, data: GatewayThreadDeleteDispatchData) => Promise<
|
|
6
|
-
id: string;
|
|
7
|
-
guildId: string;
|
|
8
|
-
parentId: string;
|
|
9
|
-
type: import("../../types").ChannelType;
|
|
10
|
-
}>;
|
|
5
|
+
export declare const THREAD_CREATE: (self: UsingClient, data: GatewayThreadCreateDispatchData) => ThreadChannelStructure;
|
|
6
|
+
export declare const THREAD_DELETE: (self: UsingClient, data: GatewayThreadDeleteDispatchData) => Promise<ThreadChannelStructure | ObjectToLower<GatewayThreadDeleteDispatchData>>;
|
|
11
7
|
export declare const THREAD_LIST_SYNC: (_self: UsingClient, data: GatewayThreadListSyncDispatchData) => {
|
|
12
8
|
guildId: string;
|
|
13
9
|
channelIds?: string[] | undefined;
|
|
@@ -1,51 +1,7 @@
|
|
|
1
|
+
import { type GuildMemberStructure } from '../../client/transformers';
|
|
1
2
|
import type { UsingClient } from '../../commands';
|
|
3
|
+
import { type ObjectToLower } from '../../common';
|
|
2
4
|
import type { GatewayTypingStartDispatchData } from '../../types';
|
|
3
|
-
export declare const TYPING_START: (self: UsingClient, data: GatewayTypingStartDispatchData) => {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
userId: string;
|
|
7
|
-
timestamp: number;
|
|
8
|
-
member?: {
|
|
9
|
-
user: {
|
|
10
|
-
id: string;
|
|
11
|
-
username: string;
|
|
12
|
-
discriminator: string;
|
|
13
|
-
globalName: string | null;
|
|
14
|
-
avatar: string | null;
|
|
15
|
-
bot?: boolean | undefined;
|
|
16
|
-
system?: boolean | undefined;
|
|
17
|
-
mfaEnabled?: boolean | undefined;
|
|
18
|
-
banner?: string | null | undefined;
|
|
19
|
-
accentColor?: number | null | undefined;
|
|
20
|
-
locale?: string | undefined;
|
|
21
|
-
verified?: boolean | undefined;
|
|
22
|
-
email?: string | null | undefined;
|
|
23
|
-
flags?: import("../../types").UserFlags | undefined;
|
|
24
|
-
premiumType?: import("../../types").UserPremiumType | undefined;
|
|
25
|
-
publicFlags?: import("../../types").UserFlags | undefined;
|
|
26
|
-
avatarDecoration?: string | null | undefined;
|
|
27
|
-
avatarDecorationData?: {
|
|
28
|
-
asset: string;
|
|
29
|
-
skuId: string;
|
|
30
|
-
} | null | undefined;
|
|
31
|
-
};
|
|
32
|
-
nick?: string | null | undefined;
|
|
33
|
-
avatar?: string | null | undefined;
|
|
34
|
-
roles: string[];
|
|
35
|
-
joinedAt: string;
|
|
36
|
-
premiumSince?: string | null | undefined;
|
|
37
|
-
deaf: boolean;
|
|
38
|
-
mute: boolean;
|
|
39
|
-
flags: import("../../types").GuildMemberFlags;
|
|
40
|
-
pending?: boolean | undefined;
|
|
41
|
-
communicationDisabledUntil?: string | null | undefined;
|
|
42
|
-
avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
|
|
43
|
-
banner: string | null;
|
|
44
|
-
} | undefined;
|
|
45
|
-
} | {
|
|
46
|
-
member: import("../..").GuildMember;
|
|
47
|
-
channelId: string;
|
|
48
|
-
guildId?: string | undefined;
|
|
49
|
-
userId: string;
|
|
50
|
-
timestamp: number;
|
|
51
|
-
};
|
|
5
|
+
export declare const TYPING_START: (self: UsingClient, data: GatewayTypingStartDispatchData) => (ObjectToLower<Omit<GatewayTypingStartDispatchData, "member">> & {
|
|
6
|
+
member: GuildMemberStructure;
|
|
7
|
+
}) | ObjectToLower<Omit<GatewayTypingStartDispatchData, "member">>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { AutoModerationRuleStructure, GuildMemberStructure, GuildStructure } from '../client';
|
|
1
2
|
import type { UsingClient } from '../commands';
|
|
2
3
|
import type { MethodContext, ObjectToLower } from '../common';
|
|
3
4
|
import type { APIAutoModerationRule, RESTPatchAPIAutoModerationRuleJSONBody, RESTPostAPIAutoModerationRuleJSONBody } from '../types';
|
|
@@ -6,18 +7,18 @@ export interface AutoModerationRule extends ObjectToLower<APIAutoModerationRule>
|
|
|
6
7
|
}
|
|
7
8
|
export declare class AutoModerationRule extends DiscordBase<APIAutoModerationRule> {
|
|
8
9
|
constructor(client: UsingClient, data: APIAutoModerationRule);
|
|
9
|
-
fetchCreator(force?: boolean): Promise<
|
|
10
|
-
guild(force?: boolean): Promise<
|
|
11
|
-
fetch(): Promise<
|
|
12
|
-
edit(body: RESTPatchAPIAutoModerationRuleJSONBody, reason?: string): Promise<
|
|
10
|
+
fetchCreator(force?: boolean): Promise<GuildMemberStructure>;
|
|
11
|
+
guild(force?: boolean): Promise<GuildStructure<'api'>>;
|
|
12
|
+
fetch(): Promise<AutoModerationRuleStructure>;
|
|
13
|
+
edit(body: RESTPatchAPIAutoModerationRuleJSONBody, reason?: string): Promise<AutoModerationRuleStructure>;
|
|
13
14
|
delete(reason?: string): Promise<never>;
|
|
14
15
|
static methods({ client, guildId }: MethodContext<{
|
|
15
16
|
guildId: string;
|
|
16
17
|
}>): {
|
|
17
|
-
list: () => Promise<
|
|
18
|
-
create: (body: RESTPostAPIAutoModerationRuleJSONBody) => Promise<
|
|
18
|
+
list: () => Promise<AutoModerationRuleStructure[]>;
|
|
19
|
+
create: (body: RESTPostAPIAutoModerationRuleJSONBody) => Promise<AutoModerationRuleStructure>;
|
|
19
20
|
delete: (ruleId: string, reason?: string) => Promise<never>;
|
|
20
|
-
fetch: (ruleId: string) => Promise<
|
|
21
|
-
edit: (ruleId: string, body: RESTPatchAPIAutoModerationRuleJSONBody, reason?: string) => Promise<
|
|
21
|
+
fetch: (ruleId: string) => Promise<AutoModerationRuleStructure>;
|
|
22
|
+
edit: (ruleId: string, body: RESTPatchAPIAutoModerationRuleJSONBody, reason?: string) => Promise<AutoModerationRuleStructure>;
|
|
22
23
|
};
|
|
23
24
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ClientUserStructure } from '../client';
|
|
1
2
|
import type { UsingClient } from '../commands';
|
|
2
3
|
import type { GatewayReadyDispatchData, RESTPatchAPICurrentUserJSONBody } from '../types';
|
|
3
4
|
import { User } from './User';
|
|
@@ -5,6 +6,6 @@ export declare class ClientUser extends User {
|
|
|
5
6
|
application: GatewayReadyDispatchData['application'];
|
|
6
7
|
bot: boolean;
|
|
7
8
|
constructor(client: UsingClient, data: GatewayReadyDispatchData['user'], application: GatewayReadyDispatchData['application']);
|
|
8
|
-
fetch(): Promise<
|
|
9
|
-
edit(body: RESTPatchAPICurrentUserJSONBody): Promise<
|
|
9
|
+
fetch(): Promise<ClientUserStructure>;
|
|
10
|
+
edit(body: RESTPatchAPICurrentUserJSONBody): Promise<ClientUserStructure>;
|
|
10
11
|
}
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
+
import type { GuildMemberStructure } from '../client';
|
|
1
2
|
import type { UsingClient } from '../commands';
|
|
2
3
|
import type { ObjectToLower, StructPropState, StructStates, ToClass } from '../common/types/util';
|
|
3
4
|
import type { APIGuild, APIPartialGuild, GatewayGuildCreateDispatchData, RESTPatchAPIGuildJSONBody } from '../types';
|
|
4
|
-
import { AutoModerationRule } from './AutoModerationRule';
|
|
5
|
-
import { GuildBan } from './GuildBan';
|
|
6
|
-
import { GuildEmoji } from './GuildEmoji';
|
|
7
5
|
import { GuildMember } from './GuildMember';
|
|
8
|
-
import { GuildRole } from './GuildRole';
|
|
9
|
-
import { GuildTemplate } from './GuildTemplate';
|
|
10
|
-
import { Sticker } from './Sticker';
|
|
11
6
|
import { BaseGuild } from './extra/BaseGuild';
|
|
12
7
|
import type { DiscordBase } from './extra/DiscordBase';
|
|
13
8
|
export interface Guild extends ObjectToLower<Omit<APIGuild, 'stickers' | 'emojis' | 'roles'>>, DiscordBase {
|
|
@@ -20,52 +15,52 @@ export declare class Guild<State extends StructStates = 'api'> extends Guild_bas
|
|
|
20
15
|
unavailable?: StructPropState<boolean, State, 'create'>;
|
|
21
16
|
constructor(client: UsingClient, data: APIGuild | GatewayGuildCreateDispatchData);
|
|
22
17
|
webhooks: {
|
|
23
|
-
list: () => Promise<import("
|
|
18
|
+
list: () => Promise<import("../client").WebhookStructure[]>;
|
|
24
19
|
};
|
|
25
20
|
get maxStickers(): MaxStickers;
|
|
26
21
|
get maxEmojis(): MaxEmojis;
|
|
27
|
-
fetchOwner(force?: boolean): Promise<
|
|
22
|
+
fetchOwner(force?: boolean): Promise<GuildMemberStructure | null>;
|
|
28
23
|
templates: {
|
|
29
|
-
fetch: (code: string) => Promise<
|
|
30
|
-
list: () => Promise<
|
|
31
|
-
create: (body: import("../types").RESTPostAPIGuildTemplatesJSONBody) => Promise<
|
|
32
|
-
sync: (code: string) => Promise<
|
|
33
|
-
edit: (code: string, body: import("../types").RESTPatchAPIGuildTemplateJSONBody) => Promise<
|
|
34
|
-
delete: (code: string) => Promise<
|
|
24
|
+
fetch: (code: string) => Promise<import("../client").GuildTemplateStructure>;
|
|
25
|
+
list: () => Promise<import("../client").GuildTemplateStructure[]>;
|
|
26
|
+
create: (body: import("../types").RESTPostAPIGuildTemplatesJSONBody) => Promise<import("../client").GuildTemplateStructure>;
|
|
27
|
+
sync: (code: string) => Promise<import("../client").GuildTemplateStructure>;
|
|
28
|
+
edit: (code: string, body: import("../types").RESTPatchAPIGuildTemplateJSONBody) => Promise<import("../client").GuildTemplateStructure>;
|
|
29
|
+
delete: (code: string) => Promise<import("../client").GuildTemplateStructure>;
|
|
35
30
|
};
|
|
36
31
|
stickers: {
|
|
37
|
-
list: () => Promise<
|
|
38
|
-
create: (payload: import("./Sticker").CreateStickerBodyRequest, reason?: string) => Promise<
|
|
39
|
-
edit: (stickerId: string, body: import("../types").RESTPatchAPIGuildStickerJSONBody, reason?: string) => Promise<
|
|
40
|
-
fetch: (stickerId: string, force?: boolean) => Promise<
|
|
32
|
+
list: () => Promise<import("../client").StickerStructure[]>;
|
|
33
|
+
create: (payload: import("./Sticker").CreateStickerBodyRequest, reason?: string) => Promise<import("../client").StickerStructure>;
|
|
34
|
+
edit: (stickerId: string, body: import("../types").RESTPatchAPIGuildStickerJSONBody, reason?: string) => Promise<import("../client").StickerStructure>;
|
|
35
|
+
fetch: (stickerId: string, force?: boolean) => Promise<import("../client").StickerStructure>;
|
|
41
36
|
delete: (stickerId: string, reason?: string) => Promise<void>;
|
|
42
37
|
};
|
|
43
38
|
members: {
|
|
44
|
-
resolve: (resolve: import("../common").GuildMemberResolvable) => Promise<
|
|
45
|
-
search: (query?: import("../types").RESTGetAPIGuildMembersSearchQuery) => Promise<
|
|
39
|
+
resolve: (resolve: import("../common").GuildMemberResolvable) => Promise<GuildMemberStructure | undefined>;
|
|
40
|
+
search: (query?: import("../types").RESTGetAPIGuildMembersSearchQuery) => Promise<GuildMemberStructure[]>;
|
|
46
41
|
unban: (id: string, reason?: string) => Promise<never>;
|
|
47
42
|
ban: (id: string, body?: import("../types").RESTPutAPIGuildBanJSONBody, reason?: string) => Promise<void>;
|
|
48
43
|
kick: (id: string, reason?: string) => Promise<void>;
|
|
49
44
|
edit: (id: string, body: import("../types").RESTPatchAPIGuildMemberJSONBody, reason?: string) => Promise<GuildMember>;
|
|
50
|
-
add: (id: string, body: import("../types").RESTPutAPIGuildMemberJSONBody) => Promise<
|
|
45
|
+
add: (id: string, body: import("../types").RESTPutAPIGuildMemberJSONBody) => Promise<GuildMemberStructure | undefined>;
|
|
51
46
|
addRole: (memberId: string, id: string) => Promise<never>;
|
|
52
47
|
removeRole: (memberId: string, id: string) => Promise<never>;
|
|
53
|
-
fetch: (memberId: string, force?: boolean) => Promise<
|
|
54
|
-
list: (query?: import("../types").RESTGetAPIGuildMembersQuery, force?: boolean) => Promise<
|
|
48
|
+
fetch: (memberId: string, force?: boolean) => Promise<GuildMemberStructure>;
|
|
49
|
+
list: (query?: import("../types").RESTGetAPIGuildMembersQuery, force?: boolean) => Promise<GuildMemberStructure[]>;
|
|
55
50
|
};
|
|
56
51
|
moderationRules: {
|
|
57
|
-
list: () => Promise<
|
|
58
|
-
create: (body: import("../types").RESTPostAPIAutoModerationRuleJSONBody) => Promise<
|
|
52
|
+
list: () => Promise<import("../client").AutoModerationRuleStructure[]>;
|
|
53
|
+
create: (body: import("../types").RESTPostAPIAutoModerationRuleJSONBody) => Promise<import("../client").AutoModerationRuleStructure>;
|
|
59
54
|
delete: (ruleId: string, reason?: string) => Promise<never>;
|
|
60
|
-
fetch: (ruleId: string) => Promise<
|
|
61
|
-
edit: (ruleId: string, body: import("../types").RESTPatchAPIAutoModerationRuleJSONBody, reason?: string) => Promise<
|
|
55
|
+
fetch: (ruleId: string) => Promise<import("../client").AutoModerationRuleStructure>;
|
|
56
|
+
edit: (ruleId: string, body: import("../types").RESTPatchAPIAutoModerationRuleJSONBody, reason?: string) => Promise<import("../client").AutoModerationRuleStructure>;
|
|
62
57
|
};
|
|
63
58
|
roles: {
|
|
64
|
-
create: (body: import("../types").RESTPostAPIGuildRoleJSONBody) => Promise<
|
|
65
|
-
list: (force?: boolean) => Promise<
|
|
66
|
-
edit: (roleId: string, body: import("../types").RESTPatchAPIGuildRoleJSONBody, reason?: string) => Promise<
|
|
67
|
-
delete: (roleId: string, reason?: string) => Promise<
|
|
68
|
-
editPositions: (body: import("../types").RESTPatchAPIGuildRolePositionsJSONBody) => Promise<
|
|
59
|
+
create: (body: import("../types").RESTPostAPIGuildRoleJSONBody) => Promise<import("../client").GuildRoleStructure>;
|
|
60
|
+
list: (force?: boolean) => Promise<import("../client").GuildRoleStructure[]>;
|
|
61
|
+
edit: (roleId: string, body: import("../types").RESTPatchAPIGuildRoleJSONBody, reason?: string) => Promise<import("../client").GuildRoleStructure>;
|
|
62
|
+
delete: (roleId: string, reason?: string) => Promise<import("../client").GuildRoleStructure>;
|
|
63
|
+
editPositions: (body: import("../types").RESTPatchAPIGuildRolePositionsJSONBody) => Promise<import("../client").GuildRoleStructure[]>;
|
|
69
64
|
};
|
|
70
65
|
channels: {
|
|
71
66
|
list: (force?: boolean) => Promise<import("./channels").AllChannels[]>;
|
|
@@ -76,14 +71,14 @@ export declare class Guild<State extends StructStates = 'api'> extends Guild_bas
|
|
|
76
71
|
editPositions: (body: import("../types").RESTPatchAPIGuildChannelPositionsJSONBody) => Promise<never>;
|
|
77
72
|
};
|
|
78
73
|
emojis: {
|
|
79
|
-
edit: (emojiId: string, body: import("../types").RESTPatchAPIGuildEmojiJSONBody, reason?: string) => Promise<
|
|
80
|
-
create: (body: Parameters<import("../common").EmojiShorter["create"]>[1]) => Promise<
|
|
81
|
-
fetch: (emojiId: string, force?: boolean) => Promise<
|
|
82
|
-
list: (force?: boolean) => Promise<
|
|
74
|
+
edit: (emojiId: string, body: import("../types").RESTPatchAPIGuildEmojiJSONBody, reason?: string) => Promise<import("../client").GuildEmojiStructure>;
|
|
75
|
+
create: (body: Parameters<import("../common").EmojiShorter["create"]>[1]) => Promise<import("../client").GuildEmojiStructure>;
|
|
76
|
+
fetch: (emojiId: string, force?: boolean) => Promise<import("../client").GuildEmojiStructure>;
|
|
77
|
+
list: (force?: boolean) => Promise<import("../client").GuildEmojiStructure[]>;
|
|
83
78
|
};
|
|
84
79
|
bans: {
|
|
85
|
-
fetch: (userId: string, force?: boolean) => Promise<
|
|
86
|
-
list: (query?: import("../types").RESTGetAPIGuildBansQuery, force?: boolean) => Promise<
|
|
80
|
+
fetch: (userId: string, force?: boolean) => Promise<import("../client").GuildBanStructure>;
|
|
81
|
+
list: (query?: import("../types").RESTGetAPIGuildBansQuery, force?: boolean) => Promise<import("../client").GuildBanStructure[]>;
|
|
87
82
|
create: (memberId: string, body?: Parameters<import("../common/shorters/bans").BanShorter["create"]>[2], reason?: string) => Promise<void>;
|
|
88
83
|
remove: (memberId: string, reason?: string) => Promise<never>;
|
|
89
84
|
bulkCreate: (body: Parameters<import("../common/shorters/bans").BanShorter["bulkCreate"]>[1], reason?: string) => Promise<import("../types").RESTPostAPIGuildBulkBanResult>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { GuildBanStructure, GuildStructure } from '../client';
|
|
1
2
|
import type { UsingClient } from '../commands';
|
|
2
3
|
import { type MethodContext, type ObjectToLower } from '../common';
|
|
3
4
|
import type { BanShorter } from '../common/shorters/bans';
|
|
@@ -10,14 +11,14 @@ export declare class GuildBan extends DiscordBase {
|
|
|
10
11
|
constructor(client: UsingClient, data: APIBan, guildId: string);
|
|
11
12
|
create(body?: Parameters<BanShorter['create']>[2], reason?: string): Promise<void>;
|
|
12
13
|
remove(reason?: string): Promise<never>;
|
|
13
|
-
guild(force?: boolean): Promise<
|
|
14
|
-
fetch(force?: boolean): Promise<
|
|
14
|
+
guild(force?: boolean): Promise<GuildStructure<'api'>>;
|
|
15
|
+
fetch(force?: boolean): Promise<GuildBanStructure>;
|
|
15
16
|
toString(): `<@${string}>`;
|
|
16
17
|
static methods({ client, guildId }: MethodContext<{
|
|
17
18
|
guildId: string;
|
|
18
19
|
}>): {
|
|
19
|
-
fetch: (userId: string, force?: boolean) => Promise<
|
|
20
|
-
list: (query?: RESTGetAPIGuildBansQuery, force?: boolean) => Promise<
|
|
20
|
+
fetch: (userId: string, force?: boolean) => Promise<GuildBanStructure>;
|
|
21
|
+
list: (query?: RESTGetAPIGuildBansQuery, force?: boolean) => Promise<GuildBanStructure[]>;
|
|
21
22
|
create: (memberId: string, body?: Parameters<BanShorter["create"]>[2], reason?: string) => Promise<void>;
|
|
22
23
|
remove: (memberId: string, reason?: string) => Promise<never>;
|
|
23
24
|
bulkCreate: (body: Parameters<BanShorter["bulkCreate"]>[1], reason?: string) => Promise<import("../types").RESTPostAPIGuildBulkBanResult>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { BaseCDNUrlOptions } from '../api';
|
|
2
|
+
import type { GuildEmojiStructure, GuildStructure } from '../client';
|
|
2
3
|
import type { UsingClient } from '../commands';
|
|
3
4
|
import { type EmojiShorter, type MethodContext, type ObjectToLower } from '../common';
|
|
4
5
|
import type { APIEmoji, RESTPatchAPIChannelJSONBody, RESTPatchAPIGuildEmojiJSONBody } from '../types';
|
|
@@ -8,10 +9,10 @@ export interface GuildEmoji extends DiscordBase, ObjectToLower<Omit<APIEmoji, 'i
|
|
|
8
9
|
export declare class GuildEmoji extends DiscordBase {
|
|
9
10
|
readonly guildId: string;
|
|
10
11
|
constructor(client: UsingClient, data: APIEmoji, guildId: string);
|
|
11
|
-
guild(force?: boolean): Promise<
|
|
12
|
-
edit(body: RESTPatchAPIChannelJSONBody, reason?: string): Promise<
|
|
12
|
+
guild(force?: boolean): Promise<GuildStructure<'api'> | undefined>;
|
|
13
|
+
edit(body: RESTPatchAPIChannelJSONBody, reason?: string): Promise<GuildEmojiStructure>;
|
|
13
14
|
delete(reason?: string): Promise<void>;
|
|
14
|
-
fetch(force?: boolean): Promise<
|
|
15
|
+
fetch(force?: boolean): Promise<GuildEmojiStructure>;
|
|
15
16
|
url(options?: BaseCDNUrlOptions): string;
|
|
16
17
|
toString(): string;
|
|
17
18
|
toJSON(): {
|
|
@@ -22,9 +23,9 @@ export declare class GuildEmoji extends DiscordBase {
|
|
|
22
23
|
static methods({ client, guildId }: MethodContext<{
|
|
23
24
|
guildId: string;
|
|
24
25
|
}>): {
|
|
25
|
-
edit: (emojiId: string, body: RESTPatchAPIGuildEmojiJSONBody, reason?: string) => Promise<
|
|
26
|
-
create: (body: Parameters<EmojiShorter["create"]>[1]) => Promise<
|
|
27
|
-
fetch: (emojiId: string, force?: boolean) => Promise<
|
|
28
|
-
list: (force?: boolean) => Promise<
|
|
26
|
+
edit: (emojiId: string, body: RESTPatchAPIGuildEmojiJSONBody, reason?: string) => Promise<GuildEmojiStructure>;
|
|
27
|
+
create: (body: Parameters<EmojiShorter["create"]>[1]) => Promise<GuildEmojiStructure>;
|
|
28
|
+
fetch: (emojiId: string, force?: boolean) => Promise<GuildEmojiStructure>;
|
|
29
|
+
list: (force?: boolean) => Promise<GuildEmojiStructure[]>;
|
|
29
30
|
};
|
|
30
31
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { DiscordBase } from './extra/DiscordBase';
|
|
2
2
|
export type GuildMemberData = APIGuildMember | Omit<APIGuildMember, 'user'> | GatewayGuildMemberUpdateDispatchData | GatewayGuildMemberAddDispatchData | APIInteractionDataResolvedGuildMember;
|
|
3
|
-
import { type UserStructure } from '../client/transformers';
|
|
3
|
+
import { type DMChannelStructure, type GuildMemberStructure, type GuildStructure, type MessageStructure, type UserStructure, type VoiceStateStructure } from '../client/transformers';
|
|
4
4
|
import type { UsingClient } from '../commands';
|
|
5
5
|
import { type GuildMemberResolvable, type ImageOptions, type MessageCreateBodyRequest, type MethodContext, type ObjectToLower, type ToClass } from '../common';
|
|
6
6
|
import type { APIGuildMember, APIInteractionDataResolvedGuildMember, APIUser, GatewayGuildMemberAddDispatchData, GatewayGuildMemberUpdateDispatchData, RESTGetAPIGuildMembersQuery, RESTGetAPIGuildMembersSearchQuery, RESTPatchAPIGuildMemberJSONBody, RESTPutAPIGuildBanJSONBody, RESTPutAPIGuildMemberJSONBody } from '../types';
|
|
7
|
+
import type { GuildRole } from './GuildRole';
|
|
7
8
|
import { PermissionsBitField } from './extra/Permissions';
|
|
8
9
|
export interface BaseGuildMember extends DiscordBase, ObjectToLower<Omit<APIGuildMember, 'user' | 'roles'>> {
|
|
9
10
|
}
|
|
@@ -16,45 +17,45 @@ export declare class BaseGuildMember extends DiscordBase {
|
|
|
16
17
|
constructor(client: UsingClient, data: GuildMemberData, id: string,
|
|
17
18
|
/** the choosen guild id */
|
|
18
19
|
guildId: string);
|
|
19
|
-
guild(force?: boolean): Promise<
|
|
20
|
-
fetch(force?: boolean): Promise<
|
|
20
|
+
guild(force?: boolean): Promise<GuildStructure<'api'>>;
|
|
21
|
+
fetch(force?: boolean): Promise<GuildMemberStructure>;
|
|
21
22
|
ban(body?: RESTPutAPIGuildBanJSONBody, reason?: string): Promise<void>;
|
|
22
23
|
kick(reason?: string): Promise<void>;
|
|
23
|
-
edit(body: RESTPatchAPIGuildMemberJSONBody, reason?: string): Promise<
|
|
24
|
+
edit(body: RESTPatchAPIGuildMemberJSONBody, reason?: string): Promise<GuildMemberStructure>;
|
|
24
25
|
presence(): import("..").ReturnCache<(Omit<import("../types").GatewayPresenceUpdate, "user"> & {
|
|
25
26
|
id: string;
|
|
26
27
|
user_id: string;
|
|
27
28
|
} & {
|
|
28
29
|
guild_id: string;
|
|
29
30
|
}) | undefined>;
|
|
30
|
-
voice(force?: boolean): Promise<
|
|
31
|
+
voice(force?: boolean): Promise<VoiceStateStructure>;
|
|
31
32
|
toString(): `<@${string}>`;
|
|
32
|
-
timeout(time: null | number, reason?: string): Promise<
|
|
33
|
+
timeout(time: null | number, reason?: string): Promise<GuildMemberStructure>;
|
|
33
34
|
get hasTimeout(): false | number;
|
|
34
35
|
private patch;
|
|
35
36
|
get roles(): {
|
|
36
37
|
keys: string[];
|
|
37
|
-
list: (force?: boolean) => Promise<
|
|
38
|
+
list: (force?: boolean) => Promise<GuildRole[]>;
|
|
38
39
|
add: (id: string) => Promise<never>;
|
|
39
40
|
remove: (id: string) => Promise<never>;
|
|
40
41
|
permissions: (force?: boolean) => Promise<PermissionsBitField>;
|
|
41
|
-
sorted: (force?: boolean) => Promise<
|
|
42
|
-
highest: (force?: boolean) => Promise<
|
|
42
|
+
sorted: (force?: boolean) => Promise<GuildRole[]>;
|
|
43
|
+
highest: (force?: boolean) => Promise<GuildRole>;
|
|
43
44
|
};
|
|
44
45
|
static methods({ client, guildId }: MethodContext<{
|
|
45
46
|
guildId: string;
|
|
46
47
|
}>): {
|
|
47
|
-
resolve: (resolve: GuildMemberResolvable) => Promise<
|
|
48
|
-
search: (query?: RESTGetAPIGuildMembersSearchQuery) => Promise<
|
|
48
|
+
resolve: (resolve: GuildMemberResolvable) => Promise<GuildMemberStructure | undefined>;
|
|
49
|
+
search: (query?: RESTGetAPIGuildMembersSearchQuery) => Promise<GuildMemberStructure[]>;
|
|
49
50
|
unban: (id: string, reason?: string) => Promise<never>;
|
|
50
51
|
ban: (id: string, body?: RESTPutAPIGuildBanJSONBody, reason?: string) => Promise<void>;
|
|
51
52
|
kick: (id: string, reason?: string) => Promise<void>;
|
|
52
53
|
edit: (id: string, body: RESTPatchAPIGuildMemberJSONBody, reason?: string) => Promise<GuildMember>;
|
|
53
|
-
add: (id: string, body: RESTPutAPIGuildMemberJSONBody) => Promise<
|
|
54
|
+
add: (id: string, body: RESTPutAPIGuildMemberJSONBody) => Promise<GuildMemberStructure | undefined>;
|
|
54
55
|
addRole: (memberId: string, id: string) => Promise<never>;
|
|
55
56
|
removeRole: (memberId: string, id: string) => Promise<never>;
|
|
56
|
-
fetch: (memberId: string, force?: boolean) => Promise<
|
|
57
|
-
list: (query?: RESTGetAPIGuildMembersQuery, force?: boolean) => Promise<
|
|
57
|
+
fetch: (memberId: string, force?: boolean) => Promise<GuildMemberStructure>;
|
|
58
|
+
list: (query?: RESTGetAPIGuildMembersQuery, force?: boolean) => Promise<GuildMemberStructure[]>;
|
|
58
59
|
};
|
|
59
60
|
}
|
|
60
61
|
export interface GuildMember extends ObjectToLower<Omit<APIGuildMember, 'user' | 'roles'>> {
|
|
@@ -78,8 +79,8 @@ export declare class GuildMember extends BaseGuildMember {
|
|
|
78
79
|
get globalName(): string | null;
|
|
79
80
|
/** gets the nickname or the username */
|
|
80
81
|
get displayName(): string;
|
|
81
|
-
dm(force?: boolean): Promise<
|
|
82
|
-
write(body: MessageCreateBodyRequest): Promise<
|
|
82
|
+
dm(force?: boolean): Promise<DMChannelStructure>;
|
|
83
|
+
write(body: MessageCreateBodyRequest): Promise<MessageStructure>;
|
|
83
84
|
defaultAvatarURL(): string;
|
|
84
85
|
avatarURL(options: ImageOptions & {
|
|
85
86
|
exclude: true;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { GuildRoleStructure, GuildStructure } from '../client';
|
|
1
2
|
import type { UsingClient } from '../commands';
|
|
2
3
|
import { type MethodContext, type ObjectToLower } from '../common';
|
|
3
4
|
import type { APIRole, RESTPatchAPIGuildRoleJSONBody, RESTPatchAPIGuildRolePositionsJSONBody, RESTPostAPIGuildRoleJSONBody } from '../types';
|
|
@@ -9,18 +10,18 @@ export declare class GuildRole extends DiscordBase {
|
|
|
9
10
|
readonly guildId: string;
|
|
10
11
|
permissions: PermissionsBitField;
|
|
11
12
|
constructor(client: UsingClient, data: APIRole, guildId: string);
|
|
12
|
-
guild(force?: boolean): Promise<
|
|
13
|
-
fetch(force?: boolean): Promise<
|
|
14
|
-
edit(body: RESTPatchAPIGuildRoleJSONBody): Promise<
|
|
15
|
-
delete(reason?: string): Promise<
|
|
13
|
+
guild(force?: boolean): Promise<GuildStructure<'api'> | undefined>;
|
|
14
|
+
fetch(force?: boolean): Promise<GuildRoleStructure>;
|
|
15
|
+
edit(body: RESTPatchAPIGuildRoleJSONBody): Promise<GuildRoleStructure>;
|
|
16
|
+
delete(reason?: string): Promise<GuildRoleStructure>;
|
|
16
17
|
toString(): `<@&${string}>`;
|
|
17
18
|
static methods(ctx: MethodContext<{
|
|
18
19
|
guildId: string;
|
|
19
20
|
}>): {
|
|
20
|
-
create: (body: RESTPostAPIGuildRoleJSONBody) => Promise<
|
|
21
|
-
list: (force?: boolean) => Promise<
|
|
22
|
-
edit: (roleId: string, body: RESTPatchAPIGuildRoleJSONBody, reason?: string) => Promise<
|
|
23
|
-
delete: (roleId: string, reason?: string) => Promise<
|
|
24
|
-
editPositions: (body: RESTPatchAPIGuildRolePositionsJSONBody) => Promise<
|
|
21
|
+
create: (body: RESTPostAPIGuildRoleJSONBody) => Promise<GuildRoleStructure>;
|
|
22
|
+
list: (force?: boolean) => Promise<GuildRoleStructure[]>;
|
|
23
|
+
edit: (roleId: string, body: RESTPatchAPIGuildRoleJSONBody, reason?: string) => Promise<GuildRoleStructure>;
|
|
24
|
+
delete: (roleId: string, reason?: string) => Promise<GuildRoleStructure>;
|
|
25
|
+
editPositions: (body: RESTPatchAPIGuildRolePositionsJSONBody) => Promise<GuildRoleStructure[]>;
|
|
25
26
|
};
|
|
26
27
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { GuildStructure, GuildTemplateStructure } from '../client';
|
|
1
2
|
import type { UsingClient } from '../commands';
|
|
2
3
|
import type { MethodContext, ObjectToLower } from '../common';
|
|
3
4
|
import type { APITemplate, RESTPatchAPIGuildTemplateJSONBody, RESTPostAPIGuildTemplatesJSONBody } from '../types';
|
|
@@ -6,19 +7,19 @@ export interface GuildTemplate extends Base, ObjectToLower<APITemplate> {
|
|
|
6
7
|
}
|
|
7
8
|
export declare class GuildTemplate extends Base {
|
|
8
9
|
constructor(client: UsingClient, data: APITemplate);
|
|
9
|
-
guild(force?: boolean): Promise<
|
|
10
|
-
fetch(): Promise<
|
|
11
|
-
sync(): Promise<
|
|
12
|
-
edit(body: RESTPatchAPIGuildTemplateJSONBody): Promise<
|
|
13
|
-
delete(): Promise<
|
|
10
|
+
guild(force?: boolean): Promise<GuildStructure<'api'>>;
|
|
11
|
+
fetch(): Promise<GuildTemplateStructure>;
|
|
12
|
+
sync(): Promise<GuildTemplateStructure>;
|
|
13
|
+
edit(body: RESTPatchAPIGuildTemplateJSONBody): Promise<GuildTemplateStructure>;
|
|
14
|
+
delete(): Promise<GuildTemplateStructure>;
|
|
14
15
|
static methods(ctx: MethodContext<{
|
|
15
16
|
guildId: string;
|
|
16
17
|
}>): {
|
|
17
|
-
fetch: (code: string) => Promise<
|
|
18
|
-
list: () => Promise<
|
|
19
|
-
create: (body: RESTPostAPIGuildTemplatesJSONBody) => Promise<
|
|
20
|
-
sync: (code: string) => Promise<
|
|
21
|
-
edit: (code: string, body: RESTPatchAPIGuildTemplateJSONBody) => Promise<
|
|
22
|
-
delete: (code: string) => Promise<
|
|
18
|
+
fetch: (code: string) => Promise<GuildTemplateStructure>;
|
|
19
|
+
list: () => Promise<GuildTemplateStructure[]>;
|
|
20
|
+
create: (body: RESTPostAPIGuildTemplatesJSONBody) => Promise<GuildTemplateStructure>;
|
|
21
|
+
sync: (code: string) => Promise<GuildTemplateStructure>;
|
|
22
|
+
edit: (code: string, body: RESTPatchAPIGuildTemplateJSONBody) => Promise<GuildTemplateStructure>;
|
|
23
|
+
delete: (code: string) => Promise<GuildTemplateStructure>;
|
|
23
24
|
};
|
|
24
25
|
}
|