# CoreBase

`interface` in `core` · v0.14.0

<https://seedcord.org/docs/packages/core/0.14.0/interfaces/core-base>

The transport-agnostic slice of the running framework, what core code (gates, notices, plugins'
agnostic surface) accesses through `ctx.core`. Each transport's `Core` extends it with its own
members.

```ts
interface CoreBase
```

## Properties

### applicationId

```ts
readonly applicationId: string
```

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

### bus

```ts
readonly bus: Bus
```

Publish and subscribe to framework and application events.

### config

```ts
readonly config: Config
```

Transports narrow this to their own config type.

### kv

```ts
readonly kv: Kv
```

Your handlers' records in `config.kv`, under the `app:` prefix.

### rateLimiter

```ts
readonly rateLimiter: IRateLimiter
```

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

### rest

```ts
readonly rest: REST
```

Discord REST client. On gateway this is the discord.js client's own, and it doesn't carry a token
until the Login phase. On http the token is set by `start()`.

### url

```ts
readonly url: URL
```

The address people reach your bot at, from `server.url` in your config. Its path always ends in
a slash.

Under `seedcord dev`, a bot without `server.url` gets its localhost address, and an http bot
whose `dev.tunnel` is a URL gets that URL.
