From 70477d4a1e9e80772579b7d63de70d0efa82ed16 Mon Sep 17 00:00:00 2001 From: Steven Loria Date: Thu, 30 Dec 2021 16:47:27 -0500 Subject: [PATCH] feat(aslpp): add /tag edit (#385) --- bot/exts/asl_practice_partners.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/bot/exts/asl_practice_partners.py b/bot/exts/asl_practice_partners.py index 6bf2409c..dc21925d 100644 --- a/bot/exts/asl_practice_partners.py +++ b/bot/exts/asl_practice_partners.py @@ -203,7 +203,18 @@ async def tag_autocomplete(self, inter: GuildCommandInteraction, tag: str): @commands.has_permissions(kick_members=True) # Staff async def tag_sync(self, inter: GuildCommandInteraction): """(Authorized users only) Get tags list up to date""" - await inter.response.send_message(**self._tag_sync_impl()) + await inter.response.send_message(**self._tag_sync_impl(), ephemeral=True) + + @tag_command.sub_command(name="edit") + @commands.has_permissions(kick_members=True) # Staff + async def tag_edit(self, inter: GuildCommandInteraction): + """(Authorized users only) Edit tags""" + url = f"https://docs.google.com/spreadsheets/d/{settings.ASLPP_SHEET_KEY}/edit" + await inter.send( + "Go to the Google Sheets link below to edit tags.", + view=LinkView(label="Google Sheets Link", url=url), + ephemeral=True, + ) @tag_command.sub_command(name="list") async def tag_list(self, inter: GuildCommandInteraction):