mirror of
https://github.com/discordeno/discordeno.git
synced 2026-05-21 02:40:08 +00:00
chore: Code changes & formatting and linting (#3552)
* Do some code changes & run prettier and eslint
* Fix test:test-type script
* Apply code review suggestions
* update heartbeat interval & add a reason for the specific value
* Fix husky error
* Update to TS 5.5
And use ${configDir}
* Fix test.json tsconfig base
---------
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
This commit is contained in:
@@ -63,7 +63,7 @@ export const GATEWAY_INTENTS = Intents.Guilds | Intents.GuildMessages
|
||||
// Helper functions
|
||||
|
||||
function assertEnv(env: string): string {
|
||||
if (process.env[env]) return process.env[env]!
|
||||
if (process.env[env]) return process.env[env]
|
||||
|
||||
throw new TypeError(`The '${env}' environment variable must be set`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user