Skip to content
Interfacehttpv0.10.2

Core

Main interface for Seedcord core functionality on the HTTP transport.

This interface can be augmented via declaration merging to add type-safe plugin definitions when using this.core in handlers.

interface Core extends CoreBase

applicationId

The bot's Discord application id. Throws if you read it before the host resolves it.

readonly applicationId: string

Inherited from:CoreBase

bus

Publish and subscribe to framework and application events.

readonly bus: Bus

Inherited from:CoreBase

rateLimiter

Sliding-window rate limiting, the Cooldown gate's backend and a public direct-use API.

readonly rateLimiter: IRateLimiter

Inherited from:CoreBase

rest

Discord REST client. On gateway this is the discord.js client's own, and it carries no token until the Login phase. On http the token is set by start().

readonly rest: REST

Inherited from:CoreBase