Skip to content

Commit 33f2572

Browse files
Remove references of discord.app
1 parent bd89ae0 commit 33f2572

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

discord/commands/commands.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class ApplicationCommand(_BaseCommand):
102102
cog = None
103103

104104
def __repr__(self):
105-
return f"<discord.app.commands.{self.__class__.__name__} name={self.name}>"
105+
return f"<discord.commands.{self.__class__.__name__} name={self.name}>"
106106

107107
def __eq__(self, other):
108108
return isinstance(other, self.__class__)
@@ -546,7 +546,7 @@ def to_dict(self) -> Dict:
546546

547547

548548
def __repr__(self):
549-
return f"<discord.app.commands.{self.__class__.__name__} name={self.name}>"
549+
return f"<discord.commands.{self.__class__.__name__} name={self.name}>"
550550

551551

552552
class OptionChoice:

discord/commands/context.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ def followup(self):
113113
return self.interaction.followup
114114

115115
async def delete(self):
116-
"""Calls :attr:`~discord.app.ApplicationContext.respond`.
117-
If the response is done, then calls :attr:`~discord.app.ApplicationContext.respond` first."""
116+
"""Calls :attr:`~discord.commands.ApplicationContext.respond`.
117+
If the response is done, then calls :attr:`~discord.commands.ApplicationContext.respond` first."""
118118
if not self.response.is_done():
119119
await self.defer()
120120

examples/app_commands/slash_groups.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ async def add(ctx, num1: int, num2: int):
1818

1919
# another way, creating the class manually
2020

21-
from discord.app import SlashCommandGroup
21+
from discord.commands import SlashCommandGroup
2222

2323
math = SlashCommandGroup("math", "Commands related to mathematics.")
2424

0 commit comments

Comments
 (0)