seyfert 2.1.1-dev-11882952397.0 → 2.1.1-dev-11905584619.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/channels.d.ts +4 -1
- package/lib/api/Routes/guilds.d.ts +10 -1
- package/lib/api/Routes/index.d.ts +2 -2
- package/lib/api/Routes/soundboard.d.ts +2 -18
- package/lib/client/base.d.ts +2 -0
- package/lib/client/base.js +2 -0
- package/lib/common/shorters/soundboard.d.ts +11 -0
- package/lib/common/shorters/soundboard.js +34 -0
- package/lib/events/handler.js +0 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RESTDeleteAPIChannelAllMessageReactionsResult, RESTDeleteAPIChannelMessageReactionResult, RESTDeleteAPIChannelMessageResult, RESTDeleteAPIChannelPermissionResult, RESTDeleteAPIChannelPinResult, RESTDeleteAPIChannelRecipientResult, RESTDeleteAPIChannelResult, RESTDeleteAPIChannelThreadMembersResult, RESTGetAPIChannelInvitesResult, RESTGetAPIChannelMessageReactionUsersQuery, RESTGetAPIChannelMessageReactionUsersResult, RESTGetAPIChannelMessageResult, RESTGetAPIChannelMessagesQuery, RESTGetAPIChannelMessagesResult, RESTGetAPIChannelPinsResult, RESTGetAPIChannelResult, RESTGetAPIChannelThreadMemberQuery, RESTGetAPIChannelThreadMemberResult, RESTGetAPIChannelThreadMembersQuery, RESTGetAPIChannelThreadMembersResult, RESTGetAPIChannelThreadsArchivedPrivateResult, RESTGetAPIChannelThreadsArchivedPublicResult, RESTGetAPIChannelThreadsArchivedQuery, RESTGetAPIChannelUsersThreadsArchivedResult, RESTGetAPIGuildWebhooksResult, RESTGetAPIPollAnswerVotersQuery, RESTGetAPIPollAnswerVotersResult, RESTPatchAPIChannelJSONBody, RESTPatchAPIChannelMessageJSONBody, RESTPatchAPIChannelMessageResult, RESTPatchAPIChannelResult, RESTPostAPIChannelFollowersJSONBody, RESTPostAPIChannelFollowersResult, RESTPostAPIChannelInviteJSONBody, RESTPostAPIChannelInviteResult, RESTPostAPIChannelMessageCrosspostResult, RESTPostAPIChannelMessageJSONBody, RESTPostAPIChannelMessageResult, RESTPostAPIChannelMessagesBulkDeleteJSONBody, RESTPostAPIChannelMessagesBulkDeleteResult, RESTPostAPIChannelMessagesThreadsJSONBody, RESTPostAPIChannelMessagesThreadsResult, RESTPostAPIChannelThreadsJSONBody, RESTPostAPIChannelThreadsResult, RESTPostAPIChannelTypingResult, RESTPostAPIChannelWebhookJSONBody, RESTPostAPIChannelWebhookResult, RESTPostAPIGuildForumThreadsJSONBody, RESTPostAPIPollExpireResult, RESTPutAPIChannelMessageReactionResult, RESTPutAPIChannelPermissionJSONBody, RESTPutAPIChannelPermissionResult, RESTPutAPIChannelPinResult, RESTPutAPIChannelRecipientJSONBody, RESTPutAPIChannelRecipientResult, RESTPutAPIChannelThreadMembersResult } from '../../types';
|
|
1
|
+
import type { RESTDeleteAPIChannelAllMessageReactionsResult, RESTDeleteAPIChannelMessageReactionResult, RESTDeleteAPIChannelMessageResult, RESTDeleteAPIChannelPermissionResult, RESTDeleteAPIChannelPinResult, RESTDeleteAPIChannelRecipientResult, RESTDeleteAPIChannelResult, RESTDeleteAPIChannelThreadMembersResult, RESTGetAPIChannelInvitesResult, RESTGetAPIChannelMessageReactionUsersQuery, RESTGetAPIChannelMessageReactionUsersResult, RESTGetAPIChannelMessageResult, RESTGetAPIChannelMessagesQuery, RESTGetAPIChannelMessagesResult, RESTGetAPIChannelPinsResult, RESTGetAPIChannelResult, RESTGetAPIChannelThreadMemberQuery, RESTGetAPIChannelThreadMemberResult, RESTGetAPIChannelThreadMembersQuery, RESTGetAPIChannelThreadMembersResult, RESTGetAPIChannelThreadsArchivedPrivateResult, RESTGetAPIChannelThreadsArchivedPublicResult, RESTGetAPIChannelThreadsArchivedQuery, RESTGetAPIChannelUsersThreadsArchivedResult, RESTGetAPIGuildWebhooksResult, RESTGetAPIPollAnswerVotersQuery, RESTGetAPIPollAnswerVotersResult, RESTPatchAPIChannelJSONBody, RESTPatchAPIChannelMessageJSONBody, RESTPatchAPIChannelMessageResult, RESTPatchAPIChannelResult, RESTPostAPIChannelFollowersJSONBody, RESTPostAPIChannelFollowersResult, RESTPostAPIChannelInviteJSONBody, RESTPostAPIChannelInviteResult, RESTPostAPIChannelMessageCrosspostResult, RESTPostAPIChannelMessageJSONBody, RESTPostAPIChannelMessageResult, RESTPostAPIChannelMessagesBulkDeleteJSONBody, RESTPostAPIChannelMessagesBulkDeleteResult, RESTPostAPIChannelMessagesThreadsJSONBody, RESTPostAPIChannelMessagesThreadsResult, RESTPostAPIChannelThreadsJSONBody, RESTPostAPIChannelThreadsResult, RESTPostAPIChannelTypingResult, RESTPostAPIChannelWebhookJSONBody, RESTPostAPIChannelWebhookResult, RESTPostAPIGuildForumThreadsJSONBody, RESTPostAPIPollExpireResult, RESTPostAPISendSoundboardSound, RESTPutAPIChannelMessageReactionResult, RESTPutAPIChannelPermissionJSONBody, RESTPutAPIChannelPermissionResult, RESTPutAPIChannelPinResult, RESTPutAPIChannelRecipientJSONBody, RESTPutAPIChannelRecipientResult, RESTPutAPIChannelThreadMembersResult } from '../../types';
|
|
2
2
|
import type { RestArguments, RestArgumentsNoBody } from '../api';
|
|
3
3
|
export interface ChannelRoutes {
|
|
4
4
|
channels(id: string): {
|
|
@@ -111,6 +111,9 @@ export interface ChannelRoutes {
|
|
|
111
111
|
post(args?: RestArgumentsNoBody): Promise<RESTPostAPIPollExpireResult>;
|
|
112
112
|
};
|
|
113
113
|
};
|
|
114
|
+
'send-soundboard-sound': {
|
|
115
|
+
post(args: RestArguments<RESTPostAPISendSoundboardSound>): Promise<never>;
|
|
116
|
+
};
|
|
114
117
|
};
|
|
115
118
|
}
|
|
116
119
|
export type ValidAnswerId = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Identify, OmitInsert } from '../../common';
|
|
2
|
-
import type { APIThreadChannel, RESTDeleteAPIAutoModerationRuleResult, RESTDeleteAPIGuildBanResult, RESTDeleteAPIGuildEmojiResult, RESTDeleteAPIGuildIntegrationResult, RESTDeleteAPIGuildMemberResult, RESTDeleteAPIGuildMemberRoleResult, RESTDeleteAPIGuildResult, RESTDeleteAPIGuildRoleResult, RESTDeleteAPIGuildScheduledEventResult, RESTDeleteAPIGuildStickerResult, RESTDeleteAPIGuildTemplateResult, RESTGetAPIAuditLogQuery, RESTGetAPIAuditLogResult, RESTGetAPIAutoModerationRuleResult, RESTGetAPIAutoModerationRulesResult, RESTGetAPICurrentUserVoiceState, RESTGetAPIGuildBanResult, RESTGetAPIGuildBansQuery, RESTGetAPIGuildBansResult, RESTGetAPIGuildChannelsResult, RESTGetAPIGuildEmojiResult, RESTGetAPIGuildEmojisResult, RESTGetAPIGuildIntegrationsResult, RESTGetAPIGuildInvitesResult, RESTGetAPIGuildMemberResult, RESTGetAPIGuildMembersQuery, RESTGetAPIGuildMembersResult, RESTGetAPIGuildMembersSearchQuery, RESTGetAPIGuildMembersSearchResult, RESTGetAPIGuildPreviewResult, RESTGetAPIGuildPruneCountQuery, RESTGetAPIGuildPruneCountResult, RESTGetAPIGuildQuery, RESTGetAPIGuildResult, RESTGetAPIGuildRoleResult, RESTGetAPIGuildRolesResult, RESTGetAPIGuildScheduledEventQuery, RESTGetAPIGuildScheduledEventResult, RESTGetAPIGuildScheduledEventUsersQuery, RESTGetAPIGuildScheduledEventUsersResult, RESTGetAPIGuildScheduledEventsQuery, RESTGetAPIGuildScheduledEventsResult, RESTGetAPIGuildStickerResult, RESTGetAPIGuildStickersResult, RESTGetAPIGuildTemplatesResult, RESTGetAPIGuildThreadsResult, RESTGetAPIGuildVanityUrlResult, RESTGetAPIGuildVoiceRegionsResult, RESTGetAPIGuildWebhooksResult, RESTGetAPIGuildWelcomeScreenResult, RESTGetAPIGuildWidgetImageQuery, RESTGetAPIGuildWidgetImageResult, RESTGetAPIGuildWidgetJSONResult, RESTGetAPIGuildWidgetSettingsResult, RESTGetAPITemplateResult, RESTGetAPIUserVoiceState, RESTPatchAPIAutoModerationRuleJSONBody, RESTPatchAPIAutoModerationRuleResult, RESTPatchAPICurrentGuildMemberJSONBody, RESTPatchAPIGuildChannelPositionsJSONBody, RESTPatchAPIGuildChannelPositionsResult, RESTPatchAPIGuildEmojiJSONBody, RESTPatchAPIGuildEmojiResult, RESTPatchAPIGuildJSONBody, RESTPatchAPIGuildMemberJSONBody, RESTPatchAPIGuildMemberResult, RESTPatchAPIGuildResult, RESTPatchAPIGuildRoleJSONBody, RESTPatchAPIGuildRolePositionsJSONBody, RESTPatchAPIGuildRolePositionsResult, RESTPatchAPIGuildRoleResult, RESTPatchAPIGuildScheduledEventJSONBody, RESTPatchAPIGuildScheduledEventResult, RESTPatchAPIGuildStickerJSONBody, RESTPatchAPIGuildStickerResult, RESTPatchAPIGuildTemplateJSONBody, RESTPatchAPIGuildTemplateResult, RESTPatchAPIGuildVoiceStateCurrentMemberJSONBody, RESTPatchAPIGuildVoiceStateCurrentMemberResult, RESTPatchAPIGuildVoiceStateUserJSONBody, RESTPatchAPIGuildVoiceStateUserResult, RESTPatchAPIGuildWelcomeScreenJSONBody, RESTPatchAPIGuildWelcomeScreenResult, RESTPatchAPIGuildWidgetSettingsJSONBody, RESTPatchAPIGuildWidgetSettingsResult, RESTPostAPIAutoModerationRuleJSONBody, RESTPostAPIAutoModerationRuleResult, RESTPostAPIGuildBulkBanJSONBody, RESTPostAPIGuildBulkBanResult, RESTPostAPIGuildChannelJSONBody, RESTPostAPIGuildChannelResult, RESTPostAPIGuildEmojiJSONBody, RESTPostAPIGuildEmojiResult, RESTPostAPIGuildPruneJSONBody, RESTPostAPIGuildPruneResult, RESTPostAPIGuildRoleJSONBody, RESTPostAPIGuildRoleResult, RESTPostAPIGuildScheduledEventJSONBody, RESTPostAPIGuildScheduledEventResult, RESTPostAPIGuildStickerFormDataBody, RESTPostAPIGuildStickerResult, RESTPostAPIGuildTemplatesJSONBody, RESTPostAPIGuildTemplatesResult, RESTPostAPIGuildsJSONBody, RESTPostAPIGuildsMFAJSONBody, RESTPostAPIGuildsMFAResult, RESTPostAPIGuildsResult, RESTPostAPITemplateCreateGuildJSONBody, RESTPostAPITemplateCreateGuildResult, RESTPutAPIGuildBanJSONBody, RESTPutAPIGuildBanResult, RESTPutAPIGuildMemberJSONBody, RESTPutAPIGuildMemberResult, RESTPutAPIGuildMemberRoleResult, RESTPutAPIGuildTemplateSyncResult } from '../../types';
|
|
2
|
+
import type { APIThreadChannel, RESTDeleteAPIAutoModerationRuleResult, RESTDeleteAPIGuildBanResult, RESTDeleteAPIGuildEmojiResult, RESTDeleteAPIGuildIntegrationResult, RESTDeleteAPIGuildMemberResult, RESTDeleteAPIGuildMemberRoleResult, RESTDeleteAPIGuildResult, RESTDeleteAPIGuildRoleResult, RESTDeleteAPIGuildScheduledEventResult, RESTDeleteAPIGuildStickerResult, RESTDeleteAPIGuildTemplateResult, RESTGetAPIAuditLogQuery, RESTGetAPIAuditLogResult, RESTGetAPIAutoModerationRuleResult, RESTGetAPIAutoModerationRulesResult, RESTGetAPICurrentUserVoiceState, RESTGetAPIGuildBanResult, RESTGetAPIGuildBansQuery, RESTGetAPIGuildBansResult, RESTGetAPIGuildChannelsResult, RESTGetAPIGuildEmojiResult, RESTGetAPIGuildEmojisResult, RESTGetAPIGuildIntegrationsResult, RESTGetAPIGuildInvitesResult, RESTGetAPIGuildMemberResult, RESTGetAPIGuildMembersQuery, RESTGetAPIGuildMembersResult, RESTGetAPIGuildMembersSearchQuery, RESTGetAPIGuildMembersSearchResult, RESTGetAPIGuildPreviewResult, RESTGetAPIGuildPruneCountQuery, RESTGetAPIGuildPruneCountResult, RESTGetAPIGuildQuery, RESTGetAPIGuildResult, RESTGetAPIGuildRoleResult, RESTGetAPIGuildRolesResult, RESTGetAPIGuildScheduledEventQuery, RESTGetAPIGuildScheduledEventResult, RESTGetAPIGuildScheduledEventUsersQuery, RESTGetAPIGuildScheduledEventUsersResult, RESTGetAPIGuildScheduledEventsQuery, RESTGetAPIGuildScheduledEventsResult, RESTGetAPIGuildSoundboardSoundsResult, RESTGetAPIGuildStickerResult, RESTGetAPIGuildStickersResult, RESTGetAPIGuildTemplatesResult, RESTGetAPIGuildThreadsResult, RESTGetAPIGuildVanityUrlResult, RESTGetAPIGuildVoiceRegionsResult, RESTGetAPIGuildWebhooksResult, RESTGetAPIGuildWelcomeScreenResult, RESTGetAPIGuildWidgetImageQuery, RESTGetAPIGuildWidgetImageResult, RESTGetAPIGuildWidgetJSONResult, RESTGetAPIGuildWidgetSettingsResult, RESTGetAPITemplateResult, RESTGetAPIUserVoiceState, RESTPatchAPIAutoModerationRuleJSONBody, RESTPatchAPIAutoModerationRuleResult, RESTPatchAPICurrentGuildMemberJSONBody, RESTPatchAPIGuildChannelPositionsJSONBody, RESTPatchAPIGuildChannelPositionsResult, RESTPatchAPIGuildEmojiJSONBody, RESTPatchAPIGuildEmojiResult, RESTPatchAPIGuildJSONBody, RESTPatchAPIGuildMemberJSONBody, RESTPatchAPIGuildMemberResult, RESTPatchAPIGuildResult, RESTPatchAPIGuildRoleJSONBody, RESTPatchAPIGuildRolePositionsJSONBody, RESTPatchAPIGuildRolePositionsResult, RESTPatchAPIGuildRoleResult, RESTPatchAPIGuildScheduledEventJSONBody, RESTPatchAPIGuildScheduledEventResult, RESTPatchAPIGuildSoundboardSound, RESTPatchAPIGuildSoundboardSoundResult, RESTPatchAPIGuildStickerJSONBody, RESTPatchAPIGuildStickerResult, RESTPatchAPIGuildTemplateJSONBody, RESTPatchAPIGuildTemplateResult, RESTPatchAPIGuildVoiceStateCurrentMemberJSONBody, RESTPatchAPIGuildVoiceStateCurrentMemberResult, RESTPatchAPIGuildVoiceStateUserJSONBody, RESTPatchAPIGuildVoiceStateUserResult, RESTPatchAPIGuildWelcomeScreenJSONBody, RESTPatchAPIGuildWelcomeScreenResult, RESTPatchAPIGuildWidgetSettingsJSONBody, RESTPatchAPIGuildWidgetSettingsResult, RESTPostAPIAutoModerationRuleJSONBody, RESTPostAPIAutoModerationRuleResult, RESTPostAPIGuildBulkBanJSONBody, RESTPostAPIGuildBulkBanResult, RESTPostAPIGuildChannelJSONBody, RESTPostAPIGuildChannelResult, RESTPostAPIGuildEmojiJSONBody, RESTPostAPIGuildEmojiResult, RESTPostAPIGuildPruneJSONBody, RESTPostAPIGuildPruneResult, RESTPostAPIGuildRoleJSONBody, RESTPostAPIGuildRoleResult, RESTPostAPIGuildScheduledEventJSONBody, RESTPostAPIGuildScheduledEventResult, RESTPostAPIGuildSoundboardSound, RESTPostAPIGuildSoundboardSoundResult, RESTPostAPIGuildStickerFormDataBody, RESTPostAPIGuildStickerResult, RESTPostAPIGuildTemplatesJSONBody, RESTPostAPIGuildTemplatesResult, RESTPostAPIGuildsJSONBody, RESTPostAPIGuildsMFAJSONBody, RESTPostAPIGuildsMFAResult, RESTPostAPIGuildsResult, RESTPostAPITemplateCreateGuildJSONBody, RESTPostAPITemplateCreateGuildResult, RESTPutAPIGuildBanJSONBody, RESTPutAPIGuildBanResult, RESTPutAPIGuildMemberJSONBody, RESTPutAPIGuildMemberResult, RESTPutAPIGuildMemberRoleResult, RESTPutAPIGuildTemplateSyncResult } from '../../types';
|
|
3
3
|
import type { RestArguments, RestArgumentsNoBody } from '../api';
|
|
4
4
|
import type { RawFile } from '../shared';
|
|
5
5
|
export interface GuildRoutes {
|
|
@@ -174,6 +174,15 @@ export interface GuildRoutes {
|
|
|
174
174
|
delete(args?: RestArgumentsNoBody): Promise<RESTDeleteAPIGuildTemplateResult>;
|
|
175
175
|
};
|
|
176
176
|
};
|
|
177
|
+
'soundboard-sounds': {
|
|
178
|
+
get(args?: RestArgumentsNoBody): Promise<RESTGetAPIGuildSoundboardSoundsResult>;
|
|
179
|
+
post(args: RestArguments<RESTPostAPIGuildSoundboardSound>): Promise<RESTPostAPIGuildSoundboardSoundResult>;
|
|
180
|
+
(id: string): {
|
|
181
|
+
get(args?: RestArgumentsNoBody): Promise<RESTPostAPIGuildSoundboardSoundResult>;
|
|
182
|
+
patch(args?: RestArguments<RESTPatchAPIGuildSoundboardSound>): Promise<RESTPatchAPIGuildSoundboardSoundResult>;
|
|
183
|
+
delete(args?: RestArgumentsNoBody): Promise<never>;
|
|
184
|
+
};
|
|
185
|
+
};
|
|
177
186
|
};
|
|
178
187
|
};
|
|
179
188
|
}
|
|
@@ -4,12 +4,12 @@ import type { GatewayRoutes } from './gateway';
|
|
|
4
4
|
import type { GuildRoutes } from './guilds';
|
|
5
5
|
import type { InteractionRoutes } from './interactions';
|
|
6
6
|
import type { InviteRoutes } from './invites';
|
|
7
|
+
import type { SoundboardRoutes } from './soundboard';
|
|
7
8
|
import type { StageInstanceRoutes } from './stage-instances';
|
|
8
9
|
import type { StickerRoutes } from './stickers';
|
|
9
10
|
import type { UserRoutes } from './users';
|
|
10
11
|
import type { VoiceRoutes } from './voice';
|
|
11
12
|
import type { WebhookRoutes } from './webhooks';
|
|
12
|
-
export type { SoundboardRoutes } from './soundboard';
|
|
13
13
|
export * from './cdn';
|
|
14
|
-
export interface APIRoutes extends ApplicationRoutes, ChannelRoutes, GatewayRoutes, GuildRoutes, InteractionRoutes, InviteRoutes, StageInstanceRoutes, StickerRoutes, UserRoutes, VoiceRoutes, WebhookRoutes {
|
|
14
|
+
export interface APIRoutes extends ApplicationRoutes, ChannelRoutes, GatewayRoutes, GuildRoutes, InteractionRoutes, InviteRoutes, StageInstanceRoutes, StickerRoutes, UserRoutes, VoiceRoutes, WebhookRoutes, SoundboardRoutes {
|
|
15
15
|
}
|
|
@@ -1,23 +1,7 @@
|
|
|
1
|
-
import type { RESTGetAPIDefaultsSoundboardSoundsResult
|
|
2
|
-
import type {
|
|
1
|
+
import type { RESTGetAPIDefaultsSoundboardSoundsResult } from '../../types';
|
|
2
|
+
import type { RestArgumentsNoBody } from '../api';
|
|
3
3
|
export interface SoundboardRoutes {
|
|
4
|
-
channels(id: string): {
|
|
5
|
-
'send-soundboard-sound': {
|
|
6
|
-
post(args: RestArguments<RESTPostAPISendSoundboardSound>): Promise<never>;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
4
|
'soundboard-default-sounds': {
|
|
10
5
|
get(args?: RestArgumentsNoBody): Promise<RESTGetAPIDefaultsSoundboardSoundsResult>;
|
|
11
6
|
};
|
|
12
|
-
guilds(id: string): {
|
|
13
|
-
get(args?: RestArgumentsNoBody): Promise<RESTGetAPIGuildSoundboardSoundsResult>;
|
|
14
|
-
'soundboard-sounds': {
|
|
15
|
-
post(args: RestArguments<RESTPostAPIGuildSoundboardSound>): Promise<RESTPostAPIGuildSoundboardSoundResult | undefined>;
|
|
16
|
-
(id: string): {
|
|
17
|
-
get(args?: RestArgumentsNoBody): Promise<RESTPostAPIGuildSoundboardSoundResult>;
|
|
18
|
-
patch(args?: RestArguments<RESTPatchAPIGuildSoundboardSound>): Promise<RESTPatchAPIGuildSoundboardSoundResult>;
|
|
19
|
-
delete(args?: RestArgumentsNoBody): Promise<never>;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
7
|
}
|
package/lib/client/base.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { CommandHandler } from '../commands/handler';
|
|
|
7
7
|
import { ApplicationShorter, ChannelShorter, EmojiShorter, GuildShorter, InteractionShorter, Logger, type MakeRequired, MemberShorter, MessageShorter, ReactionShorter, RoleShorter, TemplateShorter, ThreadShorter, UsersShorter, WebhookShorter } from '../common';
|
|
8
8
|
import { HandleCommand } from '../commands/handle';
|
|
9
9
|
import { BanShorter } from '../common/shorters/bans';
|
|
10
|
+
import { SoundboardShorter } from '../common/shorters/soundboard';
|
|
10
11
|
import { VoiceStateShorter } from '../common/shorters/voiceStates';
|
|
11
12
|
import type { Awaitable, DeepPartial, IntentStrings, OmitInsert, PermissionStrings, When } from '../common/types/util';
|
|
12
13
|
import type { ComponentCommand, ModalCommand } from '../components';
|
|
@@ -33,6 +34,7 @@ export declare class BaseClient {
|
|
|
33
34
|
bans: BanShorter;
|
|
34
35
|
interactions: InteractionShorter;
|
|
35
36
|
voiceStates: VoiceStateShorter;
|
|
37
|
+
soundboards: SoundboardShorter;
|
|
36
38
|
debugger?: Logger;
|
|
37
39
|
logger: Logger;
|
|
38
40
|
langs?: LangsHandler | undefined;
|
package/lib/client/base.js
CHANGED
|
@@ -11,6 +11,7 @@ const node_fs_1 = require("node:fs");
|
|
|
11
11
|
const utils_1 = require("../api/utils/utils");
|
|
12
12
|
const handle_1 = require("../commands/handle");
|
|
13
13
|
const bans_1 = require("../common/shorters/bans");
|
|
14
|
+
const soundboard_1 = require("../common/shorters/soundboard");
|
|
14
15
|
const voiceStates_1 = require("../common/shorters/voiceStates");
|
|
15
16
|
const handler_2 = require("../components/handler");
|
|
16
17
|
const handler_3 = require("../langs/handler");
|
|
@@ -32,6 +33,7 @@ class BaseClient {
|
|
|
32
33
|
bans = new bans_1.BanShorter(this);
|
|
33
34
|
interactions = new common_1.InteractionShorter(this);
|
|
34
35
|
voiceStates = new voiceStates_1.VoiceStateShorter(this);
|
|
36
|
+
soundboards = new soundboard_1.SoundboardShorter(this);
|
|
35
37
|
debugger;
|
|
36
38
|
logger = new common_1.Logger({
|
|
37
39
|
name: '[Seyfert]',
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { RESTPatchAPIGuildSoundboardSound, RESTPostAPIGuildSoundboardSound, RESTPostAPISendSoundboardSound } from '../../types';
|
|
2
|
+
import { BaseShorter } from './base';
|
|
3
|
+
export declare class SoundboardShorter extends BaseShorter {
|
|
4
|
+
getDefaults(): Promise<import("../../types").RESTGetAPIDefaultsSoundboardSoundsResult>;
|
|
5
|
+
send(channelId: string, body: RESTPostAPISendSoundboardSound): Promise<never>;
|
|
6
|
+
list(guildId: string): Promise<import("../../types").RESTGetAPIGuildSoundboardSoundsResult>;
|
|
7
|
+
get(guildId: string, soundID: string): Promise<import("../../types").APISoundBoard>;
|
|
8
|
+
create(guildId: string, body: RESTPostAPIGuildSoundboardSound): Promise<import("../../types").APISoundBoard>;
|
|
9
|
+
edit(guildId: string, soundID: string, body: RESTPatchAPIGuildSoundboardSound): Promise<import("../../types").APISoundBoard>;
|
|
10
|
+
delete(guildId: string, soundID: string, reason?: string): Promise<never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SoundboardShorter = void 0;
|
|
4
|
+
const base_1 = require("./base");
|
|
5
|
+
class SoundboardShorter extends base_1.BaseShorter {
|
|
6
|
+
getDefaults() {
|
|
7
|
+
return this.client.proxy['soundboard-default-sounds'].get();
|
|
8
|
+
}
|
|
9
|
+
send(channelId, body) {
|
|
10
|
+
return this.client.proxy.channels(channelId)['send-soundboard-sound'].post({
|
|
11
|
+
body,
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
list(guildId) {
|
|
15
|
+
return this.client.proxy.guilds(guildId)['soundboard-sounds'].get();
|
|
16
|
+
}
|
|
17
|
+
get(guildId, soundID) {
|
|
18
|
+
return this.client.proxy.guilds(guildId)['soundboard-sounds'](soundID).get();
|
|
19
|
+
}
|
|
20
|
+
create(guildId, body) {
|
|
21
|
+
return this.client.proxy.guilds(guildId)['soundboard-sounds'].post({
|
|
22
|
+
body,
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
edit(guildId, soundID, body) {
|
|
26
|
+
return this.client.proxy.guilds(guildId)['soundboard-sounds'](soundID).patch({
|
|
27
|
+
body,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
delete(guildId, soundID, reason) {
|
|
31
|
+
return this.client.proxy.guilds(guildId)['soundboard-sounds'](soundID).delete({ reason });
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.SoundboardShorter = SoundboardShorter;
|
package/lib/events/handler.js
CHANGED
|
@@ -203,7 +203,6 @@ class EventHandler extends common_1.BaseHandler {
|
|
|
203
203
|
Event.fired = true;
|
|
204
204
|
this.logger.debug(`executed a custom event [${name}]`, Event.data.once ? 'once' : '');
|
|
205
205
|
await Promise.all([
|
|
206
|
-
// @ts-expect-error
|
|
207
206
|
Event.run(...args, this.client),
|
|
208
207
|
// @ts-expect-error
|
|
209
208
|
this.client.collectors.run(name, args, this.client),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "seyfert",
|
|
3
|
-
"version": "2.1.1-dev-
|
|
3
|
+
"version": "2.1.1-dev-11905584619.0",
|
|
4
4
|
"description": "The most advanced framework for discord bots",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib/index.js",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"@commitlint/cli": "^19.5.0",
|
|
26
26
|
"@commitlint/config-conventional": "^19.5.0",
|
|
27
27
|
"@types/node": "^22.9.0",
|
|
28
|
-
"husky": "^9.1.
|
|
28
|
+
"husky": "^9.1.7",
|
|
29
29
|
"lint-staged": "^15.2.10",
|
|
30
30
|
"typescript": "^5.6.3",
|
|
31
|
-
"vitest": "^2.1.
|
|
31
|
+
"vitest": "^2.1.5"
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://seyfert.dev",
|
|
34
34
|
"repository": {
|