Skip to content

Commit 5f3b4a9

Browse files
RedTeaDevColaIan
authored andcommitted
Fixed async error messages in GitHub class
Signed-off-by: ColaIan <colaian.yt@gmail.com>
1 parent 5c52c02 commit 5f3b4a9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

teapot/cogs/github.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010

1111
class GitHub(commands.Cog):
12+
"""Get repository info"""
1213

1314
def __init__(self, bot):
1415
self.bot = bot
@@ -48,9 +49,9 @@ async def github(self, ctx, arg):
4849

4950
await ctx.send(embed=em)
5051
elif req.status_code == 404:
51-
ctx.send(embed=teapot.messages.notfound("repository"))
52+
await ctx.send(embed=teapot.messages.notfound("repository"))
5253
else:
53-
ctx.send(embed=teapot.messages.error("repository"))
54+
await ctx.send(embed=teapot.messages.error("repository"))
5455

5556

5657
def setup(bot):

0 commit comments

Comments
 (0)