Skip to content

Commit

Permalink
feat: Add hash method for RustMarker (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
isaiahsimeone authored Apr 4, 2024
1 parent 20b4a1d commit 7069a7b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rustplus/api/structures/rust_marker.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,3 +185,6 @@ def __str__(self) -> str:
self._out_of_stock,
)
)

def __hash__(self) -> int:
return hash((self._id, self._type))

0 comments on commit 7069a7b

Please sign in to comment.