Constructor
new GuildScheduledEvent()
Properties:
| Name | Type | Attributes | Description | ||||
|---|---|---|---|---|---|---|---|
channel |
VoiceChannel
|
StageChannel
|
Object
|
<nullable> |
The channel where the event will be held. This will be null if the event is external ( |
||||
creator |
User
|
<nullable> |
The user that created the scheduled event. For events created before October 25 2021, this will be null. Please see the relevant Discord documentation for more details |
||||
description |
String
|
<nullable> |
The description of the event |
||||
entityID |
String
|
<nullable> |
The entity ID associated to the event |
||||
entityMetadata |
Object
|
<nullable> |
Metadata for the event. This will be null if the event is not external ( |
||||
| Name | Type | Attributes | Description |
|---|---|---|---|
location |
String
|
<nullable> |
Location of the event |
entityTypeNumber
The entity type of the scheduled event
guildGuild
|
Object
The guild which the event belongs to. Can be partial with only id if not cached
idString
The ID of the guild event
imageString
The hash of the event's image, or null if no image
imageURLString
The URL of the event's image, or null if no image
nameString
The name of the event
privacyLevelNumber
Event privacy level
recurrenceRuleObject
The definitions for how often this event should recur. Note: properties have been camelCased, and ISO8601 timestamps are represented by epoch number.
scheduledStartTimeNumber
The time the event will start
scheduledEndTimeNumber
The time the event will end, or null if the event does not have a scheduled time to end
statusNumber
The status of the scheduled event
userCountNumber
The number of users subscribed to the event
- Source:
Methods
delete() → {Promise}
Delete this scheduled event
Returns:
- Type:
-
Promise
edit(event, reasonopt) → {Promise.<GuildScheduledEvent>}
Edit this scheduled event
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
event |
Object
|
The new guild scheduled event object
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
reason |
String
|
<optional> |
The reason to be displayed in audit logs |
Returns:
- Type:
-
Promise.<GuildScheduledEvent>
getUsers(optionsopt)
Get a list of users subscribed to the guild scheduled event
Parameters:
| Name | Type | Attributes | Description | |||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object
|
<optional> |
Options for the request
|