title: Discord.py - 'VoiceState' object has no attribute 'voice_channel'
body: <p>everyone. I'm writing a Discord bot, for play sound. but I'm faced with a problem.</p>
  
  <pre><code>    channel = ctx.message.author.voice.voice_channel
  AttributeError: 'VoiceState' object has no attribute 'voice_channel'
  
  discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'VoiceState' object has no attribute 'voice_channel
  </code></pre>
  
  <p>Could anyone here help me please? Thank you for any comments.</p>
  
  <p>Function:</p>
  
  <pre><code>import asyncio
  import discord, time
  from discord.ext import commands
  from discord.voice_client import VoiceClient
  
  @bot.command(pass_context=True)
  async def bb(ctx):
      user = ctx.message.author
      channel = ctx.message.author.voice.voice_channel
      await bot.join_voice_channel(channel)
      player = voice.create_ffmpeg_player('1.m4a')
      player.start()
  </code></pre>