Skip to content

Commit 15ee4ff

Browse files
committed
Removed legacy method
1 parent e9ea927 commit 15ee4ff

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

discord_slash/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ async def _pick(ctx, choice1, choice2): # Command with 1 or more args.
525525
:param connector: Kwargs connector for the command. Default ``None``.
526526
:type connector: dict
527527
"""
528-
528+
529529
def wrapper(cmd):
530530
obj = self.add_slash_command(cmd, name, description, guild_ids, options, connector)
531531
return obj

discord_slash/context.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -189,16 +189,6 @@ async def send(self,
189189
self.bot.loop.create_task(smsg.delete(delay=delete_after))
190190
return smsg
191191

192-
def _legacy_send(self, content, tts, embeds, allowed_mentions):
193-
base = {
194-
"content": content,
195-
"tts": tts,
196-
"embeds": [x.to_dict() for x in embeds] if embeds else [],
197-
"allowed_mentions": allowed_mentions.to_dict() if allowed_mentions
198-
else self.bot.allowed_mentions.to_dict() if self.bot.allowed_mentions else {}
199-
}
200-
return self._http.post(base, False, self.interaction_id, self.__token)
201-
202192
def send_hidden(self, content: str = ""):
203193
base = {
204194
"content": content,

0 commit comments

Comments
 (0)