Update app.py
Browse files
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.
|
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)
|