hoshii / Exports / ServerMemberBan
ServerMemberBan
Represents a server member ban
Hierarchy
Base
<string
>↳
ServerMemberBan
Table of contents
Constructors
Properties
Accessors
Methods
Constructors
constructor
• new ServerMemberBan(data
, client
, serverID
)
Create a new ServerMemberBan
Parameters
Name | Type | Description |
---|---|---|
data | RawServerMemberBan | The raw data of the ban |
client | Client | The client |
serverID | string | The ID of the server the member was banned from |
Overrides
Defined in
lib/structures/ServerMemberBan.ts:55
Properties
ban
• ban: MemberBan
The ban information
Defined in
lib/structures/ServerMemberBan.ts:32
client
• client: Client
The bot client
Inherited from
Defined in
id
• id: string
The ID of the item
Inherited from
Defined in
member
• member: ServerMember
The member that was banned
Defined in
lib/structures/ServerMemberBan.ts:37
serverID
• serverID: string
The ID of the server the member was banned from
Defined in
lib/structures/ServerMemberBan.ts:42
user
• user: User
The user data of the member that was banned
Defined in
lib/structures/ServerMemberBan.ts:47
Accessors
server
• get
server(): Server
| Promise
<Server
>
The server the member was banned from
Returns
Defined in
lib/structures/ServerMemberBan.ts:80
Methods
toJSON
▸ toJSON(): ServerMemberBanData
Returns the JSON representation of the item
Returns
Overrides
Defined in
lib/structures/ServerMemberBan.ts:87
update
▸ Protected
update(data
): void
Parameters
Name | Type |
---|---|
data | RawServerMemberBan |
Returns
void