Пример #1
0
    async def player(self, ctx: SlashContext):
        await ctx.defer(hidden=True)  # prevent `failed`

        ctx.voice_client = ctx.guild.voice_client
        if await self.voicecog.join_voice(ctx):
            await cmd.play_with(ctx.guild.voice_client)
        await ctx.send(name, hidden=True)
Пример #2
0
    async def leave(self, ctx: SlashContext):
        await ctx.defer(hidden=True)

        ctx.voice_client = ctx.guild.voice_client
        await self.voicecog.leave_voice(ctx)
        await ctx.send("Goodbye!", hidden=True)
Пример #3
0
    async def join(self, ctx: SlashContext):
        await ctx.defer(hidden=True)

        ctx.voice_client = ctx.guild.voice_client
        await self.voicecog.join_voice(ctx)
        await ctx.send("Hello!", hidden=True)