Fix issue with members not copying correctly.

This commit is contained in:
Rapptz committed 2017-03-05 07:48:15 -05:00
1 parent 96a43fa9e3
commit ead18e3948
2 files changed
+7 -1

No files matched your search

+6
View File
@@ -26,6 +26,7 @@ DEALINGS IN THE SOFTWARE.
import asyncio
import itertools
import copy
import discord.abc
@@ -214,6 +215,11 @@ class Member(discord.abc.Messageable):
u.avatar = user.get('avatar', u.avatar)
u.discriminator = user.get('discriminator', u.discriminator)
def _copy(self):
c = copy.copy(self)
c._user = copy.copy(self._user)
return c
@property
def colour(self):
"""A property that returns a :class:`Colour` denoting the rendered colour