Functioncorev0.7.0Decorator
UserMenuRoute
Routes user select menu interactions to a UserMenuHandler.
Pass the CustomId definition(s) this handler decodes and list the same ones in the handler's generic. Beside this.values the handler declares this.users and this.members. Discord resolves the members only inside a guild.
UserMenuRoute<Defs>(
defs: Defs
): <TCtor extends AnyHandlerCtor>(
constructor: AssertComponentRoute<InteractionKind.UserMenu, Defs, TCtor>
) => voidDefs
Defsdefs
defs: DefsThe customId definition(s) this handler decodes, one per route.