Skip to content

Commit 6608d1e

Browse files
committed
feat: update debug ext to v5 attributes
1 parent 5b5a2c4 commit 6608d1e

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

interactions/ext/debug_extension/debug_application_cmd.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import io
22
import pprint
3-
from collections import Counter
43
from typing import Optional
54

65
from interactions import Extension
@@ -41,14 +40,10 @@ async def app_cmd(self, ctx: InteractionContext) -> None:
4140
await ctx.defer()
4241
e = debug_embed("Application-Commands Cache")
4342

44-
cmds = sum(len(v.keys()) for v in self.bot.interactions.values())
43+
cmds = len(self.bot._interaction_lookup)
4544
e.add_field("Local application cmds (incld. Subcommands)", str(cmds))
4645
e.add_field("Component callbacks", str(len(self.bot._component_callbacks)))
47-
e.add_field("Prefixed commands", str(len(self.bot.prefixed_commands)))
48-
e.add_field(
49-
"Tracked Scopes",
50-
str(len(Counter(iter(self.bot._interaction_scopes.values())).keys())),
51-
)
46+
e.add_field("Tracked Scopes", str(len(self.client.interactions_by_scope)))
5247

5348
await ctx.send(embeds=[e])
5449

0 commit comments

Comments
 (0)