Constructor
new TextTicket(client, manager, data)
The constructor of the text ticket class.
Parameters:
Name | Type | Description |
---|---|---|
client | Client | The client |
manager | TextTicketManager | The texst ticket manager |
data | TicketDataRaw | The data of the text ticket |
- Source
Extends
Members
channel
The channel of the ticket
- Overrides
- Source
channelId
The channel id of the ticket
- Overrides
- Source
client :Client
The client
Type:
- Client
- Overrides
- Source
guild
The guild of the ticket
- Overrides
- Source
guildId
The guild id of the ticket
- Overrides
- Source
manager :TextTicketManager
The manager of the ticket
Type:
- Overrides
- Source
member
The guild member of the ticket creator
- Overrides
- Source
number
The number of the ticket
- Overrides
- Source
participants
The participants of the ticket
- Overrides
- Source
status
The status of the ticket
- Overrides
- Source
type
The type of the ticket
- Overrides
- Source
user
The user of the ticket creator
- Overrides
- Source
userId
The user id of the creator of the ticket
- Overrides
- Source
Methods
(async) addMember(member) → {Promise.<TextTicket>|DisGroupDevError}
Adds a member to the ticket
Parameters:
Name | Type | Description |
---|---|---|
member | GuildMemberResolvable | The member to add |
- Source
Returns:
- Type:
- Promise.
<TextTicket> |DisGroupDevError
close() → {Promise.<TextTicket>|DisGroupDevError}
Closes the ticket
- Source
Returns:
- Type:
- Promise.
<TextTicket> |DisGroupDevError
delete() → {Promise.<Boolean>|DisGroupDevError}
Deletes the ticket
- Source
Returns:
- Type:
- Promise.
<Boolean> |DisGroupDevError
(async) removeMember(member) → {Promise.<TextTicket>|DisGroupDevError}
Removes a member to the ticket
Parameters:
Name | Type | Description |
---|---|---|
member | GuildMemberResolvable | The member to remove |
- Source
Returns:
- Type:
- Promise.
<TextTicket> |DisGroupDevError
rename(name) → {Promise.<TextTicket>|DisGroupDevError}
Renames the ticket
Parameters:
Name | Type | Description |
---|---|---|
name | String | The new name of the ticket |
- Source
Returns:
- Type:
- Promise.
<TextTicket> |DisGroupDevError
reopen() → {Promise.<TextTicket>|DisGroupDevError}
Reopens the ticket
- Source
Returns:
- Type:
- Promise.
<TextTicket> |DisGroupDevError