Added icon_url to database caching
This commit is contained in:
@@ -23,6 +23,7 @@ class Bumps(commands.Cog):
|
||||
@commands.command()
|
||||
async def bump(self, ctx):
|
||||
server = Servers(ctx.guild.id)
|
||||
server.update(icon_url=ctx.guild.icon_url_as(static_format="png"))
|
||||
guild = ctx.guild
|
||||
prefix = Servers(guild.id).getPrefix() if Servers(guild.id).hasPrefix else self.config["prefix"]
|
||||
|
||||
|
||||
@@ -99,7 +99,7 @@ class BumpSetup(commands.Cog):
|
||||
|
||||
webhook = await listing.create_webhook(name=self.config['bot_name'])
|
||||
|
||||
Servers(ctx.guild.id).add(webhook=webhook.id, invite=invite.id, color=color, description=description)
|
||||
Servers(ctx.guild.id).add(webhook=webhook.id, invite=invite.id, color=color, description=description, icon_url=ctx.guild.icon_url_as(static_format="png"))
|
||||
|
||||
await ctx.send("Setup complete! Server added to DB and the webhook was created.")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user