Removed unused `edit_original` and `delete_original`
@@ -189,41 +189,3 @@ class SlashContext:
"flags": 64
}
return self._http.post(base, False, self.bot.user.id, self.interaction_id, self.__token)
-
- async def edit_original(self,
- *,
- content: str = "",
- embeds: typing.List[discord.Embed] = None,
- tts: bool = False,
- allowed_mentions: discord.AllowedMentions = None):
- """
- Edits initial response of the slash command.
-
- .. note::
- All args must be passed as keyword args.
-
- :param content: Text of the response. Can be ``None``.
- :type content: str
- :param embeds: Embeds of the response. Maximum 10, can be empty.
- :type embeds: List[discord.Embed]
- :param tts: Whether to speak message using tts. Default ``False``.
- :type tts: bool
- :param allowed_mentions: AllowedMentions of the message.
- :type allowed_mentions: discord.AllowedMentions
- """
- if embeds and len(embeds) > 10:
- raise error.IncorrectFormat("Embed must be 10 or fewer.")
- base = {
- "content": content,
- "tts": tts,
- "embeds": [x.to_dict() for x in embeds] if embeds else [],
- "allowed_mentions": allowed_mentions.to_dict() if allowed_mentions
- else self.bot.allowed_mentions.to_dict() if self.bot.allowed_mentions else {}
- }
- await self._http.edit(base, self.bot.user.id, self.__token, "@original")
-
- async def delete_original(self):
- """
- Deletes initial response of the slash command.
- """
- await self._http.delete(self.bot.user.id, self.__token, "@original")
