Update discum.py
to prevent ValueError: invalid literal for int() with base 10
@@ -114,10 +114,10 @@ class Client:
discord snowflake to unix timestamp and back
'''
def snowflake_to_unixts(self,snowflake):
- return (int(snowflake)/4194304+1420070400000)/1000
+ return (int(float(snowflake))/4194304+1420070400000)/1000
def unixts_to_snowflake(self,unixts):
- return (int(unixts)*1000-1420070400000)*4194304
+ return (int(float(unixts))*1000-1420070400000)*4194304
'''
start
