#I have a weird error

1 messages · Page 1 of 1 (latest)

rustic flume
#

PS C:\Users\redss\OneDrive\Desktop\Code Bot> & C:/Users/redss/AppData/Local/Programs/Python/Python311/python.exe "c:/Users/redss/OneDrive/Desktop/Code Bot/LearnCodeBot.py"
Traceback (most recent call last):
File "c:\Users\redss\OneDrive\Desktop\Code Bot\LearnCodeBot.py", line 4, in <module>
client = commands.Bot(command_prefix = "!")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: BotBase.init() missing 1 required keyword-only argument: 'intents'

#

That is the error

regal sandal
#

as it says, you need the intents kwarg.

rustic flume
#

Let me send my code

#

And tell me exactley what to do

regal sandal
#

do you know what a key-word argument is?

rustic flume
#

My token is out bc I dont want to share it

rustic flume
#

I only know basic stuff like very very basic

#

nvm I found a fix ty though

regal sandal
#

sorry, then I don't think that it's time to be building a Discord bot

#

like be warned, things here aren't like exactly simple for a beginner