# InvalidCustomId

`class` in `seedcord` · v0.12.0

<https://docs.seedcord.org/packages/seedcord/0.12.0/classes/invalid-custom-id>

Thrown when a customId wire is corrupt or tampered with and cannot be trusted.

This should not happen in normal use, so it is logged (emit is set true).

```ts
class InvalidCustomId extends CustomError
```

## Constructors

### constructor

```ts
InvalidCustomId(detail: string)
```

Constructs a new instance of the `InvalidCustomId` class

## Properties

### emit

```ts
get emit(): boolean
```

```ts
set emit(value: boolean)
```

Whether this error should be emitted to logs

Controls logging behavior. Errors with emit=true will always be logged, while emit=false errors may be suppressed in production.

### message

```ts
message: string;
```

### response

```ts
readonly response: EmbedBuilder
```
