Closed Esorlex closed 2 weeks ago
Needs intents, but when intents added, improper token.
code????
import discord from discord.ext import commands import random import traceback import asyncio import json import os with open("token.txt", "r") as file: token = file.read().strip() def load_prefix(): if os.path.exists('PREFIX.txt'): with open('PREFIX.txt', 'r') as file: return file.read().strip() return "!" PREFIX = load_prefix() bot = commands.Bot(command_prefix=PREFIX, self_bot=True)
Logged in as user!
Exception has occurred: TypeError BotBase.init() missing 1 required keyword-only argument: 'intents' File "C:\Users\esorlexs\Desktop\folders\code\python\selfbots\general\main.py", line 21, in bot = commands.Bot(command_prefix=PREFIX, self_bot=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: BotBase.init() missing 1 required keyword-only argument: 'intents'
C:\Users\esorlexs>python -m discord -v
C:\Users\esorlexs>
I added the intents, and it still did not work, it said it was a invalid token.
I have fixxed it by pip uninstalling discord.py, and discord.py-self, and only reinstalling discord.py-self.
Summary
Needs intents, but when intents added, improper token.
Reproduction Steps
code????
Code
Expected Results
Logged in as user!
Actual Results
Exception has occurred: TypeError BotBase.init() missing 1 required keyword-only argument: 'intents' File "C:\Users\esorlexs\Desktop\folders\code\python\selfbots\general\main.py", line 21, in
bot = commands.Bot(command_prefix=PREFIX, self_bot=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: BotBase.init() missing 1 required keyword-only argument: 'intents'
System Information
C:\Users\esorlexs>python -m discord -v
C:\Users\esorlexs>
Checklist
Additional Information
I added the intents, and it still did not work, it said it was a invalid token.