Skip to content

Commit

Permalink
fix: Compatibility with discord_typings 0.6.0 (#1418)
Browse files Browse the repository at this point in the history
  • Loading branch information
silasary authored May 23, 2023
1 parent d65ac77 commit ee8debc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions interactions/client/smart_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,7 @@ def get_member(self, guild_id: Optional["Snowflake_Type"], user_id: Optional["Sn
"""
return self.member_cache.get((to_optional_snowflake(guild_id), to_optional_snowflake(user_id)))

def place_member_data(
self, guild_id: "Snowflake_Type", data: discord_typings.resources.guild.GuildMemberData
) -> Member:
def place_member_data(self, guild_id: "Snowflake_Type", data: discord_typings.GuildMemberData) -> Member:
"""
Take json data representing a User, process it, and cache it.
Expand Down

0 comments on commit ee8debc

Please sign in to comment.