mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-04 08:56:19 +00:00
Fix a few more type errors
This commit is contained in:
@ -215,6 +215,7 @@ class StreamIntegration(Integration):
|
||||
@property
|
||||
def role(self) -> Optional[Role]:
|
||||
"""Optional[:class:`Role`] The role which the integration uses for subscribers."""
|
||||
# The key is `int` but `int | None` will return `None` anyway.
|
||||
return self.guild.get_role(self._role_id) # type: ignore
|
||||
|
||||
async def edit(
|
||||
|
Reference in New Issue
Block a user