@@ -391,7 +391,7 @@ async def delete_messages(
391391 else :
392392 await self ._client .http .bulk_delete_messages (self .id , message_ids , reason )
393393
394- async def delete_message (self , message : Union [Snowflake_Type , "models.Message" ], reason : str = None ) -> None :
394+ async def delete_message (self , message : Union [Snowflake_Type , "models.Message" ], reason : str | None = None ) -> None :
395395 """
396396 Delete a single message from a channel.
397397
@@ -565,7 +565,7 @@ async def create_thread(
565565 invitable : Absent [bool ] = MISSING ,
566566 rate_limit_per_user : Absent [int ] = MISSING ,
567567 auto_archive_duration : AutoArchiveDuration = AutoArchiveDuration .ONE_DAY ,
568- reason : Absent [str ] = None ,
568+ reason : Absent [str ] | None = None ,
569569 ) -> "TYPE_THREAD_CHANNEL" :
570570 """
571571 Creates a new thread in this channel. If a message is provided, it will be used as the initial message.
@@ -605,7 +605,7 @@ async def create_thread(
605605 return self ._client .cache .place_channel_data (thread_data )
606606
607607 async def fetch_public_archived_threads (
608- self , limit : int = None , before : Optional ["models.Timestamp" ] = None
608+ self , limit : int | None = None , before : Optional ["models.Timestamp" ] = None
609609 ) -> "models.ThreadList" :
610610 """
611611 Get a `ThreadList` of archived **public** threads available in this channel.
@@ -625,7 +625,7 @@ async def fetch_public_archived_threads(
625625 return models .ThreadList .from_dict (threads_data , self ._client )
626626
627627 async def fetch_private_archived_threads (
628- self , limit : int = None , before : Optional ["models.Timestamp" ] = None
628+ self , limit : int | None = None , before : Optional ["models.Timestamp" ] = None
629629 ) -> "models.ThreadList" :
630630 """
631631 Get a `ThreadList` of archived **private** threads available in this channel.
@@ -645,7 +645,7 @@ async def fetch_private_archived_threads(
645645 return models .ThreadList .from_dict (threads_data , self ._client )
646646
647647 async def fetch_archived_threads (
648- self , limit : int = None , before : Optional ["models.Timestamp" ] = None
648+ self , limit : int | None = None , before : Optional ["models.Timestamp" ] = None
649649 ) -> "models.ThreadList" :
650650 """
651651 Get a `ThreadList` of archived threads available in this channel.
@@ -668,7 +668,7 @@ async def fetch_archived_threads(
668668 return models .ThreadList .from_dict (threads_data , self ._client )
669669
670670 async def fetch_joined_private_archived_threads (
671- self , limit : int = None , before : Optional ["models.Timestamp" ] = None
671+ self , limit : int | None = None , before : Optional ["models.Timestamp" ] = None
672672 ) -> "models.ThreadList" :
673673 """
674674 Get a `ThreadList` of threads the bot is a participant of in this channel.
@@ -1224,7 +1224,7 @@ async def set_permission(
12241224 view_audit_log : bool | None = None ,
12251225 view_channel : bool | None = None ,
12261226 view_guild_insights : bool | None = None ,
1227- reason : str = None ,
1227+ reason : str | None = None ,
12281228 ) -> None :
12291229 """
12301230 Set the Permission Overwrites for a given target.
@@ -1668,7 +1668,7 @@ async def create_thread_from_message(
16681668 name : str ,
16691669 message : Snowflake_Type ,
16701670 auto_archive_duration : AutoArchiveDuration = AutoArchiveDuration .ONE_DAY ,
1671- reason : Absent [str ] = None ,
1671+ reason : Absent [str ] | None = None ,
16721672 ) -> "GuildNewsThread" :
16731673 """
16741674 Creates a new news thread in this channel.
@@ -1751,7 +1751,7 @@ async def create_public_thread(
17511751 name : str ,
17521752 auto_archive_duration : AutoArchiveDuration = AutoArchiveDuration .ONE_DAY ,
17531753 rate_limit_per_user : Absent [int ] = MISSING ,
1754- reason : Absent [str ] = None ,
1754+ reason : Absent [str ] | None = None ,
17551755 ) -> "GuildPublicThread" :
17561756 """
17571757 Creates a new public thread in this channel.
@@ -1780,7 +1780,7 @@ async def create_private_thread(
17801780 invitable : Absent [bool ] = MISSING ,
17811781 auto_archive_duration : AutoArchiveDuration = AutoArchiveDuration .ONE_DAY ,
17821782 rate_limit_per_user : Absent [int ] = MISSING ,
1783- reason : Absent [str ] = None ,
1783+ reason : Absent [str ] | None = None ,
17841784 ) -> "GuildPrivateThread" :
17851785 """
17861786 Creates a new private thread in this channel.
@@ -1810,7 +1810,7 @@ async def create_thread_from_message(
18101810 name : str ,
18111811 message : Snowflake_Type ,
18121812 auto_archive_duration : AutoArchiveDuration = AutoArchiveDuration .ONE_DAY ,
1813- reason : Absent [str ] = None ,
1813+ reason : Absent [str ] | None = None ,
18141814 ) -> "GuildPublicThread" :
18151815 """
18161816 Creates a new public thread in this channel.
0 commit comments