fix guild
This commit is contained in:
@@ -32,7 +32,7 @@ class ReactQuote(commands.Cog):
|
|||||||
async def quote(self, ctx: commands.Context):
|
async def quote(self, ctx: commands.Context):
|
||||||
"""Recall Random Quote"""
|
"""Recall Random Quote"""
|
||||||
# Your code will go here
|
# 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:
|
if quotes and len(quotes) > 0:
|
||||||
num = randrange(len(quotes))
|
num = randrange(len(quotes))
|
||||||
await ctx.send(embed=self._buildQuote(quotes[num], num+1))
|
await ctx.send(embed=self._buildQuote(quotes[num], num+1))
|
||||||
|
|||||||
Reference in New Issue
Block a user