Interface CreateBanOptions

interface CreateBanOptions {
    deleteMessageDays?: 0 | 2 | 1 | 3 | 4 | 5 | 6 | 7;
    deleteMessageSeconds?: number;
    reason?: string;
}

Properties

deleteMessageDays?: 0 | 2 | 1 | 3 | 4 | 5 | 6 | 7

The number of days to delete messages from. Technically DEPRECATED. This is internally converted in to deleteMessageSeconds.

deleteMessageSeconds?: number

The number of seconds to delete messages from. Takes precedence over deleteMessageDays.

reason?: string

The reason for creating the ban.