Browse Source

News: Fix interaction timeouting

master
Daniel Skýpala 4 months ago
parent
commit
8fcc250041
  1. 3
      hrochobot/cogs/news.py

3
hrochobot/cogs/news.py

@ -107,10 +107,11 @@ class News(commands.Cog):
@news.command(description="Posts news of given id to set channel.")
@discord.option("id", str, description="Id of entry to send.", autocomplete=autocomplete_news_ids)
async def post_news(self, ctx, id: int):
await ctx.defer(ephemeral=True)
err = await post_news(self.bot, ctx.guild, id)
if err:
return await ctx.respond(err, ephemeral=True)
return await ctx.respond(f"News posted.", ephemeral=True)
return await ctx.respond(f"News posted.")
def setup(bot):

Loading…
Cancel
Save