all repos — stealth-developers @ 7f079d8ff07713cc317b566bceb3fe34b42c4ce0

feat: explicit id search
vi v@vt3e.cat
Tue, 27 Jan 2026 21:25:03 +0000
commit

7f079d8ff07713cc317b566bceb3fe34b42c4ce0

parent

94d6817ede30336125cbd29cdb3234467fe65b54

2 files changed, 8 insertions(+), 7 deletions(-)

jump to
A a

@@ -0,0 +1,2 @@

+a: https://groups.roblox.com/v1/groups/12266404/forums/f7fd4713-6f06-45ad-b3e7-9e57299069c4/posts/9719aaab-1727-4ede-b3d2-04056f5db8d9 +b: https://groups.roblox.com/v1/groups/12266404/forums/f7fd4713-6f06-45ad-b3e7-9e57299069c4/posts/9719aaab-1727-4ede-b3d2-04056f5db8d9
M src/interactions/commands/user.tssrc/interactions/commands/user.ts

@@ -34,7 +34,7 @@ .setDescription("get roblox info from a user id or username")

.addStringOption((option) => option .setName("input") - .setDescription("the roblox user id or username to look up") + .setDescription("the roblox username to lookup - prefix with id: for IDs") .setRequired(true), ), );

@@ -59,13 +59,12 @@ if (subcommand === "discord") {

const discordUser = interaction.options.getUser("user", true); result = await getUserInfoFromDiscord(discordUser.id, interaction.member); } else if (subcommand === "roblox") { - const input = interaction.options.getString("input", true); + let input = interaction.options.getString("input", true); + const isId = input.startsWith("id:") + input = isId ? input.slice(3) : input; - if (/^\d+$/.test(input)) { - result = await getUserInfoFromRoblox(input, interaction.member); - } else { - result = await getUserInfoFromRobloxUsername(input, interaction.member); - } + if (isId) result = await getUserInfoFromRoblox(input, interaction.member); + else result = await getUserInfoFromRobloxUsername(input, interaction.member); } else { await interaction.editReply({ content: "❌ unknown subcommand.",