feat: disable invite for private bots

This commit is contained in:
Junseo Park 2021-03-01 20:50:49 +09:00
parent a13256242c
commit a4bbca6c3e

View File

@ -86,8 +86,11 @@ 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'
>
</a> : <Link
href={ href={
bot.url || bot.url ||
`https://discordapp.com/oauth2/authorize?client_id=${bot.id}&scope=bot&permissions=0` `https://discordapp.com/oauth2/authorize?client_id=${bot.id}&scope=bot&permissions=0`
@ -100,8 +103,7 @@ const BotCard = ({ manage = false, bot }: BotProps): JSX.Element => {
> >
</a> </a>
</Link> </Link>}
)}
</div> </div>
</div> </div>
</div> </div>