Skip to content

Commit

Permalink
Inject overwrites object patch
Browse files Browse the repository at this point in the history
  • Loading branch information
DamourYouKnow committed Jul 22, 2020
1 parent 2b44f83 commit 880d39f
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,26 @@
from data_controller.card_updater import update_task


from discord import channel
class Overwrites:
__slots__ = ('id', 'allow', 'deny', 'type')

def __init__(self, **kwargs):
self.id = kwargs.pop('id')
self.allow = kwargs.pop('allow', 0)
self.deny = kwargs.pop('deny', 0)
self.type = kwargs.pop('type')

def _asdict(self):
return {
'id': self.id,
'allow': self.allow,
'deny': self.deny,
'type': self.type,
}
channel.Overwrites = Overwrites


def main():
shard = None
shard_count = None
Expand Down

0 comments on commit 880d39f

Please sign in to comment.