MemberBan

MemberBan

new MemberBan(serverId, banData) → {MemberBan.<UserSummary, (String|undefined), String, String>}

MemberBan constructor

Source:
Parameters:
Name Type Description
serverId String

The server id of the member ban

banData Object

The ban data

Name Type Description
serverMemberBan Object

The server member ban data

Name Type Description
user UserSummary

The user who was banned

reason String | undefined

The reason for the ban

bannedAt String

The date the user was banned

bannedBy String

The user who banned the user

Returns:
Type:
MemberBan.<UserSummary, (String|undefined), String, String>

The user who was banned, the reason for the ban, the date the user was banned, the user who banned the user

Members

(private, readonly) bannedAt :String

The date the user was banned

Source:
Type:
  • String

(readonly) bannedBy :String

The user id of the user who banned the user

Source:
Type:
  • String

(private, readonly) client :Client

The client

Source:
Type:

reason :String|null

The reason for the ban

Source:
Type:
  • String | null

(private, readonly) serverId :String

The server id of the member ban

Source:
Type:
  • String

(private, readonly) user :UserSummary

The UserSummary of the user who was banned

Source:
Type: