mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[Audio] Improve help string for [p]audioset emptydisconnect (#3051)
* enhance(audio): improve help string for [p]audioset emptydisconnect * chore(changelog): add towncrier entry
This commit is contained in:
parent
ec834a0666
commit
bc5c2513f6
1
changelog.d/audio/3051.enhance.rst
Normal file
1
changelog.d/audio/3051.enhance.rst
Normal file
@ -0,0 +1 @@
|
|||||||
|
Improved explanation in help string for ``[p]audioset emptydisconnect``.
|
||||||
@ -1000,7 +1000,7 @@ class Audio(commands.Cog):
|
|||||||
@audioset.command()
|
@audioset.command()
|
||||||
@checks.mod_or_permissions(administrator=True)
|
@checks.mod_or_permissions(administrator=True)
|
||||||
async def emptydisconnect(self, ctx: commands.Context, seconds: int):
|
async def emptydisconnect(self, ctx: commands.Context, seconds: int):
|
||||||
"""Auto-disconnection after x seconds while stopped. 0 to disable."""
|
"""Auto-disconnect from channel when bot is alone in it for x seconds. 0 to disable."""
|
||||||
if seconds < 0:
|
if seconds < 0:
|
||||||
return await self._embed_msg(ctx, _("Can't be less than zero."))
|
return await self._embed_msg(ctx, _("Can't be less than zero."))
|
||||||
if 10 > seconds > 0:
|
if 10 > seconds > 0:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user