Added owner check for audiostats (#5017)

* Added owner check for audiostats

* Update redbot/cogs/audio/core/commands/miscellaneous.py

Co-authored-by: Draper <27962761+Drapersniper@users.noreply.github.com>

* Update miscellaneous.py

Co-authored-by: Draper <27962761+Drapersniper@users.noreply.github.com>
This commit is contained in:
benno1237 2021-05-13 02:24:07 +02:00 committed by GitHub
parent c04c2efeff
commit 4bdc828670
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,6 +40,7 @@ class MiscellaneousCommands(MixinMeta, metaclass=CompositeMetaClass):
@commands.command(name="audiostats") @commands.command(name="audiostats")
@commands.guild_only() @commands.guild_only()
@commands.is_owner()
@commands.bot_has_permissions(embed_links=True, add_reactions=True) @commands.bot_has_permissions(embed_links=True, add_reactions=True)
async def command_audiostats(self, ctx: commands.Context): async def command_audiostats(self, ctx: commands.Context):
"""Audio stats.""" """Audio stats."""