Ask coding questions

← Back to all posts
Why is Discord not being Imported?
SlapStick (0)

I am a new coder, and would like to code a bot for me and my friends, but when I put import discord it is a syntax error. I am using Python

Coder100 (17045)

It's called discord, not

import discord
client = discord.Client()

async def on_ready():
 print("We have logged in as {.user}".format(client))'<TOKEN>')

replace <TOKEN> with the token that you got from the developer logs.

Afterwards, you may want to take a tutorial to get the most out of your bot.

ch1ck3n (1622)

i don't see any errors