Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Channel:
- def __init__(self, channel_id, channel_name):
- self.channel_id = channel_id
- self.channel_name = channel_name
- self.channel_users = []
- self.channel_owners = []
- self.channel_messages = []
- def add_user(self, u_id):
- self.channel_users.append(u_id)
- def remove_user(self, u_id):
- self.channel_users.remove(u_id)
- def add_owner(self, u_id):
- self.channel_owners.append(u_id)
- def remove_owner(self, u_id):
- self.channel_owners.remove(u_id)
- def add_message(self, message_id):
- self.channel_messages.insert(0, message_id)
- def remove_message(self, message_id):
- self.channel_messages.remove(message_id)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement