Represents a scheduled event in a Guild.
Extends
BaseName | Constraints | Optional | Default | Description |
---|---|---|---|---|
Status | GuildScheduledEventStatus | Yes | GuildScheduledEventStatus | None |
The channel id in which the scheduled event will be hosted, or
null
if entity type is GuildScheduledEventEntityType.ExternalThe time the guild scheduled event will end at, or
null
if the event does not have a scheduled time to endThe timestamp the guild scheduled event will end at or
null
if the event does not have a scheduled time to endThe time the guild scheduled event will start at This can be potentially
null
only when it's an targetThe URL of this scheduled event's cover image
Returns
Name | Type | Optional | Description |
---|---|---|---|
options | Readonly<BaseImageURLOptions> | Yes | Options for image URL |
Creates an invite URL to this guild scheduled event.
Name | Type | Optional | Description |
---|---|---|---|
options | GuildScheduledEventInviteURLCreateOptions | Yes | The options to create the invite |
Deletes this guild scheduled event.
Example
Edits this guild scheduled event.
Example
Name | Constraints | Optional | Default | Description |
---|---|---|---|---|
AcceptableStatus | GuildScheduledEventSetStatusArg<Status> | No | None |
Name | Type | Optional | Description |
---|---|---|---|
options | GuildScheduledEventEditOptions<Status, AcceptableStatus> | No | The options to edit the guild scheduled event |
Fetches this guild scheduled event.
Name | Type | Optional | Description |
---|---|---|---|
force | boolean | Yes | Whether to skip the cache check and request the API |
Fetches subscribers of this guild scheduled event.
Name | Constraints | Optional | Default | Description |
---|---|---|---|---|
Options | FetchGuildScheduledEventSubscribersOptions | No | None |
Name | Type | Optional | Description |
---|---|---|---|
options | Options | Yes | Options for fetching the subscribers |
Indicates whether this guild scheduled event has an GuildScheduledEventStatus.Active status.
Indicates whether this guild scheduled event has a GuildScheduledEventStatus.Canceled status.
Indicates whether this guild scheduled event has a GuildScheduledEventStatus.Completed status.
Indicates whether this guild scheduled event has a GuildScheduledEventStatus.Scheduled status.
Sets the new description of the guild scheduled event.
Example
Sets the new location of the guild scheduled event.
Example
Sets a new name for the guild scheduled event.
Example
Sets a new time to end the event at.
Example
Name | Type | Optional | Description |
---|---|---|---|
scheduledEndTime | DateResolvable | No | The time to end the event at |
reason | string | Yes | The reason for changing the scheduled end time |
Sets a new time to schedule the event at.
Example
Name | Type | Optional | Description |
---|---|---|---|
scheduledStartTime | DateResolvable | No | The time to schedule the event at |
reason | string | Yes | The reason for changing the scheduled start time |
Sets the new status of the guild scheduled event. If you're working with TypeScript, use this method in conjunction with status type-guards like isScheduled to get only valid status as suggestion
Example
Name | Constraints | Optional | Default | Description |
---|---|---|---|---|
AcceptableStatus | GuildScheduledEventSetStatusArg<Status> | No | None |
Name | Type | Optional | Description |
---|---|---|---|
status | AcceptableStatus | No | The status of the guild scheduled event |
reason | string | Yes | The reason for changing the status |
When concatenated with a string, this automatically concatenates the event's URL instead of the object.