TextTicket

The text ticket class.

Constructor

new TextTicket(client, manager, data)

The constructor of the text ticket class.

Parameters:
NameTypeDescription
clientClient

The client

managerTextTicketManager

The texst ticket manager

dataTicketDataRaw

The data of the text ticket

Extends

Members

channel

The channel of the ticket

channelId

The channel id of the ticket

client :Client

The client

Type:
  • Client

guild

The guild of the ticket

guildId

The guild id of the ticket

manager :TextTicketManager

The manager of the ticket

member

The guild member of the ticket creator

number

The number of the ticket

participants

The participants of the ticket

status

The status of the ticket

type

The type of the ticket

user

The user of the ticket creator

userId

The user id of the creator of the ticket

Methods

(async) addMember(member) → {Promise.<TextTicket>|DisGroupDevError}

Adds a member to the ticket

Parameters:
NameTypeDescription
memberGuildMemberResolvable

The member to add

Returns:
Type: 
Promise.<TextTicket> | DisGroupDevError

close() → {Promise.<TextTicket>|DisGroupDevError}

Closes the ticket

Returns:
Type: 
Promise.<TextTicket> | DisGroupDevError

delete() → {Promise.<Boolean>|DisGroupDevError}

Deletes the ticket

Returns:
Type: 
Promise.<Boolean> | DisGroupDevError

(async) removeMember(member) → {Promise.<TextTicket>|DisGroupDevError}

Removes a member to the ticket

Parameters:
NameTypeDescription
memberGuildMemberResolvable

The member to remove

Returns:
Type: 
Promise.<TextTicket> | DisGroupDevError

rename(name) → {Promise.<TextTicket>|DisGroupDevError}

Renames the ticket

Parameters:
NameTypeDescription
nameString

The new name of the ticket

Returns:
Type: 
Promise.<TextTicket> | DisGroupDevError

reopen() → {Promise.<TextTicket>|DisGroupDevError}

Reopens the ticket

Returns:
Type: 
Promise.<TextTicket> | DisGroupDevError