While making my first bot this error came "client = discord.client() TypeError: 'module' object is not callable"

Question:

import discord

client = discord.client()

client.run('token')

This is my first bot code, I am getting the error

  client = discord.client()
TypeError: 'module' object is not callable 

Please help me with what am I missing? I am trying to bring my Discord bot online

Asked By: Terugu Varshith

||

Answers:

Make sure you use the correct case.
It should be discord.Client() with an upper case ‘C’

import discord

client = discord.Client()

client.run(token)
Answered By: nigh_anxiety
Categories: questions Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.