[DiscordExperiments] Add Ask Away (#278)

This commit is contained in:
Karlo Prikratki
2022-07-09 05:19:35 +02:00
committed by GitHub
parent 4d0ba2d7e9
commit 225d5963e4

View File

@@ -182,3 +182,13 @@ class DiscordExperiments(commands.Cog):
""" """
app_name = "Bobble League" app_name = "Bobble League"
await self._create_invite(ctx, 947957217959759964, invite_max_age_in_seconds, app_name) await self._create_invite(ctx, 947957217959759964, invite_max_age_in_seconds, app_name)
@commands.cooldown(1, 10, discord.ext.commands.BucketType.guild)
@commands.command()
async def askaway(self, ctx, invite_max_age_in_seconds=86400):
"""
Create an Ask Away voice channel invite.
Use `0` for `invite_max_age_in_seconds` if you want the invite to be permanent.
"""
app_name = "Ask Away"
await self._create_invite(ctx, 976052223358406656, invite_max_age_in_seconds, app_name)