コード例 #1
0
ファイル: slash.py プロジェクト: hrmorley34/wowbot
    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
ファイル: slash.py プロジェクト: hrmorley34/wowbot
    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
ファイル: slash.py プロジェクト: hrmorley34/wowbot
    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)