module.exports = async (client, message) => {
  if (message === 'shutdown') {
    await client.log.info(`Shuting down!${client.shard ? ` | Shard ID: ${client.shard.id}` : ''}`, 'Client')
    await client.provider.destroy()
    await client.destroy()
    await process.exit(0)
  }
}

module.exports = async (client, message) => {
  if (message === 'shutdown') {
    await client.log.info(`Shuting down!${client.shard ? ` | Shard ID: ${client.shard.id}` : ''}`, 'Client')
    // Code to run before shutdown
    // ...
    process.exit(0)
  }
}

Fix bot not shutting down.
Fix: Fix bot not shutting down.
