Skip to content

Commit 7484124

Browse files
authored
Fix imports and mis-name
1 parent b5123fc commit 7484124

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

discord/welcome_screen.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
from __future__ import annotations
2727

28-
from typing import TYPE_CHECKING, List, Union, overload
28+
from typing import TYPE_CHECKING, Optional, List, Union, overload
2929
from .utils import _get_as_snowflake, get
3030
from .partial_emoji import _EmojiTag
3131

@@ -88,7 +88,7 @@ def to_dict(self) -> WelcomeScreenChannelPayload:
8888
return dict_
8989

9090
@classmethod
91-
def _from_dict(cls, data: WelcomeScreenChannelPayload, guild: Guild) -> WelcomeChannel:
91+
def _from_dict(cls, data: WelcomeScreenChannelPayload, guild: Guild) -> WelcomeScreenChannel:
9292
channel_id = _get_as_snowflake(data, 'channel_id')
9393
channel = guild.get_channel(channel_id)
9494
description = data.get('description')
@@ -145,7 +145,7 @@ async def edit(
145145
self,
146146
*,
147147
description: Optional[str] = ...,
148-
welcome_channels: Optional[List[WelcomeChannel]] = ...,
148+
welcome_channels: Optional[List[WelcomeScreenChannel]] = ...,
149149
enabled: Optional[bool] = ...,
150150
reason: Optional[str] = ...,
151151
) -> None:

0 commit comments

Comments
 (0)