Closed bhu34905 closed 4 months ago
Comparing ints is much faster than comparing strings. Also, it just works, so why change it?
Comparing ints is much faster than comparing strings. Also, it just works, so why change it?
message_id: Snowflake Snowflake allows passing in str and int. If a str type is passed, it will throw an error. This is not a meaningless modification. @dolfies
Summary
This pull request refactors the
get_message
function to improve ID comparison. It changes the comparison from integer conversion to string comparison, enhancing code readability and avoiding unnecessary type conversions.General Info