diff options
| author | Rapptz <[email protected]> | 2016-10-17 01:10:22 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-01-03 09:51:52 -0500 |
| commit | 53ab2631252bf0977446d762f07b3821edb151ee (patch) | |
| tree | abb8a2e7a966aadb22df8a3ca2220b646eae3765 /discord/message.py | |
| parent | [commands] Bot skip check now works with the new __eq__ changes. (diff) | |
| download | discord.py-53ab2631252bf0977446d762f07b3821edb151ee.tar.xz discord.py-53ab2631252bf0977446d762f07b3821edb151ee.zip | |
Split channel types.
This splits them into the following:
* DMChannel
* GroupChannel
* VoiceChannel
* TextChannel
This also makes the channels "stateful".
Diffstat (limited to 'discord/message.py')
| -rw-r--r-- | discord/message.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/message.py b/discord/message.py index 28ab18d1..c2caaf9d 100644 --- a/discord/message.py +++ b/discord/message.py @@ -24,9 +24,9 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ -from . import utils from .user import User from .reaction import Reaction +from . import utils, abc from .object import Object from .calls import CallMessage import re @@ -292,7 +292,7 @@ class Message: self.channel.is_private = True return - if not self.channel.is_private: + if isinstance(self.channel, abc.GuildChannel): self.server = self.channel.server found = self.server.get_member(self.author.id) if found is not None: |