Preview environment

interface BanOptions

export interface BanOptions

Options used to ban a user from a guild.

optional
deleteMessageDays? : number

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

optional
deleteMessageSeconds? : number

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

optional
reason? : string

The reason for the ban