Skip to content

Commit f8523af

Browse files
committed
Added file, files unavailable with hidden
1 parent 0c66d31 commit f8523af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

discord_slash/context.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ async def send(self,
152152
self.logger.info(f"At command `{self.name}`: It is recommended to call `.respond()` first!")
153153
await self.respond(eat=hidden)
154154
if hidden:
155-
if embeds or embed:
156-
self.logger.warning("Embed is not supported for `hidden`!")
155+
if embeds or embed or files or file:
156+
self.logger.warning("Embed/File is not supported for `hidden`!")
157157
return await self.send_hidden(content)
158158
if embed and embeds:
159159
raise error.IncorrectFormat("You can't use both `embed` and `embeds`!")

0 commit comments

Comments
 (0)