<filename>wrappers.py
import discord


class CaponeServer():
	def __init__(self, discord_server):
		self._discord_server = discord_server

	def get_members(self):
		return map(CaponeUser, self._discord_server.members())

	def equals(self, other):
		return self._discord_server == other._discord_server

class CaponeChannel():
	def __init__(self, discord_channel):
		self._discord_channel = discord_channel

	def get_members(self):
		return map(CaponeUser, self._discord_channel.members())

	def get_name(self):
		return self._discord_channel.name

	def get_server(self):
		return CaponeServer(self._discord_channel.server)

	def is_private(self):
		return isinstance(self._discord_channel, discord.abc.PrivateChannel)

	def equals(self, other):
		return self._discord_channel == other._discord_channel

	async def send(self, message, source="???"):
		self._discord_channel.send(message)


class CaponeUser():
	def __init__(self, discord_user):
		self._discord_user = discord_user

	def __str__(self):
		return "{0}#{1}".format(self.get_name(), self.get_discriminator())

	def get_name(self):
		return self._discord_user.name
	
	def get_discriminator(self):
		return self._discord_user.discriminator

	def equals(self, other):
		return self._discord_user == other._discord_user

	async def send(self, message, source="???"):
		self._discord_user.send(message)
<filename>wrappers.py
import discord


class CaponeServer():
	def __init__(self, discord_server):
		self._discord_server = discord_server

	def get_members(self):
		return map(CaponeUser, self._discord_server.members())

	def equals(self, other):
		return self._discord_server == other._discord_server

class CaponeChannel():
	def __init__(self, discord_channel):
		self._discord_channel = discord_channel

	def get_members(self):
		return map(CaponeUser, self._discord_channel.members())

	def get_name(self):
		return self._discord_channel.name

	def get_server(self):
		return CaponeServer(self._discord_channel.server)

	def is_private(self):
		return isinstance(self._discord_channel, discord.abc.PrivateChannel)

	def equals(self, other):
		return self._discord_channel == other._discord_channel

	async def send(self, message, source="???"):
		self._discord_channel.send(message)


class CaponeUser():
	def __init__(self, discord_user):
		self._discord_user = discord_user

	def __str__(self):
		return "{0}#{1}".format(self.get_name(), self.get_discriminator())

	def get_name(self):
		return self._discord_user.name
	
	def get_discriminator(self):
		return self._discord_user.discriminator

	def equals(self, other):
		return self._discord_user == other._discord_user

	async def send(self, message, source="???"):
		self._discord_user.send(message)
#{1}".format(self.get_name(), self.get_discriminator())