Skip to content

Commit

Permalink
feat(aslpp): add /tag edit (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
sloria authored Dec 30, 2021
1 parent 87e1627 commit 70477d4
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion bot/exts/asl_practice_partners.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 70477d4

Please sign in to comment.