빌드 성공

빌드 성공본 업데이트
This commit is contained in:
mineseo-kim 2026-03-31 10:26:16 +09:00
parent c1d18d7d8f
commit aad37ef855
5 changed files with 11224 additions and 5650 deletions

7677
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,15 @@
import { SlashCommandBuilder, ChatInputCommandInteraction } from 'discord.js';
import {
SlashCommandBuilder,
SlashCommandOptionsOnlyBuilder,
SlashCommandSubcommandsOnlyBuilder,
ChatInputCommandInteraction,
} from 'discord.js';
/** Values returned from {@link SlashCommandBuilder} after chaining options or subcommands only. */
export type SlashCommandData =
| SlashCommandBuilder
| SlashCommandOptionsOnlyBuilder
| SlashCommandSubcommandsOnlyBuilder;
import { prisma } from '../database';
import { SupportedLocale } from '../i18n';
@ -77,7 +88,7 @@ export async function ensureGuildPaidForTrait(
* `trait` {@link Command.toModule} , .
*/
export type CommandModule = {
data: SlashCommandBuilder;
data: SlashCommandData;
execute: (interaction: ChatInputCommandInteraction, locale: SupportedLocale) => Promise<void>;
trait?: CommandTrait;
};
@ -103,7 +114,7 @@ export type CommandModule = {
* -only .
*/
export abstract class Command {
private cachedData: SlashCommandBuilder | null = null;
private cachedData: SlashCommandData | null = null;
/**
* . .
@ -128,7 +139,7 @@ export abstract class Command {
* {@link define} .
* `data` .
*/
get data(): SlashCommandBuilder {
get data(): SlashCommandData {
if (!this.cachedData) {
this.cachedData = this.define();
}
@ -139,7 +150,7 @@ export abstract class Command {
* (, , , , , `setDefaultMemberPermissions` )
* `SlashCommandBuilder` .
*/
protected abstract define(): SlashCommandBuilder;
protected abstract define(): SlashCommandData;
/**
* .

View File

@ -161,7 +161,7 @@ export class EventService {
const diff = event.startsAt.getTime() - now.getTime();
const dueOffsets = event.reminderOffsets.filter(offset =>
const dueOffsets = event.reminderOffsets.filter((offset: number) =>
offset > 0 &&
!event.sentReminderOffsets.includes(offset) &&
diff <= offset * 60 * 1000 &&

View File

@ -88,7 +88,7 @@ const FEATURE_DEFINITIONS: FeatureDefinition[] = [
],
resolveChannelIds: async (guildId) => {
const generators = await prisma.voiceGenerator.findMany({ where: { guildId } });
return generators.map((g) => g.channelId);
return generators.map((g: { channelId: string }) => g.channelId);
},
},
@ -103,7 +103,9 @@ const FEATURE_DEFINITIONS: FeatureDefinition[] = [
],
resolveChannelIds: async (guildId) => {
const generators = await prisma.voiceGenerator.findMany({ where: { guildId } });
return generators.map((g) => g.categoryId).filter((id): id is string => id !== null);
return generators
.map((g: { categoryId: string | null }) => g.categoryId)
.filter((id: string | null): id is string => id !== null);
},
},
@ -120,7 +122,7 @@ const FEATURE_DEFINITIONS: FeatureDefinition[] = [
scope: 'hierarchy',
resolveTargetRoleIds: async (guildId) => {
const inviteRoles = await prisma.inviteRole.findMany({ where: { guildId } });
return inviteRoles.map((ir) => ir.roleId);
return inviteRoles.map((ir: { roleId: string }) => ir.roleId);
},
},

9166
yarn.lock

File diff suppressed because it is too large Load Diff