make audioset autoplay guild-only (#3899)

This commit is contained in:
Draper 2020-06-04 12:33:33 +01:00 committed by GitHub
parent 2c313594da
commit d6435eff85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -418,12 +418,8 @@ class AudioSetCommands(MixinMeta, metaclass=CompositeMetaClass):
), ),
) )
@command_audioset.group(name="globaldb", enabled=False, hidden=True)
@commands.is_owner()
async def command_audioset_audiodb(self, ctx: commands.Context):
"""Change global db settings."""
@command_audioset.group(name="autoplay") @command_audioset.group(name="autoplay")
@commands.guild_only()
@commands.mod_or_permissions(manage_guild=True) @commands.mod_or_permissions(manage_guild=True)
async def command_audioset_autoplay(self, ctx: commands.Context): async def command_audioset_autoplay(self, ctx: commands.Context):
"""Change auto-play setting.""" """Change auto-play setting."""