# Seedcord

`class` in `gateway` · v0.1.4

<https://docs.seedcord.org/packages/gateway/0.1.4/classes/seedcord>

The gateway bot host. Opens a discord.js gateway session, discovers handlers, and runs coordinated startup and shutdown. Attach plugins with `attach()`.

```ts
class Seedcord
    extends Pluggable<"gateway", "server">
    implements Core, SeedcordInstance
```

## Constructors

### constructor

```ts
Seedcord(config: GatewayConfig)
```

Constructs a new instance of the `Seedcord` class

## Properties

### bot

```ts
public readonly bot: Bot
```

### bus

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

### config

```ts
public readonly config: GatewayConfig
```

### rateLimiter

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

### rest

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

The discord.js client's REST client. Its token is set during the Login phase.

### username

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

The bot's discord username, populated after login.

## Methods

### reset

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

### start

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

Starts the bot and runs all initialization tasks
