dolfies / discord.py-self

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

intents #486

Closed WISH12345 closed 1 year ago

WISH12345 commented 1 year ago

Summary

Discord is asking for intents

Reproduction Steps

ran the code supplied

Code

import discord
from discord.ext import commands

token = "TOKEN HERE"

bot = commands.Bot(command_prefix='>', self_bot=True)

@bot.command()
async def ping(ctx):
    await ctx.send('pong')

bot.run('token')

Expected Results

expected result: working selfbot

Actual Results

Traceback (most recent call last): File "c:\Users\WSH3\Downloads\grindbot 2\test.py", line 6, in bot = commands.Bot(command_prefix='>', self_bot=True) TypeError: BotBase.init() missing 1 required keyword-only argument: 'intents'

System Information

Checklist

Additional Information

No response

dolfies commented 1 year ago

As evident by your system information, you are using upstream discord.py, not this fork. You cannot have both installed in the same environment.