'I tried to get the token of the discord bot by json, but this problem keeps happening
Traceback (most recent call last):
File "/Users/imnyang/Documents/GitHub/ImBot/main.py", line 17, in <module>
bot = commands.Bot(command_prefix=f'{what_is_prefix}')
TypeError: __init__() missing 1 required keyword-only argument: 'intents'
I tried to get the token of the discord bot by json, but this problem keeps happening. This is my code :)
main.py
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
