mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 00:40:07 +00:00
* 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>
21 lines
549 B
TypeScript
21 lines
549 B
TypeScript
import { createRestManager } from '../../src/manager.js'
|
|
import { E2E_TEST_GUILD_ID, token } from './constants.js'
|
|
// For debugging purposes
|
|
// logger.setLevel(LogLevels.Debug)
|
|
// logger.setDepth(LogDepth.Full)
|
|
|
|
export const rest = createRestManager({
|
|
token,
|
|
})
|
|
rest.deleteQueueDelay = 10000
|
|
|
|
const guild = await rest.createGuild({ name: 'ddenotester' })
|
|
const channel = await rest.createChannel(guild.id, { name: 'ddenotestchannel' })
|
|
|
|
export const e2eCache = {
|
|
guild,
|
|
channel,
|
|
deletedGuild: false,
|
|
communityGuildId: E2E_TEST_GUILD_ID,
|
|
}
|