chunky-dev / discord-bot

Friendly bot for the Chunky Discord server.
GNU Affero General Public License v3.0
2 stars 4 forks source link

`/gh` command is broken. #29

Closed ThatRedox closed 1 year ago

ThatRedox commented 1 year ago
ERROR:discord_slash:An exception has occurred while executing command `gh`:
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/discord_slash/client.py", line 1353, in invoke_command
    await func.invoke(ctx, **args)
  File "/usr/local/lib/python3.10/site-packages/discord_slash/model.py", line 210, in invoke
    return await self.func(*args, **kwargs)
  File "/app/main.py", line 280, in gh
    embed = utils.generate_gh_embed(number, self._repo)
  File "/app/utils.py", line 86, in generate_gh_embed
    repo = gh.get_repo(f"{issue[0]}/{issue[1]}")
AttributeError: 'Repository' object has no attribute 'get_repo'