From 09302403b86f096530b421c3c2b8d2378e36b0f2 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Fri, 2 Feb 2024 02:07:21 -0500 Subject: [PATCH] fix(backup): convert author.id to a string before hashing --- bible/bible.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bible/bible.py b/bible/bible.py index 2ed5f80..1f03395 100644 --- a/bible/bible.py +++ b/bible/bible.py @@ -88,7 +88,7 @@ class Bible(commands.Cog): "t": data["meta"]["fumsToken"], "dId": self.bot.user.id, "sId": ctx.message.created_at.timestamp(), - "uId": hash(ctx.author.id), + "uId": hash(str(ctx.author.id)), } async with self.session.get(fums_url, params=fums_params) as response: @@ -97,7 +97,7 @@ class Bible(commands.Cog): response.status, self.bot.user.id, ctx.message.created_at.timestamp(), - hash(ctx.author.id), + hash(str(ctx.author.id)), ctx.author.id, ) return data["data"]