From f5517db6ae288bbe80baea2cee7e8d080cb74389 Mon Sep 17 00:00:00 2001 From: zevaryx Date: Mon, 29 Aug 2022 17:16:21 +0000 Subject: [PATCH] Fix tiny bug in delete button logic, version bump --- jarvis/client.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jarvis/client.py b/jarvis/client.py index 74d7f04..3ad5168 100644 --- a/jarvis/client.py +++ b/jarvis/client.py @@ -944,7 +944,7 @@ class Jarvis(StatsClient): if ( not context.author.has_permission(Permissions.MANAGE_MESSAGES) and not context.author.has_permission(Permissions.ADMINISTRATOR) - and not str(context.author) == uid + and not str(context.author.id) == uid ): await context.send("I'm afraid I can't let you do that", ephemeral=True) return # User does not have perms to delete diff --git a/pyproject.toml b/pyproject.toml index cdc1836..52c93fa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "jarvis" -version = "2.2.2" +version = "2.2.3" description = "JARVIS admin bot" authors = ["Zevaryx "]