From 28c2a3d29f9bba960f5429eb4246c27ade5730c9 Mon Sep 17 00:00:00 2001 From: Peter-MJ-Parker <34216187+Peter-MJ-Parker@users.noreply.github.com> Date: Fri, 19 Jul 2024 17:20:10 -0500 Subject: [PATCH] edit: params is for MessageComponents Just to note what the params is. *params* are for message components dynamic custom ids. When you have a command that returns multiple message components like buttons or menus or modals and your customId starts with `id/arg`, you can use one commandModule rather than multiples to control what each one does. --- src/content/docs/v4/transition/from-v3.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/v4/transition/from-v3.mdx b/src/content/docs/v4/transition/from-v3.mdx index 6c5b5615d..2b8f1d354 100644 --- a/src/content/docs/v4/transition/from-v3.mdx +++ b/src/content/docs/v4/transition/from-v3.mdx @@ -15,7 +15,7 @@ export default commandModule({ type: CommandType.Slash, description: "My ping command", execute: (ctx, sdt) => { - sdt.params // only exists if current command is not a component + sdt.params // only exists if current command is a component (dynamic custom ids) sdt.deps // Dependencies sdt.type // module type }