Skip to content

Commit

Permalink
fix(rss): sending modal to existing interaction
Browse files Browse the repository at this point in the history
  • Loading branch information
ZRunner committed Nov 27, 2023
1 parent 6ab174d commit 7d98b68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fcts/rss.py
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,7 @@ async def change_text(self, ctx: MyContext, feed: Optional[str]=None):
cmd = await self.bot.get_command_mention("about")
await ctx.send(await self.bot._(ctx.guild, "errors.unknown2", about=cmd))
return
if ctx.interaction:
if ctx.interaction and not ctx.interaction.response.is_done():
# ask for text through a modal
text_modal = TextInputModal(
title=await self.bot._(ctx.channel, "rss.change-txt.title"),
Expand Down

0 comments on commit 7d98b68

Please sign in to comment.