seyfert 3.1.3-dev-14731172206.0 → 3.1.3-dev-14848708518.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/builders/Section.d.ts +1 -1
- package/lib/builders/Section.js +2 -0
- package/lib/common/shorters/application.d.ts +1 -1
- package/lib/common/shorters/bans.d.ts +1 -1
- package/lib/common/shorters/channels.d.ts +2 -2
- package/lib/common/shorters/guilds.d.ts +2 -2
- package/lib/common/shorters/interaction.js +2 -2
- package/lib/common/shorters/members.d.ts +3 -3
- package/lib/common/shorters/threads.d.ts +4 -4
- package/lib/common/shorters/voiceStates.d.ts +2 -2
- package/lib/common/shorters/webhook.d.ts +2 -2
- package/lib/structures/AutoModerationRule.d.ts +2 -2
- package/lib/structures/Emoji.d.ts +1 -1
- package/lib/structures/Guild.d.ts +6 -6
- package/lib/structures/GuildBan.d.ts +2 -2
- package/lib/structures/GuildMember.d.ts +5 -5
- package/lib/structures/Message.d.ts +1 -1
- package/lib/structures/Webhook.d.ts +3 -3
- package/lib/structures/channels.d.ts +5 -5
- package/lib/types/rest/application.d.ts +1 -1
- package/lib/types/rest/autoModeration.d.ts +1 -1
- package/lib/types/rest/channel.d.ts +14 -14
- package/lib/types/rest/emoji.d.ts +1 -1
- package/lib/types/rest/guild.d.ts +11 -11
- package/lib/types/rest/guildScheduledEvent.d.ts +1 -1
- package/lib/types/rest/monetization.d.ts +2 -2
- package/lib/types/rest/soundboard.d.ts +1 -1
- package/lib/types/rest/stageInstance.d.ts +1 -1
- package/lib/types/rest/sticker.d.ts +1 -1
- package/lib/types/rest/user.d.ts +1 -1
- package/lib/types/rest/webhook.d.ts +6 -6
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ import type { TextDisplay } from './TextDisplay';
|
|
|
6
6
|
import type { Thumbnail } from './Thumbnail';
|
|
7
7
|
export declare class Section<Ac extends Button | Thumbnail = Button | Thumbnail> extends BaseComponentBuilder<APISectionComponent> {
|
|
8
8
|
components: TextDisplay[];
|
|
9
|
-
accessory
|
|
9
|
+
accessory?: Ac;
|
|
10
10
|
constructor({ components, accessory, ...data }?: Partial<APISectionComponent>);
|
|
11
11
|
/**
|
|
12
12
|
* Adds components to this section.
|
package/lib/builders/Section.js
CHANGED
|
@@ -40,6 +40,8 @@ class Section extends Base_1.BaseComponentBuilder {
|
|
|
40
40
|
* @returns The JSON representation of this section
|
|
41
41
|
*/
|
|
42
42
|
toJSON() {
|
|
43
|
+
if (!this.accessory)
|
|
44
|
+
throw new Error('Cannot convert to JSON without an accessory.');
|
|
43
45
|
return {
|
|
44
46
|
...this.data,
|
|
45
47
|
components: this.components.map(component => component.toJSON()),
|
|
@@ -32,7 +32,7 @@ export declare class ApplicationShorter extends BaseShorter {
|
|
|
32
32
|
* Deletes an emoji for the application.
|
|
33
33
|
* @param emojiId The ID of the emoji.
|
|
34
34
|
*/
|
|
35
|
-
deleteEmoji(emojiId: string): Promise<
|
|
35
|
+
deleteEmoji(emojiId: string): Promise<undefined>;
|
|
36
36
|
/**
|
|
37
37
|
* Lists the entitlements for the application.
|
|
38
38
|
* @param [query] The query parameters.
|
|
@@ -15,7 +15,7 @@ export declare class BanShorter extends BaseShorter {
|
|
|
15
15
|
* @param memberId The ID of the member to unban.
|
|
16
16
|
* @param reason The reason for unbanning the member.
|
|
17
17
|
*/
|
|
18
|
-
remove(guildId: string, memberId: string, reason?: string): Promise<
|
|
18
|
+
remove(guildId: string, memberId: string, reason?: string): Promise<undefined>;
|
|
19
19
|
/**
|
|
20
20
|
* Bans a member from the guild.
|
|
21
21
|
* @param guildId The ID of the guild.
|
|
@@ -41,7 +41,7 @@ export declare class ChannelShorter extends BaseShorter {
|
|
|
41
41
|
* @param reason The reason for pinning the message.
|
|
42
42
|
* @returns A Promise that resolves when the message is successfully pinned.
|
|
43
43
|
*/
|
|
44
|
-
setPin(messageId: string, channelId: string, reason?: string): Promise<
|
|
44
|
+
setPin(messageId: string, channelId: string, reason?: string): Promise<undefined>;
|
|
45
45
|
/**
|
|
46
46
|
* Unpins a message in the channel.
|
|
47
47
|
* @param messageId The ID of the message to unpin.
|
|
@@ -49,7 +49,7 @@ export declare class ChannelShorter extends BaseShorter {
|
|
|
49
49
|
* @param reason The reason for unpinning the message.
|
|
50
50
|
* @returns A Promise that resolves when the message is successfully unpinned.
|
|
51
51
|
*/
|
|
52
|
-
deletePin(messageId: string, channelId: string, reason?: string): Promise<
|
|
52
|
+
deletePin(messageId: string, channelId: string, reason?: string): Promise<undefined>;
|
|
53
53
|
/**
|
|
54
54
|
* Creates a new thread in the channel (only guild based channels).
|
|
55
55
|
* @param channelId The ID of the parent channel.
|
|
@@ -89,7 +89,7 @@ export declare class GuildShorter extends BaseShorter {
|
|
|
89
89
|
* @param guildId The ID of the guild.
|
|
90
90
|
* @param body The data containing the new positions of channels.
|
|
91
91
|
*/
|
|
92
|
-
editPositions: (guildId: string, body: RESTPatchAPIGuildChannelPositionsJSONBody) => Promise<
|
|
92
|
+
editPositions: (guildId: string, body: RESTPatchAPIGuildChannelPositionsJSONBody) => Promise<undefined>;
|
|
93
93
|
addFollower: (channelId: string, webhook_channel_id: string, reason?: string) => Promise<import("../../types").APIFollowedChannel>;
|
|
94
94
|
};
|
|
95
95
|
/**
|
|
@@ -116,7 +116,7 @@ export declare class GuildShorter extends BaseShorter {
|
|
|
116
116
|
* @param reason The reason for deleting the rule.
|
|
117
117
|
* @returns A Promise that resolves once the rule is deleted.
|
|
118
118
|
*/
|
|
119
|
-
delete: (guildId: string, ruleId: string, reason?: string) => Promise<
|
|
119
|
+
delete: (guildId: string, ruleId: string, reason?: string) => Promise<undefined>;
|
|
120
120
|
/**
|
|
121
121
|
* Fetches an auto-moderation rule by its ID.
|
|
122
122
|
* @param guildId The ID of the guild.
|
|
@@ -55,12 +55,12 @@ class InteractionShorter extends base_1.BaseShorter {
|
|
|
55
55
|
}
|
|
56
56
|
async followup(token, { files, ...body }) {
|
|
57
57
|
const parsedFiles = files ? await (0, __1.resolveFiles)(files) : undefined;
|
|
58
|
-
const apiMessage = await this.client.proxy
|
|
58
|
+
const apiMessage = (await this.client.proxy
|
|
59
59
|
.webhooks(this.client.applicationId)(token)
|
|
60
60
|
.post({
|
|
61
61
|
body: __1.BaseInteraction.transformBody(body, parsedFiles, this.client),
|
|
62
62
|
files: parsedFiles,
|
|
63
|
-
});
|
|
63
|
+
}));
|
|
64
64
|
return transformers_1.Transformers.WebhookMessage(this.client, apiMessage, this.client.applicationId, token);
|
|
65
65
|
}
|
|
66
66
|
}
|
|
@@ -24,7 +24,7 @@ export declare class MemberShorter extends BaseShorter {
|
|
|
24
24
|
* @param memberId The ID of the member to unban.
|
|
25
25
|
* @param reason The reason for unbanning the member.
|
|
26
26
|
*/
|
|
27
|
-
unban(guildId: string, memberId: string, reason?: string): Promise<
|
|
27
|
+
unban(guildId: string, memberId: string, reason?: string): Promise<undefined>;
|
|
28
28
|
/**
|
|
29
29
|
* Bans a member from the guild.
|
|
30
30
|
* @param guildId The ID of the guild.
|
|
@@ -80,14 +80,14 @@ export declare class MemberShorter extends BaseShorter {
|
|
|
80
80
|
* @param memberId The ID of the member to add the role to.
|
|
81
81
|
* @param id The ID of the role to add.
|
|
82
82
|
*/
|
|
83
|
-
addRole(guildId: string, memberId: string, id: string): Promise<
|
|
83
|
+
addRole(guildId: string, memberId: string, id: string): Promise<undefined>;
|
|
84
84
|
/**
|
|
85
85
|
* Removes a role from a guild member.
|
|
86
86
|
* @param guildId The ID of the guild.
|
|
87
87
|
* @param memberId The ID of the member to remove the role from.
|
|
88
88
|
* @param id The ID of the role to remove.
|
|
89
89
|
*/
|
|
90
|
-
removeRole(guildId: string, memberId: string, id: string): Promise<
|
|
90
|
+
removeRole(guildId: string, memberId: string, id: string): Promise<undefined>;
|
|
91
91
|
listRoles(guildId: string, memberId: string, force?: boolean): Promise<GuildRoleStructure[]>;
|
|
92
92
|
sortRoles(guildId: string, memberId: string, force?: boolean): Promise<GuildRoleStructure[]>;
|
|
93
93
|
permissions(guildId: string, memberId: string, force?: boolean): Promise<PermissionsBitField>;
|
|
@@ -13,13 +13,13 @@ export declare class ThreadShorter extends BaseShorter {
|
|
|
13
13
|
fromMessage(channelId: string, messageId: string, options: RESTPostAPIChannelMessagesThreadsJSONBody & {
|
|
14
14
|
reason?: string;
|
|
15
15
|
}): Promise<ThreadChannelStructure>;
|
|
16
|
-
join(threadId: string): Promise<
|
|
17
|
-
leave(threadId: string): Promise<
|
|
16
|
+
join(threadId: string): Promise<undefined>;
|
|
17
|
+
leave(threadId: string): Promise<undefined>;
|
|
18
18
|
lock(threadId: string, locked?: boolean, reason?: string): Promise<ThreadChannelStructure>;
|
|
19
19
|
edit(threadId: string, body: RESTPatchAPIChannelJSONBody, reason?: string): Promise<ThreadChannelStructure>;
|
|
20
|
-
removeMember(threadId: string, memberId: string): Promise<
|
|
20
|
+
removeMember(threadId: string, memberId: string): Promise<undefined>;
|
|
21
21
|
fetchMember<WithMember extends boolean = false>(threadId: string, memberId: string, with_member: WithMember): Promise<When<WithMember, Required<APIThreadMember>, GetAPIChannelThreadMemberResult>>;
|
|
22
|
-
addMember(threadId: string, memberId: string): Promise<
|
|
22
|
+
addMember(threadId: string, memberId: string): Promise<undefined>;
|
|
23
23
|
listMembers<T extends RESTGetAPIChannelThreadMembersQuery = RESTGetAPIChannelThreadMembersQuery>(threadId: string, query?: T): Promise<InferWithMemberOnList<T>>;
|
|
24
24
|
listArchivedThreads(channelId: string, type: 'public' | 'private', query?: RESTGetAPIChannelThreadsArchivedQuery): Promise<{
|
|
25
25
|
threads: ThreadChannelStructure[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseShorter } from './base';
|
|
2
2
|
export declare class VoiceStateShorter extends BaseShorter {
|
|
3
|
-
requestSpeak(guildId: string, date: string): Promise<
|
|
4
|
-
setSuppress(guildId: string, suppress: boolean): Promise<
|
|
3
|
+
requestSpeak(guildId: string, date: string): Promise<undefined>;
|
|
4
|
+
setSuppress(guildId: string, suppress: boolean): Promise<undefined>;
|
|
5
5
|
}
|
|
@@ -10,7 +10,7 @@ export declare class WebhookShorter extends BaseShorter {
|
|
|
10
10
|
* @param options The optional parameters including token and reason.
|
|
11
11
|
* @returns A Promise that resolves when the webhook is deleted.
|
|
12
12
|
*/
|
|
13
|
-
delete(webhookId: string, options: WebhookShorterOptionalParams): Promise<
|
|
13
|
+
delete(webhookId: string, options: WebhookShorterOptionalParams): Promise<undefined>;
|
|
14
14
|
/**
|
|
15
15
|
* Edits a webhook.
|
|
16
16
|
* @param webhookId The ID of the webhook.
|
|
@@ -51,7 +51,7 @@ export declare class WebhookShorter extends BaseShorter {
|
|
|
51
51
|
* @param reason The reason for deleting the message.
|
|
52
52
|
* @returns A Promise that resolves when the message is deleted.
|
|
53
53
|
*/
|
|
54
|
-
deleteMessage(webhookId: string, token: string, messageId: string, reason?: string): Promise<
|
|
54
|
+
deleteMessage(webhookId: string, token: string, messageId: string, reason?: string): Promise<undefined>;
|
|
55
55
|
/**
|
|
56
56
|
* Fetches a message sent by the webhook.
|
|
57
57
|
* @param webhookId The ID of the webhook.
|
|
@@ -13,13 +13,13 @@ export declare class AutoModerationRule extends DiscordBase<APIAutoModerationRul
|
|
|
13
13
|
guild(mode: 'cache'): ReturnCache<GuildStructure<'cached'> | undefined>;
|
|
14
14
|
fetch(): Promise<AutoModerationRuleStructure>;
|
|
15
15
|
edit(body: RESTPatchAPIAutoModerationRuleJSONBody, reason?: string): Promise<AutoModerationRuleStructure>;
|
|
16
|
-
delete(reason?: string): Promise<
|
|
16
|
+
delete(reason?: string): Promise<undefined>;
|
|
17
17
|
static methods({ client, guildId }: MethodContext<{
|
|
18
18
|
guildId: string;
|
|
19
19
|
}>): {
|
|
20
20
|
list: () => Promise<AutoModerationRuleStructure[]>;
|
|
21
21
|
create: (body: RESTPostAPIAutoModerationRuleJSONBody) => Promise<AutoModerationRuleStructure>;
|
|
22
|
-
delete: (ruleId: string, reason?: string) => Promise<
|
|
22
|
+
delete: (ruleId: string, reason?: string) => Promise<undefined>;
|
|
23
23
|
fetch: (ruleId: string) => Promise<AutoModerationRuleStructure>;
|
|
24
24
|
edit: (ruleId: string, body: RESTPatchAPIAutoModerationRuleJSONBody, reason?: string) => Promise<AutoModerationRuleStructure>;
|
|
25
25
|
};
|
|
@@ -41,5 +41,5 @@ export declare class ApplicationEmoji extends Emoji<true> {
|
|
|
41
41
|
constructor(client: UsingClient, data: APIApplicationEmoji);
|
|
42
42
|
fetch(): Promise<ApplicationEmojiStructure>;
|
|
43
43
|
edit(body: RESTPatchAPIApplicationEmojiJSONBody): Promise<ApplicationEmojiStructure>;
|
|
44
|
-
delete(): Promise<
|
|
44
|
+
delete(): Promise<undefined>;
|
|
45
45
|
}
|
|
@@ -38,20 +38,20 @@ export declare class Guild<State extends StructStates = 'api'> extends Guild_bas
|
|
|
38
38
|
members: {
|
|
39
39
|
resolve: (resolve: import("../common").GuildMemberResolvable) => Promise<GuildMemberStructure | undefined>;
|
|
40
40
|
search: (query?: import("../types").RESTGetAPIGuildMembersSearchQuery) => Promise<GuildMemberStructure[]>;
|
|
41
|
-
unban: (id: string, reason?: string) => Promise<
|
|
41
|
+
unban: (id: string, reason?: string) => Promise<undefined>;
|
|
42
42
|
ban: (id: string, body?: import("../types").RESTPutAPIGuildBanJSONBody, reason?: string) => Promise<void>;
|
|
43
43
|
kick: (id: string, reason?: string) => Promise<void>;
|
|
44
44
|
edit: (id: string, body: import("../types").RESTPatchAPIGuildMemberJSONBody, reason?: string) => Promise<GuildMemberStructure>;
|
|
45
45
|
add: (id: string, body: import("../types").RESTPutAPIGuildMemberJSONBody) => Promise<GuildMemberStructure | undefined>;
|
|
46
|
-
addRole: (memberId: string, id: string) => Promise<
|
|
47
|
-
removeRole: (memberId: string, id: string) => Promise<
|
|
46
|
+
addRole: (memberId: string, id: string) => Promise<undefined>;
|
|
47
|
+
removeRole: (memberId: string, id: string) => Promise<undefined>;
|
|
48
48
|
fetch: (memberId: string, force?: boolean) => Promise<GuildMemberStructure>;
|
|
49
49
|
list: (query?: import("../types").RESTGetAPIGuildMembersQuery, force?: boolean) => Promise<GuildMemberStructure[]>;
|
|
50
50
|
};
|
|
51
51
|
moderationRules: {
|
|
52
52
|
list: () => Promise<import("../client").AutoModerationRuleStructure[]>;
|
|
53
53
|
create: (body: import("../types").RESTPostAPIAutoModerationRuleJSONBody) => Promise<import("../client").AutoModerationRuleStructure>;
|
|
54
|
-
delete: (ruleId: string, reason?: string) => Promise<
|
|
54
|
+
delete: (ruleId: string, reason?: string) => Promise<undefined>;
|
|
55
55
|
fetch: (ruleId: string) => Promise<import("../client").AutoModerationRuleStructure>;
|
|
56
56
|
edit: (ruleId: string, body: import("../types").RESTPatchAPIAutoModerationRuleJSONBody, reason?: string) => Promise<import("../client").AutoModerationRuleStructure>;
|
|
57
57
|
};
|
|
@@ -70,7 +70,7 @@ export declare class Guild<State extends StructStates = 'api'> extends Guild_bas
|
|
|
70
70
|
}) => Promise<import("../commands").SeyfertChannelMap[T]>;
|
|
71
71
|
delete: (id: string, reason?: string) => Promise<import("./channels").AllChannels>;
|
|
72
72
|
edit: (id: string, body: import("../types").RESTPatchAPIChannelJSONBody, reason?: string) => Promise<import("./channels").AllChannels>;
|
|
73
|
-
editPositions: (body: import("../types").RESTPatchAPIGuildChannelPositionsJSONBody) => Promise<
|
|
73
|
+
editPositions: (body: import("../types").RESTPatchAPIGuildChannelPositionsJSONBody) => Promise<undefined>;
|
|
74
74
|
};
|
|
75
75
|
emojis: {
|
|
76
76
|
edit: (emojiId: string, body: import("../types").RESTPatchAPIGuildEmojiJSONBody, reason?: string) => Promise<import("../client").GuildEmojiStructure>;
|
|
@@ -82,7 +82,7 @@ export declare class Guild<State extends StructStates = 'api'> extends Guild_bas
|
|
|
82
82
|
fetch: (userId: string, force?: boolean) => Promise<import("../client").GuildBanStructure>;
|
|
83
83
|
list: (query?: import("../types").RESTGetAPIGuildBansQuery, force?: boolean) => Promise<import("../client").GuildBanStructure[]>;
|
|
84
84
|
create: (memberId: string, body?: Parameters<import("../common/shorters/bans").BanShorter["create"]>[2], reason?: string) => Promise<void>;
|
|
85
|
-
remove: (memberId: string, reason?: string) => Promise<
|
|
85
|
+
remove: (memberId: string, reason?: string) => Promise<undefined>;
|
|
86
86
|
bulkCreate: (body: Parameters<import("../common/shorters/bans").BanShorter["bulkCreate"]>[1], reason?: string) => Promise<import("../types").RESTPostAPIGuildBulkBanResult>;
|
|
87
87
|
};
|
|
88
88
|
edit(body: RESTPatchAPIGuildJSONBody, reason?: string): Promise<GuildStructure<'api'>>;
|
|
@@ -11,7 +11,7 @@ export declare class GuildBan extends DiscordBase {
|
|
|
11
11
|
readonly guildId: string;
|
|
12
12
|
constructor(client: UsingClient, data: APIBan | ActuallyBan, guildId: string);
|
|
13
13
|
create(body?: Parameters<BanShorter['create']>[2], reason?: string): Promise<void>;
|
|
14
|
-
remove(reason?: string): Promise<
|
|
14
|
+
remove(reason?: string): Promise<undefined>;
|
|
15
15
|
guild(mode?: 'rest' | 'flow'): Promise<GuildStructure<'cached' | 'api'>>;
|
|
16
16
|
guild(mode: 'cache'): ReturnCache<GuildStructure<'cached'> | undefined>;
|
|
17
17
|
fetch(force?: boolean): Promise<GuildBanStructure>;
|
|
@@ -22,7 +22,7 @@ export declare class GuildBan extends DiscordBase {
|
|
|
22
22
|
fetch: (userId: string, force?: boolean) => Promise<GuildBanStructure>;
|
|
23
23
|
list: (query?: RESTGetAPIGuildBansQuery, force?: boolean) => Promise<GuildBanStructure[]>;
|
|
24
24
|
create: (memberId: string, body?: Parameters<BanShorter["create"]>[2], reason?: string) => Promise<void>;
|
|
25
|
-
remove: (memberId: string, reason?: string) => Promise<
|
|
25
|
+
remove: (memberId: string, reason?: string) => Promise<undefined>;
|
|
26
26
|
bulkCreate: (body: Parameters<BanShorter["bulkCreate"]>[1], reason?: string) => Promise<import("../types").RESTPostAPIGuildBulkBanResult>;
|
|
27
27
|
};
|
|
28
28
|
}
|
|
@@ -38,8 +38,8 @@ export declare class BaseGuildMember extends DiscordBase {
|
|
|
38
38
|
get roles(): {
|
|
39
39
|
keys: string[];
|
|
40
40
|
list: (force?: boolean) => Promise<GuildRoleStructure[]>;
|
|
41
|
-
add: (id: string) => Promise<
|
|
42
|
-
remove: (id: string) => Promise<
|
|
41
|
+
add: (id: string) => Promise<undefined>;
|
|
42
|
+
remove: (id: string) => Promise<undefined>;
|
|
43
43
|
permissions: (force?: boolean) => Promise<PermissionsBitField>;
|
|
44
44
|
sorted: (force?: boolean) => Promise<GuildRoleStructure[]>;
|
|
45
45
|
highest: (force?: boolean) => Promise<GuildRoleStructure>;
|
|
@@ -49,13 +49,13 @@ export declare class BaseGuildMember extends DiscordBase {
|
|
|
49
49
|
}>): {
|
|
50
50
|
resolve: (resolve: GuildMemberResolvable) => Promise<GuildMemberStructure | undefined>;
|
|
51
51
|
search: (query?: RESTGetAPIGuildMembersSearchQuery) => Promise<GuildMemberStructure[]>;
|
|
52
|
-
unban: (id: string, reason?: string) => Promise<
|
|
52
|
+
unban: (id: string, reason?: string) => Promise<undefined>;
|
|
53
53
|
ban: (id: string, body?: RESTPutAPIGuildBanJSONBody, reason?: string) => Promise<void>;
|
|
54
54
|
kick: (id: string, reason?: string) => Promise<void>;
|
|
55
55
|
edit: (id: string, body: RESTPatchAPIGuildMemberJSONBody, reason?: string) => Promise<GuildMemberStructure>;
|
|
56
56
|
add: (id: string, body: RESTPutAPIGuildMemberJSONBody) => Promise<GuildMemberStructure | undefined>;
|
|
57
|
-
addRole: (memberId: string, id: string) => Promise<
|
|
58
|
-
removeRole: (memberId: string, id: string) => Promise<
|
|
57
|
+
addRole: (memberId: string, id: string) => Promise<undefined>;
|
|
58
|
+
removeRole: (memberId: string, id: string) => Promise<undefined>;
|
|
59
59
|
fetch: (memberId: string, force?: boolean) => Promise<GuildMemberStructure>;
|
|
60
60
|
list: (query?: RESTGetAPIGuildMembersQuery, force?: boolean) => Promise<GuildMemberStructure[]>;
|
|
61
61
|
};
|
|
@@ -57,7 +57,7 @@ export declare class WebhookMessage extends BaseMessage {
|
|
|
57
57
|
fetch(): Promise<WebhookMessageStructure>;
|
|
58
58
|
edit(body: EditMessageWebhook): Promise<WebhookMessageStructure>;
|
|
59
59
|
write(body: WriteMessageWebhook): Promise<WebhookMessageStructure | null>;
|
|
60
|
-
delete(reason?: string): Promise<
|
|
60
|
+
delete(reason?: string): Promise<undefined>;
|
|
61
61
|
}
|
|
62
62
|
export declare class InMessageEmbed {
|
|
63
63
|
data: APIEmbed;
|
|
@@ -63,7 +63,7 @@ export declare class Webhook extends DiscordBase {
|
|
|
63
63
|
* @param reason The reason for deleting the webhook.
|
|
64
64
|
* @returns A promise that resolves when the webhook is successfully deleted.
|
|
65
65
|
*/
|
|
66
|
-
delete(reason?: string): Promise<
|
|
66
|
+
delete(reason?: string): Promise<undefined>;
|
|
67
67
|
/**
|
|
68
68
|
* Static methods related to interacting with messages through webhooks.
|
|
69
69
|
*/
|
|
@@ -76,7 +76,7 @@ export declare class Webhook extends DiscordBase {
|
|
|
76
76
|
/** Edits a message sent through the webhook. */
|
|
77
77
|
edit: (payload: MessageWebhookMethodEditParams) => Promise<WebhookMessageStructure>;
|
|
78
78
|
/** Deletes a message sent through the webhook. */
|
|
79
|
-
delete: (messageId: string, reason?: string) => Promise<
|
|
79
|
+
delete: (messageId: string, reason?: string) => Promise<undefined>;
|
|
80
80
|
};
|
|
81
81
|
/**
|
|
82
82
|
* Static methods related to managing webhooks.
|
|
@@ -86,7 +86,7 @@ export declare class Webhook extends DiscordBase {
|
|
|
86
86
|
webhookToken?: string;
|
|
87
87
|
}>): {
|
|
88
88
|
/** Deletes the webhook. */
|
|
89
|
-
delete: (reason?: string) => Promise<
|
|
89
|
+
delete: (reason?: string) => Promise<undefined>;
|
|
90
90
|
/** Edits the webhook. */
|
|
91
91
|
edit: (body: RESTPatchAPIWebhookWithTokenJSONBody | RESTPatchAPIWebhookJSONBody, reason?: string) => Promise<Webhook>;
|
|
92
92
|
/** Fetches the webhook data from the Discord API. */
|
|
@@ -42,7 +42,7 @@ export declare class BaseNoEditableChannel<T extends ChannelType> extends Discor
|
|
|
42
42
|
}) => Promise<SeyfertChannelMap[T]>;
|
|
43
43
|
delete: (id: string, reason?: string) => Promise<AllChannels>;
|
|
44
44
|
edit: (id: string, body: RESTPatchAPIChannelJSONBody, reason?: string) => Promise<AllChannels>;
|
|
45
|
-
editPositions: (body: RESTPatchAPIGuildChannelPositionsJSONBody) => Promise<
|
|
45
|
+
editPositions: (body: RESTPatchAPIGuildChannelPositionsJSONBody) => Promise<undefined>;
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
export declare class BaseChannel<T extends ChannelType> extends BaseNoEditableChannel<T> {
|
|
@@ -585,8 +585,8 @@ export declare class MessagesMethods extends DiscordBase {
|
|
|
585
585
|
};
|
|
586
586
|
pins: {
|
|
587
587
|
fetch: () => Promise<MessageStructure[]>;
|
|
588
|
-
set: (messageId: string, reason?: string) => Promise<
|
|
589
|
-
delete: (messageId: string, reason?: string) => Promise<
|
|
588
|
+
set: (messageId: string, reason?: string) => Promise<undefined>;
|
|
589
|
+
delete: (messageId: string, reason?: string) => Promise<undefined>;
|
|
590
590
|
};
|
|
591
591
|
reactions: {
|
|
592
592
|
add: (messageId: string, emoji: EmojiResolvable) => Promise<void>;
|
|
@@ -617,8 +617,8 @@ export declare class MessagesMethods extends DiscordBase {
|
|
|
617
617
|
channelId: string;
|
|
618
618
|
}>): {
|
|
619
619
|
fetch: () => Promise<MessageStructure[]>;
|
|
620
|
-
set: (messageId: string, reason?: string) => Promise<
|
|
621
|
-
delete: (messageId: string, reason?: string) => Promise<
|
|
620
|
+
set: (messageId: string, reason?: string) => Promise<undefined>;
|
|
621
|
+
delete: (messageId: string, reason?: string) => Promise<undefined>;
|
|
622
622
|
};
|
|
623
623
|
static transformMessageBody<T>(body: MessageCreateBodyRequest | MessageUpdateBodyRequest, files: RawFile[] | undefined, self: UsingClient): T;
|
|
624
624
|
}
|
|
@@ -54,7 +54,7 @@ export type RESTPatchAPIApplicationEmojiResult = APIApplicationEmoji;
|
|
|
54
54
|
/**
|
|
55
55
|
* https://discord.com/developers/docs/resources/emoji#delete-application-emoji
|
|
56
56
|
*/
|
|
57
|
-
export type RESTDeleteAPIApplicationEmojiResult =
|
|
57
|
+
export type RESTDeleteAPIApplicationEmojiResult = undefined;
|
|
58
58
|
/**
|
|
59
59
|
* https://discord.com/developers/docs/resources/application#get-application-activity-instance
|
|
60
60
|
*/
|
|
@@ -63,4 +63,4 @@ export type RESTPatchAPIAutoModerationRuleResult = APIAutoModerationRule;
|
|
|
63
63
|
/**
|
|
64
64
|
* https://discord.com/developers/docs/resources/auto-moderation#delete-auto-moderation-rule
|
|
65
65
|
*/
|
|
66
|
-
export type RESTDeleteAPIAutoModerationRuleResult =
|
|
66
|
+
export type RESTDeleteAPIAutoModerationRuleResult = undefined;
|
|
@@ -298,15 +298,15 @@ export type RESTPostAPIChannelMessageCrosspostResult = APIMessage;
|
|
|
298
298
|
/**
|
|
299
299
|
* https://discord.com/developers/docs/resources/channel#create-reaction
|
|
300
300
|
*/
|
|
301
|
-
export type RESTPutAPIChannelMessageReactionResult =
|
|
301
|
+
export type RESTPutAPIChannelMessageReactionResult = undefined;
|
|
302
302
|
/**
|
|
303
303
|
* https://discord.com/developers/docs/resources/channel#delete-own-reaction
|
|
304
304
|
*/
|
|
305
|
-
export type RESTDeleteAPIChannelMessageOwnReaction =
|
|
305
|
+
export type RESTDeleteAPIChannelMessageOwnReaction = undefined;
|
|
306
306
|
/**
|
|
307
307
|
* https://discord.com/developers/docs/resources/channel#delete-user-reaction
|
|
308
308
|
*/
|
|
309
|
-
export type RESTDeleteAPIChannelMessageUserReactionResult =
|
|
309
|
+
export type RESTDeleteAPIChannelMessageUserReactionResult = undefined;
|
|
310
310
|
/**
|
|
311
311
|
* https://discord.com/developers/docs/resources/channel#get-reactions
|
|
312
312
|
*/
|
|
@@ -340,11 +340,11 @@ export type RESTGetAPIChannelMessageReactionUsersResult = APIUser[];
|
|
|
340
340
|
/**
|
|
341
341
|
* https://discord.com/developers/docs/resources/channel#delete-all-reactions
|
|
342
342
|
*/
|
|
343
|
-
export type RESTDeleteAPIChannelAllMessageReactionsResult =
|
|
343
|
+
export type RESTDeleteAPIChannelAllMessageReactionsResult = undefined;
|
|
344
344
|
/**
|
|
345
345
|
* https://discord.com/developers/docs/resources/channel#delete-all-reactions-for-emoji
|
|
346
346
|
*/
|
|
347
|
-
export type RESTDeleteAPIChannelMessageReactionResult =
|
|
347
|
+
export type RESTDeleteAPIChannelMessageReactionResult = undefined;
|
|
348
348
|
/**
|
|
349
349
|
* https://discord.com/developers/docs/resources/channel#edit-message
|
|
350
350
|
*/
|
|
@@ -405,7 +405,7 @@ export type RESTPatchAPIChannelMessageResult = APIMessage;
|
|
|
405
405
|
/**
|
|
406
406
|
* https://discord.com/developers/docs/resources/channel#delete-message
|
|
407
407
|
*/
|
|
408
|
-
export type RESTDeleteAPIChannelMessageResult =
|
|
408
|
+
export type RESTDeleteAPIChannelMessageResult = undefined;
|
|
409
409
|
/**
|
|
410
410
|
* https://discord.com/developers/docs/resources/channel#bulk-delete-messages
|
|
411
411
|
*/
|
|
@@ -418,7 +418,7 @@ export interface RESTPostAPIChannelMessagesBulkDeleteJSONBody {
|
|
|
418
418
|
/**
|
|
419
419
|
* https://discord.com/developers/docs/resources/channel#bulk-delete-messages
|
|
420
420
|
*/
|
|
421
|
-
export type RESTPostAPIChannelMessagesBulkDeleteResult =
|
|
421
|
+
export type RESTPostAPIChannelMessagesBulkDeleteResult = undefined;
|
|
422
422
|
/**
|
|
423
423
|
* https://discord.com/developers/docs/resources/channel#edit-channel-permissions
|
|
424
424
|
*/
|
|
@@ -447,7 +447,7 @@ export interface RESTPutAPIChannelPermissionJSONBody {
|
|
|
447
447
|
/**
|
|
448
448
|
* https://discord.com/developers/docs/resources/channel#edit-channel-permissions
|
|
449
449
|
*/
|
|
450
|
-
export type RESTPutAPIChannelPermissionResult =
|
|
450
|
+
export type RESTPutAPIChannelPermissionResult = undefined;
|
|
451
451
|
/**
|
|
452
452
|
* https://discord.com/developers/docs/resources/channel#get-channel-invites
|
|
453
453
|
*/
|
|
@@ -507,7 +507,7 @@ export type RESTPostAPIChannelInviteResult = APIExtendedInvite;
|
|
|
507
507
|
/**
|
|
508
508
|
* https://discord.com/developers/docs/resources/channel#delete-channel-permission
|
|
509
509
|
*/
|
|
510
|
-
export type RESTDeleteAPIChannelPermissionResult =
|
|
510
|
+
export type RESTDeleteAPIChannelPermissionResult = undefined;
|
|
511
511
|
/**
|
|
512
512
|
* https://discord.com/developers/docs/resources/channel#follow-news-channel
|
|
513
513
|
*/
|
|
@@ -524,7 +524,7 @@ export type RESTPostAPIChannelFollowersResult = APIFollowedChannel;
|
|
|
524
524
|
/**
|
|
525
525
|
* https://discord.com/developers/docs/resources/channel#trigger-typing-indicator
|
|
526
526
|
*/
|
|
527
|
-
export type RESTPostAPIChannelTypingResult =
|
|
527
|
+
export type RESTPostAPIChannelTypingResult = undefined;
|
|
528
528
|
/**
|
|
529
529
|
* https://discord.com/developers/docs/resources/channel#get-pinned-messages
|
|
530
530
|
*/
|
|
@@ -532,11 +532,11 @@ export type RESTGetAPIChannelPinsResult = APIMessage[];
|
|
|
532
532
|
/**
|
|
533
533
|
* https://discord.com/developers/docs/resources/channel#pin-message
|
|
534
534
|
*/
|
|
535
|
-
export type RESTPutAPIChannelPinResult =
|
|
535
|
+
export type RESTPutAPIChannelPinResult = undefined;
|
|
536
536
|
/**
|
|
537
537
|
* https://discord.com/developers/docs/resources/channel#unpin-message
|
|
538
538
|
*/
|
|
539
|
-
export type RESTDeleteAPIChannelPinResult =
|
|
539
|
+
export type RESTDeleteAPIChannelPinResult = undefined;
|
|
540
540
|
/**
|
|
541
541
|
* https://discord.com/developers/docs/resources/channel#group-dm-add-recipient
|
|
542
542
|
*/
|
|
@@ -628,11 +628,11 @@ export type RESTPostAPIChannelThreadsResult = APIChannel;
|
|
|
628
628
|
/**
|
|
629
629
|
* https://discord.com/developers/docs/resources/channel#join-thread
|
|
630
630
|
*/
|
|
631
|
-
export type RESTPutAPIChannelThreadMembersResult =
|
|
631
|
+
export type RESTPutAPIChannelThreadMembersResult = undefined;
|
|
632
632
|
/**
|
|
633
633
|
* https://discord.com/developers/docs/resources/channel#leave-thread
|
|
634
634
|
*/
|
|
635
|
-
export type RESTDeleteAPIChannelThreadMembersResult =
|
|
635
|
+
export type RESTDeleteAPIChannelThreadMembersResult = undefined;
|
|
636
636
|
/**
|
|
637
637
|
* https://discord.com/developers/docs/resources/channel#get-thread-member
|
|
638
638
|
*/
|
|
@@ -256,7 +256,7 @@ export type RESTPatchAPIGuildResult = APIGuild;
|
|
|
256
256
|
/**
|
|
257
257
|
* https://discord.com/developers/docs/resources/guild#delete-guild
|
|
258
258
|
*/
|
|
259
|
-
export type RESTDeleteAPIGuildResult =
|
|
259
|
+
export type RESTDeleteAPIGuildResult = undefined;
|
|
260
260
|
/**
|
|
261
261
|
* https://discord.com/developers/docs/resources/guild#get-guild-channels
|
|
262
262
|
*/
|
|
@@ -293,7 +293,7 @@ export type RESTPatchAPIGuildChannelPositionsJSONBody = {
|
|
|
293
293
|
/**
|
|
294
294
|
* https://discord.com/developers/docs/resources/guild#modify-guild-channel-positions
|
|
295
295
|
*/
|
|
296
|
-
export type RESTPatchAPIGuildChannelPositionsResult =
|
|
296
|
+
export type RESTPatchAPIGuildChannelPositionsResult = undefined;
|
|
297
297
|
/**
|
|
298
298
|
* https://discord.com/developers/docs/resources/guild#list-active-guild-threads
|
|
299
299
|
*/
|
|
@@ -430,15 +430,15 @@ export interface RESTPatchAPICurrentGuildMemberJSONBody {
|
|
|
430
430
|
/**
|
|
431
431
|
* https://discord.com/developers/docs/resources/guild#add-guild-member-role
|
|
432
432
|
*/
|
|
433
|
-
export type RESTPutAPIGuildMemberRoleResult =
|
|
433
|
+
export type RESTPutAPIGuildMemberRoleResult = undefined;
|
|
434
434
|
/**
|
|
435
435
|
* https://discord.com/developers/docs/resources/guild#remove-guild-member-role
|
|
436
436
|
*/
|
|
437
|
-
export type RESTDeleteAPIGuildMemberRoleResult =
|
|
437
|
+
export type RESTDeleteAPIGuildMemberRoleResult = undefined;
|
|
438
438
|
/**
|
|
439
439
|
* https://discord.com/developers/docs/resources/guild#remove-guild-member
|
|
440
440
|
*/
|
|
441
|
-
export type RESTDeleteAPIGuildMemberResult =
|
|
441
|
+
export type RESTDeleteAPIGuildMemberResult = undefined;
|
|
442
442
|
/**
|
|
443
443
|
* https://discord.com/developers/docs/resources/guild#get-guild-bans
|
|
444
444
|
*/
|
|
@@ -478,11 +478,11 @@ export interface RESTPutAPIGuildBanJSONBody {
|
|
|
478
478
|
/**
|
|
479
479
|
* https://discord.com/developers/docs/resources/guild#create-guild-ban
|
|
480
480
|
*/
|
|
481
|
-
export type RESTPutAPIGuildBanResult =
|
|
481
|
+
export type RESTPutAPIGuildBanResult = undefined;
|
|
482
482
|
/**
|
|
483
483
|
* https://discord.com/developers/docs/resources/guild#remove-guild-ban
|
|
484
484
|
*/
|
|
485
|
-
export type RESTDeleteAPIGuildBanResult =
|
|
485
|
+
export type RESTDeleteAPIGuildBanResult = undefined;
|
|
486
486
|
/**
|
|
487
487
|
* https://discord.com/developers/docs/resources/guild#bulk-guild-ban
|
|
488
488
|
*/
|
|
@@ -621,7 +621,7 @@ export type RESTPatchAPIGuildRoleResult = APIRole;
|
|
|
621
621
|
/**
|
|
622
622
|
* https://discord.com/developers/docs/resources/guild#delete-guild-role
|
|
623
623
|
*/
|
|
624
|
-
export type RESTDeleteAPIGuildRoleResult =
|
|
624
|
+
export type RESTDeleteAPIGuildRoleResult = undefined;
|
|
625
625
|
/**
|
|
626
626
|
* https://discord.com/developers/docs/resources/guild#get-guild-prune-count
|
|
627
627
|
*/
|
|
@@ -690,7 +690,7 @@ export type RESTGetAPIGuildIntegrationsResult = APIGuildIntegration[];
|
|
|
690
690
|
/**
|
|
691
691
|
* https://discord.com/developers/docs/resources/guild#delete-guild-integration
|
|
692
692
|
*/
|
|
693
|
-
export type RESTDeleteAPIGuildIntegrationResult =
|
|
693
|
+
export type RESTDeleteAPIGuildIntegrationResult = undefined;
|
|
694
694
|
/**
|
|
695
695
|
* https://discord.com/developers/docs/resources/guild#get-guild-widget-settings
|
|
696
696
|
*/
|
|
@@ -766,7 +766,7 @@ export interface RESTPatchAPIGuildVoiceStateCurrentMemberJSONBody {
|
|
|
766
766
|
/**
|
|
767
767
|
* https://discord.com/developers/docs/resources/guild#modify-current-user-voice-state
|
|
768
768
|
*/
|
|
769
|
-
export type RESTPatchAPIGuildVoiceStateCurrentMemberResult =
|
|
769
|
+
export type RESTPatchAPIGuildVoiceStateCurrentMemberResult = undefined;
|
|
770
770
|
/**
|
|
771
771
|
* https://discord.com/developers/docs/resources/guild#modify-user-voice-state
|
|
772
772
|
*/
|
|
@@ -783,7 +783,7 @@ export interface RESTPatchAPIGuildVoiceStateUserJSONBody {
|
|
|
783
783
|
/**
|
|
784
784
|
* https://discord.com/developers/docs/resources/guild#modify-user-voice-state
|
|
785
785
|
*/
|
|
786
|
-
export type RESTPatchAPIGuildVoiceStateUserResult =
|
|
786
|
+
export type RESTPatchAPIGuildVoiceStateUserResult = undefined;
|
|
787
787
|
/**
|
|
788
788
|
* https://discord.com/developers/docs/resources/guild#get-guild-welcome-screen
|
|
789
789
|
*/
|
|
@@ -88,7 +88,7 @@ export type RESTPatchAPIGuildScheduledEventResult = APIGuildScheduledEvent;
|
|
|
88
88
|
/**
|
|
89
89
|
* https://discord.com/developers/docs/resources/guild-scheduled-event#delete-guild-scheduled-event
|
|
90
90
|
*/
|
|
91
|
-
export type RESTDeleteAPIGuildScheduledEventResult =
|
|
91
|
+
export type RESTDeleteAPIGuildScheduledEventResult = undefined;
|
|
92
92
|
/**
|
|
93
93
|
* https://discord.com/developers/docs/resources/guild-scheduled-event#get-guild-scheduled-event-users
|
|
94
94
|
*/
|
|
@@ -79,7 +79,7 @@ export declare enum EntitlementOwnerType {
|
|
|
79
79
|
/**
|
|
80
80
|
* https://discord.com/developers/docs/monetization/entitlements#delete-test-entitlement
|
|
81
81
|
*/
|
|
82
|
-
export type RESTDeleteAPIEntitlementResult =
|
|
82
|
+
export type RESTDeleteAPIEntitlementResult = undefined;
|
|
83
83
|
/**
|
|
84
84
|
* https://discord.com/developers/docs/monetization/skus#list-skus
|
|
85
85
|
*/
|
|
@@ -87,7 +87,7 @@ export type RESTGetAPISKUsResult = APISKU[];
|
|
|
87
87
|
/**
|
|
88
88
|
* https://discord.com/developers/docs/monetization/entitlements#consume-an-entitlement
|
|
89
89
|
*/
|
|
90
|
-
export type RESTPostAPIEntitlementConsumeResult =
|
|
90
|
+
export type RESTPostAPIEntitlementConsumeResult = undefined;
|
|
91
91
|
/**
|
|
92
92
|
* https://canary.discord.com/developers/docs/resources/subscription#query-string-params
|
|
93
93
|
*/
|
|
@@ -61,4 +61,4 @@ export type RESTPatchAPIGuildSoundboardSoundResult = APISoundBoard;
|
|
|
61
61
|
* This endpoint supports the X-Audit-Log-Reason header.
|
|
62
62
|
* @fires GuildSoundboardSoundDelete
|
|
63
63
|
*/
|
|
64
|
-
export type RESTDeleteAPIGuildSoundboardSoundResult =
|
|
64
|
+
export type RESTDeleteAPIGuildSoundboardSoundResult = undefined;
|
|
@@ -55,4 +55,4 @@ export type RESTPatchAPIStageInstanceResult = APIStageInstance;
|
|
|
55
55
|
/**
|
|
56
56
|
* https://discord.com/developers/docs/resources/stage-instance#delete-stage-instance
|
|
57
57
|
*/
|
|
58
|
-
export type RESTDeleteAPIStageInstanceResult =
|
|
58
|
+
export type RESTDeleteAPIStageInstanceResult = undefined;
|
package/lib/types/rest/user.d.ts
CHANGED
|
@@ -75,7 +75,7 @@ export type RESTGetAPICurrentUserGuildsResult = RESTAPIPartialCurrentUserGuild[]
|
|
|
75
75
|
/**
|
|
76
76
|
* https://discord.com/developers/docs/resources/user#leave-guild
|
|
77
77
|
*/
|
|
78
|
-
export type RESTDeleteAPICurrentUserGuildResult =
|
|
78
|
+
export type RESTDeleteAPICurrentUserGuildResult = undefined;
|
|
79
79
|
/**
|
|
80
80
|
* https://discord.com/developers/docs/resources/user#create-dm
|
|
81
81
|
*/
|
|
@@ -72,11 +72,11 @@ export type RESTPatchAPIWebhookWithTokenResult = RESTGetAPIWebhookWithTokenResul
|
|
|
72
72
|
/**
|
|
73
73
|
* https://discord.com/developers/docs/resources/webhook#delete-webhook
|
|
74
74
|
*/
|
|
75
|
-
export type RESTDeleteAPIWebhookResult =
|
|
75
|
+
export type RESTDeleteAPIWebhookResult = undefined;
|
|
76
76
|
/**
|
|
77
77
|
* https://discord.com/developers/docs/resources/webhook#delete-webhook-with-token
|
|
78
78
|
*/
|
|
79
|
-
export type RESTDeleteAPIWebhookWithTokenResult =
|
|
79
|
+
export type RESTDeleteAPIWebhookWithTokenResult = undefined;
|
|
80
80
|
/**
|
|
81
81
|
* https://discord.com/developers/docs/resources/webhook#execute-webhook
|
|
82
82
|
*/
|
|
@@ -177,7 +177,7 @@ export interface RESTPostAPIWebhookWithTokenQuery {
|
|
|
177
177
|
/**
|
|
178
178
|
* https://discord.com/developers/docs/resources/webhook#execute-webhook
|
|
179
179
|
*/
|
|
180
|
-
export type RESTPostAPIWebhookWithTokenResult =
|
|
180
|
+
export type RESTPostAPIWebhookWithTokenResult = undefined;
|
|
181
181
|
/**
|
|
182
182
|
* Received when a call to https://discord.com/developers/docs/resources/webhook#execute-webhook receives
|
|
183
183
|
* the `wait` query parameter set to `true`
|
|
@@ -192,7 +192,7 @@ export type RESTPostAPIWebhookWithTokenSlackQuery = Omit<RESTPostAPIWebhookWithT
|
|
|
192
192
|
/**
|
|
193
193
|
* https://discord.com/developers/docs/resources/webhook#execute-slackcompatible-webhook
|
|
194
194
|
*/
|
|
195
|
-
export type RESTPostAPIWebhookWithTokenSlackResult =
|
|
195
|
+
export type RESTPostAPIWebhookWithTokenSlackResult = undefined;
|
|
196
196
|
/**
|
|
197
197
|
* Received when a call to https://discord.com/developers/docs/resources/webhook#execute-webhook receives
|
|
198
198
|
* the `wait` query parameter set to `true`
|
|
@@ -207,7 +207,7 @@ export type RESTPostAPIWebhookWithTokenGitHubQuery = Omit<RESTPostAPIWebhookWith
|
|
|
207
207
|
/**
|
|
208
208
|
* https://discord.com/developers/docs/resources/webhook#execute-githubcompatible-webhook
|
|
209
209
|
*/
|
|
210
|
-
export type RESTPostAPIWebhookWithTokenGitHubResult =
|
|
210
|
+
export type RESTPostAPIWebhookWithTokenGitHubResult = undefined;
|
|
211
211
|
/**
|
|
212
212
|
* Received when a call to https://discord.com/developers/docs/resources/webhook#execute-webhook receives
|
|
213
213
|
* the `wait` query parameter set to `true`
|
|
@@ -255,4 +255,4 @@ export type RESTPatchAPIWebhookWithTokenMessageResult = APIMessage;
|
|
|
255
255
|
/**
|
|
256
256
|
* https://discord.com/developers/docs/resources/webhook#delete-webhook-message
|
|
257
257
|
*/
|
|
258
|
-
export type RESTDeleteAPIWebhookWithTokenMessageResult =
|
|
258
|
+
export type RESTDeleteAPIWebhookWithTokenMessageResult = undefined;
|