Skip to content

Commit

Permalink
Adjust guild rewards to use roleID
Browse files Browse the repository at this point in the history
  • Loading branch information
thewilloftheshadow committed Oct 24, 2021
1 parent 941be93 commit 8717b0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amari/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def __init__(self, guild_id: int, data: dict):
self.reward_count: int = int(data["count"])
self.roles: Dict[int, RewardRole] = {}
for role_data in data["data"]:
role_id = int(role_data["id"])
role_id = int(role_data["roleID"])
self.roles[role_id] = RewardRole(role_id, role_data["level"], self)

def __repr__(self) -> str:
Expand Down

0 comments on commit 8717b0e

Please sign in to comment.