new MemberBan(serverId, banData) → {MemberBan.<UserSummary, (String|undefined), String, String>}
MemberBan constructor
Parameters:
Name | Type | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
serverId |
String
|
The server id of the member ban |
|||||||||||||||||||||
banData |
Object
|
The ban data
|
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
Type:
-
String
(readonly) bannedBy :String
The user id of the user who banned the user
Type:
-
String
reason :String|null
The reason for the ban
Type:
-
String
|null
(private, readonly) serverId :String
The server id of the member ban
Type:
-
String