Skip to content

Commit

Permalink
Remove _set_verify_key internal function
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMaster3558 committed Sep 1, 2023
1 parent 2b83a81 commit 7738e7a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions aiointeractions/app.py
Expand Up @@ -186,9 +186,6 @@ async def interactions_handler(self, request: web.Request) -> web.Response:
response = await discord.utils.maybe_coroutine(self.success_response, request)
return web.Response(status=200, body=response)

def _set_verify_key(self, verify_key: str) -> None: # pragma: no cover
self.verify_key = VerifyKey(bytes.fromhex(verify_key))

async def setup(self, token: str) -> None: # pragma: no cover
"""
Setup the discord client by logging in and fetching the servers verification keys.
Expand All @@ -205,7 +202,7 @@ async def setup(self, token: str) -> None: # pragma: no cover
await self.client.login(token)
assert self.client.application is not None

self._set_verify_key(self.client.application.verify_key)
self.verify_key = VerifyKey(bytes.fromhex(self.client.application.verify_key))

async def start(self, token: str, **kwargs: Any) -> None: # pragma: no cover
"""
Expand Down

0 comments on commit 7738e7a

Please sign in to comment.