From 619cfc140f8f29c2ddf89e777d9d85d9f02a70bf Mon Sep 17 00:00:00 2001 From: Larsundso Date: Sun, 12 Jan 2025 18:52:57 +0100 Subject: [PATCH] type export --- src/BaseClient/Bot/Cache/base.ts | 2 +- src/Typings/Redis.ts | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 src/Typings/Redis.ts diff --git a/src/BaseClient/Bot/Cache/base.ts b/src/BaseClient/Bot/Cache/base.ts index e0ad86b1..27e03615 100644 --- a/src/BaseClient/Bot/Cache/base.ts +++ b/src/BaseClient/Bot/Cache/base.ts @@ -51,7 +51,7 @@ type GuildBasedCommand = T extends true ? APIApplicationCommand & { guild_id: string } : APIApplicationCommand; -type DeriveRFromAPI = T extends APIThreadChannel & { +export type DeriveRFromAPI = T extends APIThreadChannel & { guild_id: string; member_id: string; } diff --git a/src/Typings/Redis.ts b/src/Typings/Redis.ts new file mode 100644 index 00000000..6f78a021 --- /dev/null +++ b/src/Typings/Redis.ts @@ -0,0 +1,25 @@ +export { type RAutomod } from 'src/BaseClient/Bot/Cache/automod.js'; +export { type RBan } from 'src/BaseClient/Bot/Cache/ban.js'; +export { type RChannel } from 'src/BaseClient/Bot/Cache/channel.js'; +export { type RCommand } from 'src/BaseClient/Bot/Cache/command.js'; +export { type RCommandPermission } from 'src/BaseClient/Bot/Cache/commandPermission.js'; +export { type REmoji } from 'src/BaseClient/Bot/Cache/emoji.js'; +export { type REvent } from 'src/BaseClient/Bot/Cache/event.js'; +export { type RGuild } from 'src/BaseClient/Bot/Cache/guild.js'; +export { type RGuildCommand } from 'src/BaseClient/Bot/Cache/guildCommand.js'; +export { type RIntegration } from 'src/BaseClient/Bot/Cache/integration.js'; +export { type RInvite } from 'src/BaseClient/Bot/Cache/invite.js'; +export { type RMember } from 'src/BaseClient/Bot/Cache/member.js'; +export { type RMessage } from 'src/BaseClient/Bot/Cache/message.js'; +export { type RReaction } from 'src/BaseClient/Bot/Cache/reaction.js'; +export { type RRole } from 'src/BaseClient/Bot/Cache/role.js'; +export { type RSoundboardSound } from 'src/BaseClient/Bot/Cache/soundboard.js'; +export { type RStageInstance } from 'src/BaseClient/Bot/Cache/stage.js'; +export { type RSticker } from 'src/BaseClient/Bot/Cache/sticker.js'; +export { type RThread } from 'src/BaseClient/Bot/Cache/thread.js'; +export { type RThreadMember } from 'src/BaseClient/Bot/Cache/threadMember.js'; +export { type RUser } from 'src/BaseClient/Bot/Cache/user.js'; +export { type RVoiceState } from 'src/BaseClient/Bot/Cache/voice.js'; +export { type RWebhook } from 'src/BaseClient/Bot/Cache/webhook.js'; + +export { type DeriveRFromAPI } from 'src/BaseClient/Bot/Cache/base.js';