Python discord voice state context

Viewed 11
@bot.command(aliasses=['QUEUE', 'queue', 'q', 'Q'])
async def queue(ctx):
  member = ctx.message.author
  voice_state = ctx.member.voice
  QAPI = ctx.message.author.id
  if voice_state is None:
    await ctx.send(f'You need to be in "<#1022558265348980796>" Channel to use that ')
  else:
    await ctx.send(f'You been putted in Queue. "<@{QAPI}')

AttributeError: 'Context' object has no attribute 'member'

i can't get it. i setted the member, i specify what is voice_state.. any ideeas?

0 Answers
Related