mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-22 00:13:01 +00:00
Fix issue with members not copying correctly.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user