Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

1
How do i resolve this? i am completely new to python, and am trying to create a discord bot for music.
Post Body

the error i am getting:

Traceback (most recent call last):

File "main.py", line 7, in <module>

client = commands.bot(command_prefix='$', intent = discord.Intents.all())

TypeError: 'module' object is not callable
---------

__My Code_________________________

import discord
from discord.ext import commands
import music
cogs = [music]
client = commands.bot(command_prefix='$', intent = discord.Intents.all())
for i in range(len(cogs)):
cogs(i).setup(client)
client.run("token")

Author
Account Strength
100%
Account Age
5 years
Verified Email
Yes
Verified Flair
No
Total Karma
506
Link Karma
237
Comment Karma
225
Profile updated: 5 days ago
Posts updated: 9 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
3 years ago