add warning for legacy config

This commit is contained in:
mudkipdev
2023-05-07 21:25:44 -06:00
parent 24aa35dc03
commit 122fc79d01
3 changed files with 16 additions and 3 deletions

View File

@@ -64,7 +64,7 @@ class TemplatesCog(commands.Cog, name="Templates"):
async def _list(self, ctx: commands.Context) -> None:
templates = "\n".join([f"- {template}" for template in self.templates])
await ctx.reply(f"Here are all of the available templates: ```\n{templates}```")
@commands.check(can_publish_announcements)
@templates.command()
async def view(self, ctx: commands.Context, *, template_name: str) -> None: