# PluginRegistry

`class` in `core` · v0.14.0

<https://seedcord.org/docs/packages/core/0.14.0/classes/plugin-registry>

```ts
class PluginRegistry
```

## Properties

### answersRequests

```ts
public get answersRequests(): boolean
```

### attachments

```ts
public get attachments(): readonly Attachment[]
```

### keys

```ts
public get keys(): readonly string[]
```

### members

```ts
public get members(): readonly {
    readonly key: string;
    readonly member: string;
}[]
```

## Methods

### add

```ts
public add(attachment: Attachment): void
```

### answer

```ts
public async answer(
    request: Request
): Promise<Response | undefined>
```

### assertFreeOn

```ts
public assertFreeOn(handler: HandlerClass): void
```

### assertMembersKept

```ts
public assertMembersKept<Handler>(
    handler: Handler,
    dispatch: DispatchContext
): Handler
```

### buildMembers

```ts
public async buildMembers(
    dispatch: DispatchContext,
    origin: DispatchOrigin
): Promise<void>
```

### prepareCommands

```ts
public async prepareCommands(
    commands: readonly RESTPostAPIApplicationCommandsJSONBody[]
): Promise<void>
```

### readsCommandFile

```ts
public readsCommandFile(file: string): boolean
```
