From 225d5963e431669877de9f9a83828fd4eca7e4e0 Mon Sep 17 00:00:00 2001 From: Karlo Prikratki Date: Sat, 9 Jul 2022 05:19:35 +0200 Subject: [PATCH] [DiscordExperiments] Add Ask Away (#278) --- discordexperiments/discordexperiments.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/discordexperiments/discordexperiments.py b/discordexperiments/discordexperiments.py index f4812e9..dc41eb6 100644 --- a/discordexperiments/discordexperiments.py +++ b/discordexperiments/discordexperiments.py @@ -182,3 +182,13 @@ class DiscordExperiments(commands.Cog): """ app_name = "Bobble League" 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)