mirror of
https://github.com/discordeno/discordeno.git
synced 2026-05-30 15:30:07 +00:00
* fix: readme runtime list * Fix code style issues with ESLint * node 18 * fix: websocket import type * fix: body for interaction requests * fix: perma fix for type error in ci * fix: followupmessage option type * fix: e2e tests exit bug * fix: color console logger * fix: image file sending * Fix code style issues with ESLint * guild and role methods * Fix code style issues with ESLint * fix: dont send heartbeat if socket is not open * fix: remove logs * fox: remove more logs * fix some bugs in role tests * Switch to after hook style * hoti's speed snaker * auto convert objects for discord * Fix code style issues with ESLint * fix: remove dup imports * fix: i hate linters * speeder * fix: tests delete guilds * Fix code style issues with ESLint * fix: easier to provide custom intents in bot * fix: shutdown bot after test * fix: add getGuild * fix: multiple guild delete attempts * fix: add emoji e2e tests * fix: remaining old e2e rest tests * Fix code style issues with ESLint --------- Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
19 lines
507 B
TypeScript
19 lines
507 B
TypeScript
import { LogDepth, logger, LogLevels } from '@discordeno/utils'
|
|
|
|
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
|
|
|
|
export const e2ecache = {
|
|
guild: await rest.createGuild({ name: 'ddenotester' }),
|
|
deletedGuild: false,
|
|
communityGuildId: E2E_TEST_GUILD_ID
|
|
}
|