From 4c6279b4446603c1e587dc7a59539b0e33a638a3 Mon Sep 17 00:00:00 2001 From: alwayscompiling Date: Sun, 10 Jul 2022 21:08:30 -0400 Subject: [PATCH] Made post command admin only. --- cogs/post_highscores/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cogs/post_highscores/__init__.py b/cogs/post_highscores/__init__.py index 329d182..e8077ad 100644 --- a/cogs/post_highscores/__init__.py +++ b/cogs/post_highscores/__init__.py @@ -19,6 +19,7 @@ class PostHighscores(commands.Cog, name="Post Highscores"): self.bot = bot @commands.command(name="post-scores") + @commands.has_permissions(administrator=True) async def post_highscores(self, ctx: commands.Context): """ A command which posts the highscore in the designated channel.