Discord python bot missing required position argument

So im trying to make my bot post to discord but im having so much trouble when i run my script it says "messing argument required position arguemnt 'id'

client = discord.Client

async def hello_world():
await client.send_message(client.get_server('401428140913590272'), 
content=None, tts=False, embed=None)`

loop = asyncio.get_event_loop()


1 answer

  • answered 2018-01-13 17:49 Mike Tung

    In your code you are missing the client token that discord gave you Additionally instead of client = discord.Client it should be client = discord.Client() a method not a property.

    Finally when you run the bot you are missing client.run(TOKEN HERE)