mirror of
https://github.com/hencaric/SCNewsBot.git
synced 2026-08-16 22:46:03 +01:00
add warning for legacy config
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user