mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 06:20:24 +00:00
feat: added blocked state
This commit is contained in:
parent
a4bbca6c3e
commit
2d7cfabfc0
@ -44,6 +44,13 @@ const Bots: NextPage<BotsProps> = ({ data, date, user, theme, setTheme }) => {
|
|||||||
: `https://cdn.discordapp.com/embed/avatars/${Number(data.tag) % 5}.png?size=1024`
|
: `https://cdn.discordapp.com/embed/avatars/${Number(data.tag) % 5}.png?size=1024`
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
{
|
||||||
|
data.state === 'blocked' ? <div className='pb-40'>
|
||||||
|
<Message type='error'>
|
||||||
|
<h2 className='text-lg font-black'>해당 봇은 관리자에 의해 삭제되었습니다.</h2>
|
||||||
|
</Message>
|
||||||
|
</div>
|
||||||
|
: <>
|
||||||
<div className='w-full pb-2'>
|
<div className='w-full pb-2'>
|
||||||
{
|
{
|
||||||
data.state === 'private' ? <Message type='info'>
|
data.state === 'private' ? <Message type='info'>
|
||||||
@ -215,6 +222,8 @@ const Bots: NextPage<BotsProps> = ({ data, date, user, theme, setTheme }) => {
|
|||||||
<Advertisement />
|
<Advertisement />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</>
|
||||||
|
}
|
||||||
</Container>
|
</Container>
|
||||||
|
|
||||||
<Footer color='bg-transparent text-discord-black text-white hidden md:block transform rotate-180' theme={theme} setTheme={setTheme} />
|
<Footer color='bg-transparent text-discord-black text-white hidden md:block transform rotate-180' theme={theme} setTheme={setTheme} />
|
||||||
|
|||||||
@ -143,7 +143,7 @@ export type Theme = 'dark' | 'light' | 'system'
|
|||||||
|
|
||||||
export type Status = 'online' | 'offline' | 'dnd' | 'idle' | 'streaming' | null
|
export type Status = 'online' | 'offline' | 'dnd' | 'idle' | 'streaming' | null
|
||||||
|
|
||||||
export type BotState = 'ok' | 'reported' | 'archived' | 'private'
|
export type BotState = 'ok' | 'reported' | 'blocked' | 'archived' | 'private'
|
||||||
|
|
||||||
export type Library =
|
export type Library =
|
||||||
| 'discord.js'
|
| 'discord.js'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user