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

NameTypeDescription
dataRawServerMemberBanThe raw data of the ban
clientClientThe client
serverIDstringThe ID of the server the member was banned from

Overrides

Base.constructor

Defined in

lib/structures/ServerMemberBan.ts:55open in new window

Properties

ban

ban: MemberBan

The ban information

Defined in

lib/structures/ServerMemberBan.ts:32open in new window


client

client: Client

The bot client

Inherited from

Base.client

Defined in

lib/structures/Base.ts:13open in new window


id

id: string

The ID of the item

Inherited from

Base.id

Defined in

lib/structures/Base.ts:16open in new window


member

member: ServerMember

The member that was banned

Defined in

lib/structures/ServerMemberBan.ts:37open in new window


serverID

serverID: string

The ID of the server the member was banned from

Defined in

lib/structures/ServerMemberBan.ts:42open in new window


user

user: User

The user data of the member that was banned

Defined in

lib/structures/ServerMemberBan.ts:47open in new window

Accessors

server

get server(): Server | Promise<Server>

The server the member was banned from

Returns

Server | Promise<Server>

Defined in

lib/structures/ServerMemberBan.ts:80open in new window

Methods

toJSON

toJSON(): ServerMemberBanData

Returns the JSON representation of the item

Returns

ServerMemberBanData

Overrides

Base.toJSON

Defined in

lib/structures/ServerMemberBan.ts:87open in new window


update

Protected update(data): void

Parameters

NameType
dataRawServerMemberBan

Returns

void

Overrides

Base.update

Defined in

lib/structures/ServerMemberBan.ts:95open in new window

Last Updated:
Contributors: Reinhardt