fix guild

This commit is contained in:
Juni
2022-04-11 11:18:14 -04:00
parent 1c3a67c8a2
commit 43f5d238d8

View File

@@ -32,7 +32,7 @@ class ReactQuote(commands.Cog):
async def quote(self, ctx: commands.Context):
"""Recall Random Quote"""
# Your code will go here
quotes = await self.config.guild.quotes()
quotes = await self.config.guild(ctx.guild).quotes()
if quotes and len(quotes) > 0:
num = randrange(len(quotes))
await ctx.send(embed=self._buildQuote(quotes[num], num+1))