mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-22 15:53:08 +02:00
feat: public bot warnings
This commit is contained in:
parent
26329453ed
commit
cd71843bb0
@ -34,6 +34,12 @@ module.exports = class extends Listener {
|
||||
.catch(client.log.error);
|
||||
}
|
||||
|
||||
if (process.env.PUBLIC_BOT === 'true' && !client.application.botPublic) {
|
||||
client.log.warn('The `PUBLIC_BOT` environment variable is set to `true`, but the bot is not public.');
|
||||
} else if (process.env.PUBLIC_BOT === 'false' && client.application.botPublic) {
|
||||
client.log.warn('Your bot is public, but public features are disabled. Set the `PUBLIC_BOT` environment variable to `true`, or make your bot private.');
|
||||
}
|
||||
|
||||
// commands are not cached automatically
|
||||
await client.application.commands.fetch();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user