feat (voice): Loosen now cmd restrictions.

This commit is contained in:
2024-09-15 12:24:40 +10:00
parent 37f25f10ef
commit 66f7680482

View File

@@ -681,17 +681,14 @@ class VoiceTrackerCog(LionCog):
) )
@appcmds.guild_only @appcmds.guild_only
async def now_cmd(self, ctx: LionContext, async def now_cmd(self, ctx: LionContext,
tag: Optional[appcmds.Range[str, 0, 10]] = None, tag: Optional[appcmds.Range[str, 0, 75]] = None,
user: Optional[discord.Member] = None, user: Optional[discord.Member] = None,
clear: Optional[bool] = None clear: Optional[bool] = None
): ):
if not ctx.guild: if not ctx.guild:
return return
if not ctx.interaction:
return
t = self.bot.translator.t t = self.bot.translator.t
await ctx.interaction.response.defer(thinking=True, ephemeral=True)
is_moderator = await moderator_ctxward(ctx) is_moderator = await moderator_ctxward(ctx)
target = user if user is not None else ctx.author target = user if user is not None else ctx.author
session = self.get_session(ctx.guild.id, target.id, create=False) session = self.get_session(ctx.guild.id, target.id, create=False)
@@ -715,7 +712,7 @@ class VoiceTrackerCog(LionCog):
"{mention} has no running session!" "{mention} has no running session!"
)).format(mention=target.mention) )).format(mention=target.mention)
) )
await ctx.interaction.edit_original_response(embed=error) await ctx.reply(embed=error)
return return
if clear: if clear:
@@ -841,7 +838,7 @@ class VoiceTrackerCog(LionCog):
description=desc, description=desc,
timestamp=utc_now() timestamp=utc_now()
) )
await ctx.interaction.edit_original_response(embed=ack) await ctx.reply(embed=ack)
# ----- Configuration Commands ----- # ----- Configuration Commands -----
@LionCog.placeholder_group @LionCog.placeholder_group