PythonistaGuild / TwitchIO

An Async Bot/API wrapper for Twitch made in Python.
https://twitchio.dev
MIT License
798 stars 162 forks source link

EventMessage message author is None when message is from the bot #177

Closed SHA65536 closed 3 years ago

SHA65536 commented 3 years ago

Describe the bug When listening to messages, messages that are sent by the bot will have the author attribute set to None

Are you using TwitchIO within a Discord Bot? No

What commit of TwitchIO are you using? 2.0.0b7

To Reproduce Steps to reproduce the behavior:

  1. Set up a simple twitcio bot that responds to a command.
  2. Inside event_message print ctx.author
  3. See that when the message from the bot is received, the author is set to none

Expected behavior I expect the author attribute to contain information about the bot.

(please complete the following information):

Additional context This is not how it works in 1.2.3

irismessage commented 3 years ago

This may be intentional

IAmTomahawkx commented 3 years ago

You are right, that's not how it works in v1.x. But this is intentional.