Skip to content

Commit 217deee

Browse files
committed
Rename text to content
1 parent 8a49a95 commit 217deee

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

discord_slash/model.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def __init__(self,
3838

3939
async def send(self,
4040
send_type: int = 4,
41-
text: str = "",
41+
content: str = "",
4242
embeds: typing.List[discord.Embed] = None,
4343
tts: bool = False,
4444
allowed_mentions: typing.List[discord.AllowedMentions] = None):
@@ -47,8 +47,8 @@ async def send(self,
4747
4848
:param send_type: Type of the response. Refer Discord API DOCS for more info about types. Default ``4``.
4949
:type send_type: int
50-
:param text: Text of the response. Can be ``None``.
51-
:type text: str
50+
:param content: Content of the response. Can be ``None``.
51+
:type content: str
5252
:param embeds: Embeds of the response. Maximum 10, can be empty.
5353
:type embeds: List[discord.Embed]
5454
:param tts: Whether to speak message using tts. Default ``False``.
@@ -62,12 +62,12 @@ async def send(self,
6262
"type": send_type,
6363
"data": {
6464
"tts": tts,
65-
"content": text,
65+
"content": content,
6666
"embeds": [x.to_dict() for x in embeds] if embeds else [],
6767
"allowed_mentions": [x.to_dict() for x in allowed_mentions] if allowed_mentions else self._discord.allowed_mentions.to_dict()
6868
}
6969
} if not self.sent else {
70-
"content": text,
70+
"content": content,
7171
"tts": tts,
7272
"embeds": [x.to_dict() for x in embeds] if embeds else [],
7373
"allowed_mentions": [x.to_dict() for x in allowed_mentions] if allowed_mentions else self._discord.allowed_mentions.to_dict()

0 commit comments

Comments
 (0)