Discord py Destination must be Channel, PrivateChannel, User, or Object cant post

So im trying to send a message to a discord server but when i run my script i get this error Destination must be Channel, PrivateChannel, User, or Object

client = discord.Client()



async def hello_world():
    channel = client.get_channel(401428140913590274)
    server = client.get_server(401428140913590272)
    await client.send_message(channel , content="test", tts=False)
loop = asyncio.get_event_loop()

loop.run_until_complete(hello_world())
loop.close()
client.run('token')