GuildScheduledEvent

export class GuildScheduledEvent<S extends GuildScheduledEventStatus = GuildScheduledEventStatus> extends Base
export class GuildScheduledEvent<S extends GuildScheduledEventStatus = GuildScheduledEventStatus> extends Base
Represents a scheduled event in a Guild.

Extends

Base
NameConstraintsOptionalDefaultDescription
SGuildScheduledEventStatusYesGuildScheduledEventStatusNone
Readonly
channel:VoiceChannel | StageChannel | null
The channel associated with this scheduled event
channelId:Snowflake | null
The channel id in which the scheduled event will be hosted, or null if entity type is
Readonly
client:Client<true>
The client that instantiated this
Inherited from Base
Readonly
createdAt:Date
The time the guild scheduled event was created at
Readonly
createdTimestamp:number
The timestamp the guild scheduled event was created at
creator:User | null
The user that created this guild scheduled event
creatorId:Snowflake | null
The id of the user that created this guild scheduled event
description:string | null
The description of the guild scheduled event
entityId:Snowflake | null
The id of the hosting entity associated with the scheduled event
entityMetadata:GuildScheduledEventEntityMetadata | null
Additional metadata
The type of hosting entity associated with the scheduled event
Readonly
guild:Guild | null
The guild this scheduled event belongs to
guildId:Snowflake
The id of the guild this guild scheduled event belongs to
The id of the guild scheduled event
image:string | null
The cover image hash for this scheduled event
name:string
The name of the guild scheduled event
Readonly
partial:false
Whether this guild scheduled event is partial.
The privacy level of the guild scheduled event
Readonly
scheduledEndAt:Date | null
The time the guild scheduled event will end at, or null if the event does not have a scheduled time to end
scheduledEndTimestamp:number | null
The timestamp the guild scheduled event will end at or null if the event does not have a scheduled time to end
Readonly
scheduledStartAt:Date | null
The time the guild scheduled event will start at This can be potentially null only when it's an
scheduledStartTimestamp:number | null
The timestamp the guild scheduled event will start at
status:S
The status of the guild scheduled event
Readonly
url:string
The URL to the guild scheduled event
userCount:number | null
The number of users who are subscribed to this guild scheduled event
coverImageURL(options?):string | null
The URL of this scheduled event's cover image
Returns
NameTypeOptionalDescription
optionsReadonly<BaseImageURLOptions>YesOptions for image URL
createInviteURL(options?):Promise<string>
Creates an invite URL to this guild scheduled event.
NameTypeOptionalDescription
optionsGuildScheduledEventInviteURLCreateOptionsYesThe options to create the invite
delete():Promise<GuildScheduledEvent<S>>
Deletes this guild scheduled event.
edit(options):Promise<GuildScheduledEvent<T>>
Edits this guild scheduled event.
NameTypeOptionalDescription
optionsGuildScheduledEventEditOptions<S, T>NoThe options to edit the guild scheduled event
fetch(force?):Promise<GuildScheduledEvent<S>>
Fetches this guild scheduled event.
NameTypeOptionalDescription
forcebooleanYesWhether to skip the cache check and request the API
fetchSubscribers(options?):Promise<GuildScheduledEventManagerFetchSubscribersResult<T>>
Fetches subscribers of this guild scheduled event.
NameTypeOptionalDescription
optionsTYesOptions for fetching the subscribers
Indicates whether this guild scheduled event has an status.
Indicates whether this guild scheduled event has a status.
Indicates whether this guild scheduled event has a status.
Indicates whether this guild scheduled event has a status.
setDescription(description, reason?):Promise<GuildScheduledEvent<S>>
Sets the new description of the guild scheduled event.
NameTypeOptionalDescription
descriptionstringNoThe description of the guild scheduled event
reasonstringYesThe reason for changing the description
setLocation(location, reason?):Promise<GuildScheduledEvent<S>>
Sets the new location of the guild scheduled event.
NameTypeOptionalDescription
locationstringNoThe location of the guild scheduled event
reasonstringYesThe reason for changing the location
setName(name, reason?):Promise<GuildScheduledEvent<S>>
Sets a new name for the guild scheduled event.
NameTypeOptionalDescription
namestringNoThe new name of the guild scheduled event
reasonstringYesThe reason for changing the name
setScheduledEndTime(scheduledEndTime, reason?):Promise<GuildScheduledEvent<S>>
Sets a new time to end the event at.
NameTypeOptionalDescription
scheduledEndTimeDateResolvableNoThe time to end the event at
reasonstringYesThe reason for changing the scheduled end time
setScheduledStartTime(scheduledStartTime, reason?):Promise<GuildScheduledEvent<S>>
Sets a new time to schedule the event at.
NameTypeOptionalDescription
scheduledStartTimeDateResolvableNoThe time to schedule the event at
reasonstringYesThe reason for changing the scheduled start time
setStatus(status, reason?):Promise<GuildScheduledEvent<T>>
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
NameTypeOptionalDescription
statusTNoThe status of the guild scheduled event
reasonstringYesThe reason for changing the status
toJSON(...props):unknown
NameTypeOptionalDescription
...propsRecord<string, boolean | string>[]NoNone
Inherited from Base
toString():string
When concatenated with a string, this automatically concatenates the event's URL instead of the object.
valueOf():string