We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25cb969 commit ddef6cbCopy full SHA for ddef6cb
discord_slash/model.py
@@ -39,7 +39,8 @@ async def send(self,
39
send_type: int = 4,
40
text: str = "",
41
embeds: typing.List[discord.Embed] = None,
42
- tts: bool = False):
+ tts: bool = False,
43
+ allowed_mentions: typing.List[discord.AllowedMentions] = None):
44
"""
45
Sends response of the slash command.
46
@@ -61,7 +62,7 @@ async def send(self,
61
62
"tts": tts,
63
"content": text,
64
"embeds": [x.to_dict() for x in embeds] if embeds else [],
- "allowed_mentions": []
65
+ "allowed_mentions": [x.to_dict() for x in allowed_mentions] if allowed_mentions else self._discord.allowed_mentions.to_dict()
66
}
67
68
initial = True if not self.sent else False
0 commit comments