dolfies / discord.py-self

A fork of the popular discord.py for user accounts.
https://discordpy-self.rtfd.io/en/latest/
MIT License
718 stars 165 forks source link

Keyword missing 'intents' #757

Closed Esorlex closed 2 weeks ago

Esorlex commented 2 weeks ago

Summary

Needs intents, but when intents added, improper token.

Reproduction Steps

code????

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)

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.

Esorlex commented 2 weeks ago

I have fixxed it by pip uninstalling discord.py, and discord.py-self, and only reinstalling discord.py-self.