dolfies / discord.py-self

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

self_bot is not working in rebase version #207

Closed BridgeSenseDev closed 2 years ago

BridgeSenseDev commented 2 years ago

Summary

In the rebase version the bot listens to the commands of everyone but itself, with both self_bot=True or self_bot=False

Reproduction Steps

in the code below when i do >ping on my own account there is no response and no error, but when i use >ping on another account it gives a response. This only happens in the rebase version.

Code

import discord
from discord.ext import commands

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

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

bot.run("token")

Expected Results

image

Actual Results

image

System Information

Python v3.10 discord.py-self v2.0.0a1 aiohttp v3.8.1

Checklist

Additional Information

No response

TheOnlyWayUp commented 2 years ago

Can Reproduce, self_bot argument doesn't function as of fba0cc61199ebacfe2d8dece68b5c21ee4f5c41b

dolfies commented 2 years ago

Looks like this patch was accidentally removed in the early rebase stages.

dolfies commented 2 years ago

Back in latest commit.