From 2bc75d51eadbd10fa357fa064d88a14f67393afe Mon Sep 17 00:00:00 2001 From: Moksej <58531286+TheMoksej@users.noreply.github.com> Date: Sat, 28 Aug 2021 22:06:31 +0200 Subject: [PATCH] shorten the if statement --- discord/message.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/discord/message.py b/discord/message.py index de82950a..d7c4bba9 100644 --- a/discord/message.py +++ b/discord/message.py @@ -1152,9 +1152,7 @@ class Message(Hashable): try: await self._state.http.delete_message(self.channel.id, self.id) except Exception as e: - if silent: - pass - else: + if not silent: raise e @overload