delete_chat_messages 404 error #459
-
My simplified code: username = ''
APP_SECRET = ''
class Bot(commands.Bot):
def __init__(self):
super().__init__(token=APP_SECRET, prefix='?', initial_channels=[username])
async def event_message(self, message):
m = message
chatter_user = await m.author.user()
await chatter_user.delete_chat_messages(APP_SECRET, self.user_id, m.id) |
Beta Was this translation helpful? Give feedback.
Answered by
IAmTomahawkx
Jun 25, 2024
Replies: 1 comment 1 reply
-
This behaviour is correct. You need to use the user of the broadcaster, not the user of the message you're trying to delete. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
AI-Maria
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This behaviour is correct. You need to use the user of the broadcaster, not the user of the message you're trying to delete.