mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-05 17:36:15 +00:00
Add return type hint for some functions
This commit is contained in:
@ -62,7 +62,9 @@ class WelcomeChannel:
|
||||
The emoji used beside the channel description.
|
||||
"""
|
||||
|
||||
def __init__(self, *, channel: Snowflake, description: str, emoji: Optional[Union[PartialEmoji, Emoji, str]] = None):
|
||||
def __init__(
|
||||
self, *, channel: Snowflake, description: str, emoji: Optional[Union[PartialEmoji, Emoji, str]] = None
|
||||
) -> None:
|
||||
self.channel = channel
|
||||
self.description = description
|
||||
self.emoji = emoji
|
||||
@ -120,7 +122,7 @@ class WelcomeScreen:
|
||||
The channels shown on the welcome screen.
|
||||
"""
|
||||
|
||||
def __init__(self, *, data: WelcomeScreenPayload, guild: Guild):
|
||||
def __init__(self, *, data: WelcomeScreenPayload, guild: Guild) -> None:
|
||||
self._state = guild._state
|
||||
self._guild = guild
|
||||
self._store(data)
|
||||
|
Reference in New Issue
Block a user