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 bc00b54 commit 8987229Copy full SHA for 8987229
interactions/client/bot.py
@@ -1806,6 +1806,14 @@ def _check(ctx: CommandContext):
1806
1807
return ctx, fields
1808
1809
+ async def get_self_user(self) -> User:
1810
+ """
1811
+ .. versionadded:: 4.4.0
1812
+
1813
+ Gets the bot's user information.
1814
1815
+ return User(**await self._http.get_self(), _client=self._http)
1816
1817
1818
class Extension:
1819
"""
@@ -1823,8 +1831,7 @@ class CoolCode(interactions.Extension):
1823
1831
def __init__(self, client):
1824
1832
self.client = client
1825
1833
1826
- @command(
1827
- type=interactions.ApplicationCommandType.USER,
1834
+ @extension_user_command(
1828
1835
name="User command in cog",
1829
1836
)
1830
1837
async def cog_user_cmd(self, ctx):
0 commit comments