mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 06:20:24 +00:00
feat: disable invite for private bots
This commit is contained in:
parent
a13256242c
commit
a4bbca6c3e
@ -86,22 +86,24 @@ const BotCard = ({ manage = false, bot }: BotProps): JSX.Element => {
|
|||||||
관리하기
|
관리하기
|
||||||
</a>
|
</a>
|
||||||
</Link>
|
</Link>
|
||||||
) : (
|
) : bot.state !== 'ok' ? <a
|
||||||
<Link
|
className='py-3 w-full text-center text-discord-blurple text-sm font-bold rounded-br-2xl hover:shadow-lg transition duration-100 ease-in opacity-50 cursor-default select-none'
|
||||||
href={
|
>
|
||||||
bot.url ||
|
초대하기
|
||||||
`https://discordapp.com/oauth2/authorize?client_id=${bot.id}&scope=bot&permissions=0`
|
</a> : <Link
|
||||||
}
|
href={
|
||||||
|
bot.url ||
|
||||||
|
`https://discordapp.com/oauth2/authorize?client_id=${bot.id}&scope=bot&permissions=0`
|
||||||
|
}
|
||||||
|
>
|
||||||
|
<a
|
||||||
|
rel='noopener noreferrer'
|
||||||
|
target='_blank'
|
||||||
|
className='py-3 w-full text-center text-discord-blurple hover:text-white text-sm font-bold hover:bg-discord-blurple rounded-br-2xl hover:shadow-lg transition duration-100 ease-in'
|
||||||
>
|
>
|
||||||
<a
|
초대하기
|
||||||
rel='noopener noreferrer'
|
</a>
|
||||||
target='_blank'
|
</Link>}
|
||||||
className='py-3 w-full text-center text-discord-blurple hover:text-white text-sm font-bold hover:bg-discord-blurple rounded-br-2xl hover:shadow-lg transition duration-100 ease-in'
|
|
||||||
>
|
|
||||||
초대하기
|
|
||||||
</a>
|
|
||||||
</Link>
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user