Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Self-bot can only see its own messages #6839

Closed
3 tasks done
dolfies opened this issue May 2, 2021 · 8 comments
Closed
3 tasks done

Self-bot can only see its own messages #6839

dolfies opened this issue May 2, 2021 · 8 comments
Labels
duplicate This is a duplicate of another issue or PR. selfbot Self-bot related issue

Comments

@dolfies
Copy link

dolfies commented May 2, 2021

Summary

When using a self-bot, message.content and message.embeds are both empty. This does not occur on a real bot. I can still view information such as message.author.id, etc.

Reproduction Steps

  1. Run a simple bot with a user token (NOT a bot token).
  2. Add the on_message event.
  3. Add a command or some sort of response to a message, or just print(message.content)

Minimal Reproducible Code

import discord

class MyClient(discord.Client):
    async def on_ready(self):
        print('Logged on as', self.user)

    async def on_message(self, message):
        if message.content == 'ping':
            await message.channel.send('pong')

client = MyClient()
client.run('token', bot=False)

Expected Results

It responds to the command / prints the contents of the message.

Actual Results

It doesnt respond to anyone but itself / message.content is blank.
Screenshot 2021-05-02 17 34 28

Intents

None, I don't think they work for self-bots either.

System Information

Checklist

  • I have searched the open issues for duplicates.
  • I have shown the entire traceback, if possible.
  • I have removed my token from display, if visible.

Additional Context

I know self-bots are against ToS, and I accept the risks related to that.

@dolfies dolfies added the unconfirmed bug A bug report that needs triaging label May 2, 2021
@lgaan
Copy link
Contributor

lgaan commented May 2, 2021

Duplicate of #6820, and is a wontfix.

@dolfies
Copy link
Author

dolfies commented May 2, 2021

Does anyone at least know where I should start if I were to try and fix it myself?

@apple502j
Copy link
Contributor

Easy fix: don't use selfbots
Or: run pip3 install -U git+https://github.com/Rapptz/discord.py

@Rapptz Rapptz closed this as completed May 2, 2021
@Rapptz Rapptz added duplicate This is a duplicate of another issue or PR. selfbot Self-bot related issue and removed unconfirmed bug A bug report that needs triaging labels May 2, 2021
@dolfies
Copy link
Author

dolfies commented May 3, 2021

Easy fix: don't use selfbots
Or: run pip3 install -U git+https://github.com/Rapptz/discord.py

Does that version even support self-bots? The bot parameter on start(), run(), or login() doesn't work. Checking the code it doesn't even exist.

@Tari-dev
Copy link
Contributor

Tari-dev commented May 3, 2021

selfbot methods are deprecated from 1.7.
You won't find help/support for selfbotting as it's against ToS of discord

@Vexs
Copy link
Contributor

Vexs commented May 3, 2021

It appears discord started doing this to anyone who connects as a user with intents- if you remove that, you'll get these.

@dolfies
Copy link
Author

dolfies commented May 3, 2021

It appears discord started doing this to anyone who connects as a user with intents- if you remove that, you'll get these.

image

Trying the discord.py example code with discord.Intents.none() did not seem to work. With no intents it doesn't even acknowledge a message has been sent, while without overriding any intent settings it does recognize a message, but content is blank.

@Rapptz
Copy link
Owner

Rapptz commented May 3, 2021

User-bots and self-bots have been deprecated in the library since v1.7 and will no longer receive support. As of v2.0, they have been completely removed from the library as well. Consider using a real bot instead.

Repository owner locked as resolved and limited conversation to collaborators May 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This is a duplicate of another issue or PR. selfbot Self-bot related issue
Projects
None yet
Development

No branches or pull requests

6 participants