feat(api): public bot warning

This commit is contained in:
Isaac
2025-01-31 04:45:22 +00:00
parent 55660e8c4e
commit 96cc84e13c
2 changed files with 5 additions and 0 deletions

View File

@@ -26,6 +26,10 @@ module.exports.get = fastify => ({
permission: 'EmbedLinks',
});
}
if (process.env.PUBLIC_BOT === 'false' && client.application.botPublic) {
problems.push({ id: 'botPublic' });
}
}
return problems;