chore: add license related enforcements

This commit is contained in:
skinmaker1345 2025-06-27 20:17:28 +09:00
parent e3aea944bf
commit 43fdf826af
2 changed files with 7 additions and 3 deletions

View File

@ -5,6 +5,8 @@ import type { NextPageContext } from 'next'
export type Nullable<T> = T | null export type Nullable<T> = T | null
export type ValueOf<T> = T[keyof T]
export interface Bot { export interface Bot {
id: string id: string
name: string name: string
@ -32,7 +34,7 @@ export interface Bot {
owners: User[] | string[] owners: User[] | string[]
} }
export type BotEnforcementKeys = 'JOIN_ENFORCED' | 'JOIN_PARTIALLY_ENFORCED' export type BotEnforcementKeys = ValueOf<typeof botEnforcements>
export interface RawGuild { export interface RawGuild {
id: string id: string

View File

@ -121,9 +121,11 @@ export const botCategoryDescription = {
} }
export const botEnforcements = { export const botEnforcements = {
'서버 참여가 강제되는 명령어가 있습니다': 'JOIN_PARTIALLY_ENFORCED', '서버 참여가 강제되는 기능이 있습니다': 'JOIN_PARTIALLY_ENFORCED',
'서버 참여 없이는 봇의 핵심 기능을 사용할 수 없습니다': 'JOIN_ENFORCED', '서버 참여 없이는 봇의 핵심 기능을 사용할 수 없습니다': 'JOIN_ENFORCED',
} '라이선스 구매가 필요한 기능이 있습니다': 'LICENSE_PARTIALLY_ENFORCED',
'라이선스 구매 없이는 봇의 핵심 기능을 사용할 수 없습니다': 'LICENSE_ENFORCED',
} as const
export const botCategoryIcon = { export const botCategoryIcon = {
: 'fas fa-cogs', : 'fas fa-cogs',