Skip to content

BanOptions

typedef · Source

Options used to ban a user from a guild. Type: Object

Properties

days

optional

days: number

Number of days of messages to delete, must be between 0 and 7, inclusive This property is deprecated. Use deleteMessageSeconds instead.

Default: 0

deleteMessageSeconds

optional

deleteMessageSeconds: number

Number of seconds of messages to delete, must be between 0 and 604800 (7 days), inclusive

reason

optional

reason: string

The reason for the ban

Unofficial software. Not affiliated with or supported by Discord.