mirror of
https://github.com/koreanbots/core.git
synced 2025-12-15 22:10:24 +00:00
chore: add license related enforcements
This commit is contained in:
parent
f4d388cca7
commit
fd5f3c537e
@ -5,6 +5,8 @@ import type { NextPageContext } from 'next'
|
||||
|
||||
export type Nullable<T> = T | null
|
||||
|
||||
export type ValueOf<T> = T[keyof T]
|
||||
|
||||
export interface Bot {
|
||||
id: string
|
||||
name: string
|
||||
@ -32,7 +34,7 @@ export interface Bot {
|
||||
owners: User[] | string[]
|
||||
}
|
||||
|
||||
export type BotEnforcementKeys = 'JOIN_ENFORCED' | 'JOIN_PARTIALLY_ENFORCED'
|
||||
export type BotEnforcementKeys = ValueOf<typeof botEnforcements>
|
||||
|
||||
export interface RawGuild {
|
||||
id: string
|
||||
|
||||
@ -121,9 +121,11 @@ export const botCategoryDescription = {
|
||||
}
|
||||
|
||||
export const botEnforcements = {
|
||||
'서버 참여가 강제되는 명령어가 있습니다': 'JOIN_PARTIALLY_ENFORCED',
|
||||
'서버 참여가 강제되는 기능이 있습니다': 'JOIN_PARTIALLY_ENFORCED',
|
||||
'서버 참여 없이는 봇의 핵심 기능을 사용할 수 없습니다': 'JOIN_ENFORCED',
|
||||
}
|
||||
'라이선스 구매가 필요한 기능이 있습니다': 'LICENSE_PARTIALLY_ENFORCED',
|
||||
'라이선스 구매 없이는 봇의 핵심 기능을 사용할 수 없습니다': 'LICENSE_ENFORCED',
|
||||
} as const
|
||||
|
||||
export const botCategoryIcon = {
|
||||
관리: 'fas fa-cogs',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user