diff --git a/app/routers/bot.py b/app/routers/bot.py index 57c7850..0e62cbc 100644 --- a/app/routers/bot.py +++ b/app/routers/bot.py @@ -31,7 +31,7 @@ async def stop_bot(): raise HTTPException(status_code=400, detail=str(e)) @router.post("/join_voice") -async def join_voice_channel(request: VoiceChannelRequest): +async def join_voice_channel(request: VoiceChannelJoinRequest): try: await bot_manager.join_voice_channel(request.guild_id, request.channel_id) return {"status": f"Joined guild {request.guild_id} voice channel {request.channel_id}."} @@ -40,7 +40,7 @@ async def join_voice_channel(request: VoiceChannelRequest): raise HTTPException(status_code=400, detail=str(e)) @router.post("/leave_voice") -async def leave_voice_channel(request: VoiceChannelRequest): +async def leave_voice_channel(request: VoiceChannelLeaveRequest): try: await bot_manager.leave_voice_channel(request.guild_id) return {"status": f"Left guild {request.guild_id} voice channel."}