lunarflu HF Staff commited on
Commit
1b95e91
·
1 Parent(s): 76edfd8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -53,7 +53,7 @@ class ButtonView(discord.ui.View):
53
  self.stop()
54
  #-------------------------------------------
55
  async def invoke_dfif2(self, image_path):
56
- ctx = await self.ctx.bot.get_context(self.ctx)
57
  await ctx.invoke(ctx.bot.get_command('dfif2'), image_path=image_path, stage_1_result_path=self.stage_1_result_path)
58
 
59
  @discord.ui.button(label='Image 1', style=discord.ButtonStyle.blurple)
 
53
  self.stop()
54
  #-------------------------------------------
55
  async def invoke_dfif2(self, image_path):
56
+ ctx = await self.ctx.get_context(self.ctx.message)
57
  await ctx.invoke(ctx.bot.get_command('dfif2'), image_path=image_path, stage_1_result_path=self.stage_1_result_path)
58
 
59
  @discord.ui.button(label='Image 1', style=discord.ButtonStyle.blurple)