# Seedcord

`class` in `http` · v0.2.3

<https://docs.seedcord.org/packages/http/0.2.3/classes/seedcord>

The HTTP-interactions bot host, a long-running node server around the engine.

Discovers handlers from `config.bot.interactions.path`, verifies and dispatches interactions on `start()`, and runs coordinated shutdown with an in-flight drain. The edge deploy path calls `createSeedcord` from a generated entry.

```ts
class Seedcord<Cfg extends HttpConfig = HttpConfig>
    extends Pluggable<"http", RuntimeOfConfig<Cfg>>
    implements Core, SeedcordInstance
```

## Constructors

### constructor

```ts
Seedcord(config: Cfg)
```

Constructs a new instance of the `Seedcord` class

## Properties

### bus

```ts
public readonly bus: Bus
```

### config

```ts
public readonly config: Cfg
```

### port

```ts
public get port(): number | undefined
```

The bound server port, populated once `start()` is listening.

### rateLimiter

```ts
public readonly rateLimiter: IRateLimiter
```

### rest

```ts
public readonly rest: REST
```

Workerd-compatible Discord REST client. `start()` sets the token.

### username

```ts
public get username(): string | undefined
```

The bot's discord username, populated by the ready fetch.

## Methods

### reset

```ts
protected static reset(): void
```

### start

```ts
public async start(): Promise<this>
```

Starts the host and runs the startup tasks.
