From 11721dc7de009787501682a2d253af8e99e512c9 Mon Sep 17 00:00:00 2001 From: Anand Krishna <40204976+anand2312@users.noreply.github.com> Date: Mon, 3 May 2021 21:52:42 +0400 Subject: [PATCH 1/2] Remove outdated note regarding ephemeral messages --- discord_slash/context.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/discord_slash/context.py b/discord_slash/context.py index 863163cf9..aadd57ac3 100644 --- a/discord_slash/context.py +++ b/discord_slash/context.py @@ -134,9 +134,6 @@ async def send(self, """ Sends response of the slash command. - .. note:: - - Param ``hidden`` doesn't support embed and file. - .. warning:: - Since Release 1.0.9, this is completely changed. If you are migrating from older version, please make sure to fix the usage. - You can't use both ``embed`` and ``embeds`` at the same time, also applies to ``file`` and ``files``. From 511dfcaf184476be1b3d70bc2bf70fa3b7e8d89e Mon Sep 17 00:00:00 2001 From: Anand Krishna <40204976+anand2312@users.noreply.github.com> Date: Tue, 4 May 2021 20:50:47 +0400 Subject: [PATCH 2/2] Remove logger warning regarding hidden embeds --- discord_slash/context.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/discord_slash/context.py b/discord_slash/context.py index aadd57ac3..54dade599 100644 --- a/discord_slash/context.py +++ b/discord_slash/context.py @@ -183,8 +183,6 @@ async def send(self, else self.bot.allowed_mentions.to_dict() if self.bot.allowed_mentions else {} } if hidden: - if embeds or files: - self._logger.warning("Embed/File is not supported for `hidden`!") base["flags"] = 64 initial_message = False