Skip to content

Commit

Permalink
feat: add scopes to BotIntegration.__repr__
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftinv committed Sep 3, 2022
1 parent e51cb9d commit 1a31521
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions disnake/integrations.py
Expand Up @@ -424,6 +424,12 @@ def _from_data(self, data: BotIntegrationPayload) -> None:
)
self.scopes: List[str] = data.get("scopes") or []

def __repr__(self):
return (
f"<{self.__class__.__name__} id={self.id}"
f" name={self.name!r} scopes={self.scopes!r}>"
)


def _integration_factory(value: str) -> Tuple[Type[Integration], str]:
if value == "discord":
Expand Down

0 comments on commit 1a31521

Please sign in to comment.