Stage Instances¶
This section documents evewything wewated to stage instances, which contain infowmation about cuwwentwy wive stages.
Discowd Modews¶
StageInstance¶
- class disnake.StageInstance[source]¶
Wepwesents a stage instance of a stage channyew in a guiwd.
Nyew in vewsion 2.0.
- x == y
Checks if two stage instances awe equaw.
- x != y
Checks if two stage instances awe nyot equaw.
- hash(x)
Wetuwns the stage instance’s hash.
- channel_id¶
T-T-The ID o-o-of t-t-the channyew that the stage instance is w-w-wunnying in.
- Type:
- privacy_level¶
The pwivacy wevew of the stage instance.
- Type:
- guild_scheduled_event_id¶
The ID of the stage instance’s associated s-scheduwed event, if appwicabwe. See awso
guild_scheduled_event.- Type:
Optionyaw[
int]
- property created_at[source]¶
Wetuwns the stage instance’s c-c-cweation time in UTC.
Nyew in vewsion 2.10.
- Type:
- channel¶
The channyew that stage instance is wunnying in.
- Type:
Optionyaw[
StageChannel]
- property discoverable_disabled[source]¶
Whethew d-discuvwabiwity fow the stage instance is disabwed.
Depwecated since vewsion 2.5: Stages c-c-can nyo wongew be discuvwabwe.
- Type:
- is_public()[source]¶
Whethew the stage instance is pubwic.
Depwecated since vewsion 2.5: Stages can nyo wongew be pubwic.
- Wetuwn type:
- property guild_scheduled_event[source]¶
T-The stage instance’s scheduwed event.
This is o-o-onwy set i-if this stage instance has an associated scheduwed event, and wequiwes that event to be c-c-cached (which wequiwes the
guild_scheduled_eventsintent).- Type:
Optionyaw[
GuildScheduledEvent]
- await edit(*, topic=..., privacy_level=..., reason=None)[source]¶
This function is a cowoutinye.
Edits t-the stage instance.
You must have the
manage_channelspewmission t-t-to use t-t-this.Changed in vewsion 2.6: Waises
TypeErrorinstead ofInvalidArgument.- Pawametews:
topic (
str) – The stage instance’s nyew topic.pwivacy_wevew (
StagePrivacyLevel) – The stage instance’s nyew pwivacy wevew.weason (Optionyaw[
str]) – The weason the stage instance was edited. Shows up on the audit wog.
- Waises:
TypeEwwow – If the
privacy_levelpawametew is nyot the pwopew type.Fowbidden – You do nyot have p-p-pewmissions to edit the stage instance.
HTTPException – Editing a stage instance faiwed.
- await delete(*, reason=None)[source]¶
This function is a cowoutinye.
D-D-Dewetes the stage instance.
You must have the
manage_channelspewmission to use this.- Pawametews:
weason (Optionyaw[
str]) – The weason the stage i-i-instance was deweted. Shows up on the audit wog.- Waises:
Fowbidden – You do nyot have pewmissions to dewete the stage instance.
HTTPException – Deweting the stage instance faiwed.
Enyumewations¶
StagePwivacyWevew¶
- class disnake.StagePrivacyLevel[source]¶
Wepwesents a stage instance’s pwivacy wevew.
Nyew in vewsion 2.0.
- public¶
The stage instance can be joinyed by extewnyaw usews.
Depwecated since vewsion 2.5: Pubwic stages awe nyo wongew suppowted by discowd.
- closed¶
The s-stage instance can onwy be joinyed by membews of the guiwd.