\ No newline at end of file
diff --git a/carbon/classes/commands.txt b/carbon/classes/commands.txt
index 86397a2f..3be3a960 100644
--- a/carbon/classes/commands.txt
+++ b/carbon/classes/commands.txt
@@ -1,27 +1,27 @@
-2:I[5749,["760","static/chunks/760-885d79b354ba09d0.js","808","static/chunks/808-6dceee3f6f2f7cd1.js","191","static/chunks/191-b80eeb6bedf94e04.js","877","static/chunks/app/%5B...slug%5D/page-a4fd37b3361b7e5a.js"],"TreeContextProvider"]
-12:I[5749,["760","static/chunks/760-885d79b354ba09d0.js","808","static/chunks/808-6dceee3f6f2f7cd1.js","191","static/chunks/191-b80eeb6bedf94e04.js","877","static/chunks/app/%5B...slug%5D/page-a4fd37b3361b7e5a.js"],"SubNav"]
-13:I[8918,["760","static/chunks/760-885d79b354ba09d0.js","808","static/chunks/808-6dceee3f6f2f7cd1.js","191","static/chunks/191-b80eeb6bedf94e04.js","877","static/chunks/app/%5B...slug%5D/page-a4fd37b3361b7e5a.js"],"Image"]
-14:I[5749,["760","static/chunks/760-885d79b354ba09d0.js","808","static/chunks/808-6dceee3f6f2f7cd1.js","191","static/chunks/191-b80eeb6bedf94e04.js","877","static/chunks/app/%5B...slug%5D/page-a4fd37b3361b7e5a.js"],"DynamicSidebar"]
-15:I[5801,["760","static/chunks/760-885d79b354ba09d0.js","808","static/chunks/808-6dceee3f6f2f7cd1.js","191","static/chunks/191-b80eeb6bedf94e04.js","877","static/chunks/app/%5B...slug%5D/page-a4fd37b3361b7e5a.js"],""]
-1c:I[5749,["760","static/chunks/760-885d79b354ba09d0.js","808","static/chunks/808-6dceee3f6f2f7cd1.js","191","static/chunks/191-b80eeb6bedf94e04.js","877","static/chunks/app/%5B...slug%5D/page-a4fd37b3361b7e5a.js"],"LinksMenu"]
-1d:I[289,["760","static/chunks/760-885d79b354ba09d0.js","808","static/chunks/808-6dceee3f6f2f7cd1.js","191","static/chunks/191-b80eeb6bedf94e04.js","877","static/chunks/app/%5B...slug%5D/page-a4fd37b3361b7e5a.js"],"RootToggle"]
-2a:I[5749,["760","static/chunks/760-885d79b354ba09d0.js","808","static/chunks/808-6dceee3f6f2f7cd1.js","191","static/chunks/191-b80eeb6bedf94e04.js","877","static/chunks/app/%5B...slug%5D/page-a4fd37b3361b7e5a.js"],"ThemeToggle"]
-2b:I[5749,["760","static/chunks/760-885d79b354ba09d0.js","808","static/chunks/808-6dceee3f6f2f7cd1.js","191","static/chunks/191-b80eeb6bedf94e04.js","877","static/chunks/app/%5B...slug%5D/page-a4fd37b3361b7e5a.js"],"SidebarCollapseTrigger"]
-2c:I[8296,["760","static/chunks/760-885d79b354ba09d0.js","808","static/chunks/808-6dceee3f6f2f7cd1.js","191","static/chunks/191-b80eeb6bedf94e04.js","877","static/chunks/app/%5B...slug%5D/page-a4fd37b3361b7e5a.js"],"AnchorProvider"]
-2d:I[6169,["760","static/chunks/760-885d79b354ba09d0.js","808","static/chunks/808-6dceee3f6f2f7cd1.js","191","static/chunks/191-b80eeb6bedf94e04.js","877","static/chunks/app/%5B...slug%5D/page-a4fd37b3361b7e5a.js"],"TocPopover"]
+2:I[3471,["811","static/chunks/811-5bdb0627e242b7c7.js","547","static/chunks/547-a3533eb96f4320e4.js","387","static/chunks/387-5fba0961e28faa7c.js","877","static/chunks/app/%5B...slug%5D/page-f0af98b812f98b2b.js"],"TreeContextProvider"]
+12:I[3471,["811","static/chunks/811-5bdb0627e242b7c7.js","547","static/chunks/547-a3533eb96f4320e4.js","387","static/chunks/387-5fba0961e28faa7c.js","877","static/chunks/app/%5B...slug%5D/page-f0af98b812f98b2b.js"],"SubNav"]
+13:I[8918,["811","static/chunks/811-5bdb0627e242b7c7.js","547","static/chunks/547-a3533eb96f4320e4.js","387","static/chunks/387-5fba0961e28faa7c.js","877","static/chunks/app/%5B...slug%5D/page-f0af98b812f98b2b.js"],"Image"]
+14:I[3471,["811","static/chunks/811-5bdb0627e242b7c7.js","547","static/chunks/547-a3533eb96f4320e4.js","387","static/chunks/387-5fba0961e28faa7c.js","877","static/chunks/app/%5B...slug%5D/page-f0af98b812f98b2b.js"],"DynamicSidebar"]
+15:I[5801,["811","static/chunks/811-5bdb0627e242b7c7.js","547","static/chunks/547-a3533eb96f4320e4.js","387","static/chunks/387-5fba0961e28faa7c.js","877","static/chunks/app/%5B...slug%5D/page-f0af98b812f98b2b.js"],""]
+1c:I[3471,["811","static/chunks/811-5bdb0627e242b7c7.js","547","static/chunks/547-a3533eb96f4320e4.js","387","static/chunks/387-5fba0961e28faa7c.js","877","static/chunks/app/%5B...slug%5D/page-f0af98b812f98b2b.js"],"LinksMenu"]
+1d:I[6525,["811","static/chunks/811-5bdb0627e242b7c7.js","547","static/chunks/547-a3533eb96f4320e4.js","387","static/chunks/387-5fba0961e28faa7c.js","877","static/chunks/app/%5B...slug%5D/page-f0af98b812f98b2b.js"],"RootToggle"]
+2a:I[3471,["811","static/chunks/811-5bdb0627e242b7c7.js","547","static/chunks/547-a3533eb96f4320e4.js","387","static/chunks/387-5fba0961e28faa7c.js","877","static/chunks/app/%5B...slug%5D/page-f0af98b812f98b2b.js"],"ThemeToggle"]
+2b:I[3471,["811","static/chunks/811-5bdb0627e242b7c7.js","547","static/chunks/547-a3533eb96f4320e4.js","387","static/chunks/387-5fba0961e28faa7c.js","877","static/chunks/app/%5B...slug%5D/page-f0af98b812f98b2b.js"],"SidebarCollapseTrigger"]
+2c:I[8296,["811","static/chunks/811-5bdb0627e242b7c7.js","547","static/chunks/547-a3533eb96f4320e4.js","387","static/chunks/387-5fba0961e28faa7c.js","877","static/chunks/app/%5B...slug%5D/page-f0af98b812f98b2b.js"],"AnchorProvider"]
+2d:I[551,["811","static/chunks/811-5bdb0627e242b7c7.js","547","static/chunks/547-a3533eb96f4320e4.js","387","static/chunks/387-5fba0961e28faa7c.js","877","static/chunks/app/%5B...slug%5D/page-f0af98b812f98b2b.js"],"TocPopover"]
36:"$Sreact.suspense"
-37:I[8873,["760","static/chunks/760-885d79b354ba09d0.js","808","static/chunks/808-6dceee3f6f2f7cd1.js","191","static/chunks/191-b80eeb6bedf94e04.js","877","static/chunks/app/%5B...slug%5D/page-a4fd37b3361b7e5a.js"],"PreloadCss"]
-38:I[5377,["760","static/chunks/760-885d79b354ba09d0.js","808","static/chunks/808-6dceee3f6f2f7cd1.js","191","static/chunks/191-b80eeb6bedf94e04.js","877","static/chunks/app/%5B...slug%5D/page-a4fd37b3361b7e5a.js"],"default"]
-39:I[6169,["760","static/chunks/760-885d79b354ba09d0.js","808","static/chunks/808-6dceee3f6f2f7cd1.js","191","static/chunks/191-b80eeb6bedf94e04.js","877","static/chunks/app/%5B...slug%5D/page-a4fd37b3361b7e5a.js"],"TOCItems"]
-3a:I[6169,["760","static/chunks/760-885d79b354ba09d0.js","808","static/chunks/808-6dceee3f6f2f7cd1.js","191","static/chunks/191-b80eeb6bedf94e04.js","877","static/chunks/app/%5B...slug%5D/page-a4fd37b3361b7e5a.js"],"Breadcrumb"]
-3b:I[6230,["760","static/chunks/760-885d79b354ba09d0.js","808","static/chunks/808-6dceee3f6f2f7cd1.js","191","static/chunks/191-b80eeb6bedf94e04.js","877","static/chunks/app/%5B...slug%5D/page-a4fd37b3361b7e5a.js"],"CodeBlock"]
-3d:I[6230,["760","static/chunks/760-885d79b354ba09d0.js","808","static/chunks/808-6dceee3f6f2f7cd1.js","191","static/chunks/191-b80eeb6bedf94e04.js","877","static/chunks/app/%5B...slug%5D/page-a4fd37b3361b7e5a.js"],"Pre"]
-3f:I[6169,["760","static/chunks/760-885d79b354ba09d0.js","808","static/chunks/808-6dceee3f6f2f7cd1.js","191","static/chunks/191-b80eeb6bedf94e04.js","877","static/chunks/app/%5B...slug%5D/page-a4fd37b3361b7e5a.js"],"LastUpdate"]
-40:I[6169,["760","static/chunks/760-885d79b354ba09d0.js","808","static/chunks/808-6dceee3f6f2f7cd1.js","191","static/chunks/191-b80eeb6bedf94e04.js","877","static/chunks/app/%5B...slug%5D/page-a4fd37b3361b7e5a.js"],"Footer"]
-41:I[6169,["760","static/chunks/760-885d79b354ba09d0.js","808","static/chunks/808-6dceee3f6f2f7cd1.js","191","static/chunks/191-b80eeb6bedf94e04.js","877","static/chunks/app/%5B...slug%5D/page-a4fd37b3361b7e5a.js"],"Toc"]
+37:I[8873,["811","static/chunks/811-5bdb0627e242b7c7.js","547","static/chunks/547-a3533eb96f4320e4.js","387","static/chunks/387-5fba0961e28faa7c.js","877","static/chunks/app/%5B...slug%5D/page-f0af98b812f98b2b.js"],"PreloadCss"]
+38:I[9187,["811","static/chunks/811-5bdb0627e242b7c7.js","547","static/chunks/547-a3533eb96f4320e4.js","387","static/chunks/387-5fba0961e28faa7c.js","877","static/chunks/app/%5B...slug%5D/page-f0af98b812f98b2b.js"],"default"]
+39:I[551,["811","static/chunks/811-5bdb0627e242b7c7.js","547","static/chunks/547-a3533eb96f4320e4.js","387","static/chunks/387-5fba0961e28faa7c.js","877","static/chunks/app/%5B...slug%5D/page-f0af98b812f98b2b.js"],"TOCItems"]
+3a:I[551,["811","static/chunks/811-5bdb0627e242b7c7.js","547","static/chunks/547-a3533eb96f4320e4.js","387","static/chunks/387-5fba0961e28faa7c.js","877","static/chunks/app/%5B...slug%5D/page-f0af98b812f98b2b.js"],"Breadcrumb"]
+3b:I[8159,["811","static/chunks/811-5bdb0627e242b7c7.js","547","static/chunks/547-a3533eb96f4320e4.js","387","static/chunks/387-5fba0961e28faa7c.js","877","static/chunks/app/%5B...slug%5D/page-f0af98b812f98b2b.js"],"CodeBlock"]
+3d:I[8159,["811","static/chunks/811-5bdb0627e242b7c7.js","547","static/chunks/547-a3533eb96f4320e4.js","387","static/chunks/387-5fba0961e28faa7c.js","877","static/chunks/app/%5B...slug%5D/page-f0af98b812f98b2b.js"],"Pre"]
+3f:I[551,["811","static/chunks/811-5bdb0627e242b7c7.js","547","static/chunks/547-a3533eb96f4320e4.js","387","static/chunks/387-5fba0961e28faa7c.js","877","static/chunks/app/%5B...slug%5D/page-f0af98b812f98b2b.js"],"LastUpdate"]
+40:I[551,["811","static/chunks/811-5bdb0627e242b7c7.js","547","static/chunks/547-a3533eb96f4320e4.js","387","static/chunks/387-5fba0961e28faa7c.js","877","static/chunks/app/%5B...slug%5D/page-f0af98b812f98b2b.js"],"Footer"]
+41:I[551,["811","static/chunks/811-5bdb0627e242b7c7.js","547","static/chunks/547-a3533eb96f4320e4.js","387","static/chunks/387-5fba0961e28faa7c.js","877","static/chunks/app/%5B...slug%5D/page-f0af98b812f98b2b.js"],"Toc"]
43:I[1907,[],""]
45:I[1851,[],""]
-46:I[6225,["808","static/chunks/808-6dceee3f6f2f7cd1.js","185","static/chunks/app/layout-26077b10d25ec523.js"],"RootProvider"]
+46:I[4579,["547","static/chunks/547-a3533eb96f4320e4.js","185","static/chunks/app/layout-751c33789f182bea.js"],"RootProvider"]
5:["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-album","children":[["$","rect","1m3agn",{"width":"18","height":"18","x":"3","y":"3","rx":"2","ry":"2"}],["$","polyline","1wcwz3",{"points":"11 3 11 11 14 8 17 11 17 3"}],"$undefined"]}]
4:{"className":"rounded-md border bg-gradient-to-b from-fd-secondary p-1 shadow-sm","children":"$5"}
3:["$","div",null,"$4"]
@@ -63,8 +63,8 @@ f:["$","div",null,"$10"]
34:{"title":"Automatic Defer","url":"#automatic-defer","depth":3}
35:{"title":"Wildcard Commands","url":"#wildcard-commands","depth":2}
2e:["$2f","$30","$31","$32","$33","$34","$35"]
-3c:T4dc,3e:T4dc,42:["../node_modules/.pnpm/fumadocs-ui@13.4.9_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.9_react-dom@18.3.1_r_vd2lnuwep3w2ghbbhpsxhzhuha/node_modules/fumadocs-ui/dist/page.js -> ./edit-on-github-YFVYCMB7.js"]
+3c:T4dc,3e:T4dc,42:["../node_modules/.pnpm/fumadocs-ui@13.4.9_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.9_react-dom@18.3.1_r_ryuhgk7jmkuvxhzbwlr3yvdeme/node_modules/fumadocs-ui/dist/page.js -> ./edit-on-github-YFVYCMB7.js"]
44:["slug","carbon/classes/commands","c"]
-0:["ajd-SQ2r2d7teD8cRVxbO",[[["",{"children":[["slug","carbon/classes/commands","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"classes\",\"commands\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/classes/commands","c"],{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"tree":{"name":"","children":[{"type":"folder","name":"Carbon Docs","icon":["$","div",null,{"className":"rounded-md border bg-gradient-to-b from-fd-secondary p-1 shadow-sm","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-album","children":[["$","rect","1m3agn",{"width":"18","height":"18","x":"3","y":"3","rx":"2","ry":"2"}],["$","polyline","1wcwz3",{"points":"11 3 11 11 14 8 17 11 17 3"}],"$undefined"]}]}],"root":true,"index":{"type":"page","name":"Introduction","icon":"$3","url":"/carbon"},"children":[{"type":"page","name":"Introduction","icon":["$","div",null,{"className":"rounded-md border bg-gradient-to-b from-fd-secondary p-1 shadow-sm","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-album","children":[["$","rect","1m3agn",{"width":"18","height":"18","x":"3","y":"3","rx":"2","ry":"2"}],["$","polyline","1wcwz3",{"points":"11 3 11 11 14 8 17 11 17 3"}],"$undefined"]}]}],"url":"/carbon"},{"type":"folder","name":"Getting Started","icon":["$","div",null,{"className":"rounded-md border bg-gradient-to-b from-fd-secondary p-1 shadow-sm","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-circle-play","children":[["$","circle","1mglay",{"cx":"12","cy":"12","r":"10"}],["$","polygon","1cimsy",{"points":"10 8 16 12 10 16 10 8"}],"$undefined"]}]}],"index":{"type":"page","name":"Getting Started","icon":"$6","url":"/carbon/getting-started"},"children":[{"type":"page","name":"Bun","url":"/carbon/getting-started/bun"},{"type":"page","name":"Cloudflare Workers","url":"/carbon/getting-started/cloudflare-workers"},{"type":"page","name":"Next.js","url":"/carbon/getting-started/nextjs"},{"type":"page","name":"Node.js","url":"/carbon/getting-started/nodejs"}]},{"type":"separator","name":" Usage "},{"type":"folder","name":"Classes","icon":["$","div",null,{"className":"rounded-md border bg-gradient-to-b from-fd-secondary p-1 shadow-sm","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-code","children":[["$","polyline","z7tu5w",{"points":"16 18 22 12 16 6"}],["$","polyline","1eg1df",{"points":"8 6 2 12 8 18"}],"$undefined"]}]}],"index":{"type":"page","name":"Classes","icon":"$9","url":"/carbon/classes"},"children":[{"type":"page","name":"Client","url":"/carbon/classes/client"},{"type":"page","name":"Commands","url":"/carbon/classes/commands"},{"type":"page","name":"Embeds","url":"/carbon/classes/embeds"},{"type":"page","name":"Modals","url":"/carbon/classes/modals"},{"type":"folder","name":"Components","index":{"type":"page","name":"Components","url":"/carbon/classes/components"},"children":[{"type":"page","name":"Buttons","url":"/carbon/classes/components/buttons"},{"type":"page","name":"Select Menus","url":"/carbon/classes/components/select-menus"},{"type":"page","name":"Text Inputs","url":"/carbon/classes/components/text-inputs"}]}]},{"type":"folder","name":"Helpful Guides","icon":["$","div",null,{"className":"rounded-md border bg-gradient-to-b from-fd-secondary p-1 shadow-sm","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-library","children":[["$","path","ji33uf",{"d":"m16 6 4 14"}],["$","path","1n7gus",{"d":"M12 6v14"}],["$","path","1gg7y9",{"d":"M8 8v12"}],["$","path","6qkkli",{"d":"M4 4v16"}],"$undefined"]}]}],"index":{"type":"page","name":"Helpful Guides","icon":"$c","url":"/carbon/helpful-guides"},"children":[{"type":"page","name":"Custom Router","url":"/carbon/helpful-guides/custom-router"},{"type":"page","name":"Partials","url":"/carbon/helpful-guides/partials"},{"type":"page","name":"Replying vs Deferring vs Acknowledging","url":"/carbon/helpful-guides/responses"},{"type":"page","name":"Why Classes?","url":"/carbon/helpful-guides/why-classes"},{"type":"folder","name":"Developer Portal","index":{"type":"page","name":"Developer Portal","url":"/carbon/helpful-guides/developer-portal"},"children":[{"type":"page","name":"Create a Bot","url":"/carbon/helpful-guides/developer-portal/create-a-bot"},{"type":"page","name":"Setting URLs","url":"/carbon/helpful-guides/developer-portal/urls"}]}]},{"type":"folder","name":"Even More","icon":["$","div",null,{"className":"rounded-md border bg-gradient-to-b from-fd-secondary p-1 shadow-sm","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-heart","children":[["$","path","c3ymky",{"d":"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z"}],"$undefined"]}]}],"index":{"type":"page","name":"Even More","icon":"$f","url":"/carbon/even-more"},"children":[{"type":"page","name":"Contributing","url":"/carbon/even-more/contributing"},{"type":"page","name":"Powered by Carbon","url":"/carbon/even-more/powered-by-carbon"}]},{"type":"separator","name":" API Reference "}]},{"type":"folder","name":"Linked Roles","root":true,"index":{"type":"page","name":"Linked Roles","url":"/linked-roles"},"children":[{"type":"separator","name":" Usage "},{"type":"page","name":"Linked Roles","url":"/linked-roles"},{"type":"separator","name":" API Reference "}]},{"type":"folder","name":"Carbon's NodeJS Wrapper","root":true,"index":{"type":"page","name":"Carbon's NodeJS Wrapper","url":"/nodejs"},"children":[{"type":"separator","name":" Usage "},{"type":"page","name":"Carbon's NodeJS Wrapper","url":"/nodejs"},{"type":"separator","name":" API Reference "}]},{"type":"folder","name":"Carbon's RequestClient","root":true,"index":{"type":"page","name":"Carbon's RequestClient","url":"/request"},"children":[{"type":"separator","name":" Usage "},{"type":"page","name":"Carbon's RequestClient","url":"/request"},{"type":"separator","name":" API Reference "}]}]},"children":[["$","$L12",null,{"title":[["$","$L13",null,{"alt":"Carbon","src":"https://cdn.buape.com/CarbonWordmark.png","width":100,"height":100,"sizes":"100px","className":"hidden w-20 md:w-24 [.uwu_&]:block","aria-label":"Carbon"}],["$","span",null,{"className":"font-medium max-md:[header_&]:hidden","children":"Carbon"}]],"transparentMode":"none","children":"$undefined"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$L14",null,{"banner":[["$","div",null,{"className":"flex flex-row items-center border-b pb-2 max-md:hidden","children":[["$","$L15","title",{"href":"/","className":"inline-flex items-center gap-2.5 py-1 font-medium","children":"$16"}],["$","$L1c","links",{"items":[{"icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}],"text":"Blog","url":"/blog","active":"nested-url"},{"text":"Showcase","url":"/showcase","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-layout-template","children":[["$","rect","f1a2em",{"width":"18","height":"7","x":"3","y":"3","rx":"1"}],["$","rect","jqznyg",{"width":"9","height":"7","x":"3","y":"14","rx":"1"}],["$","rect","q5h2i8",{"width":"5","height":"7","x":"16","y":"14","rx":"1"}],"$undefined"]}]},{"text":"Sponsors","url":"/sponsors","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-heart","children":[["$","path","c3ymky",{"d":"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z"}],"$undefined"]}]},{"type":"icon","url":"https://github.com/fuma-nama/fumadocs","text":"Github","icon":["$","svg",null,{"role":"img","viewBox":"0 0 24 24","fill":"currentColor","children":["$","path",null,{"d":"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"}]}],"external":true}],"className":"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 hover:bg-fd-accent hover:text-fd-accent-foreground p-1.5 [&_svg]:size-5 ms-auto","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-ellipsis","children":[["$","circle","41hilf",{"cx":"12","cy":"12","r":"1"}],["$","circle","1wjl8i",{"cx":"19","cy":"12","r":"1"}],["$","circle","1pcz8c",{"cx":"5","cy":"12","r":"1"}],"$undefined"]}]}]]}],["$","$L1d",null,{"options":[{"url":"/docs","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-package size-9 shrink-0 rounded-md bg-gradient-to-t from-fd-background/80 p-1.5","style":{"backgroundColor":"hsl(var(--docs-color)/.3)","color":"hsl(var(--docs-color))"},"children":[["$","path","1c824w",{"d":"m7.5 4.27 9 5.15"}],["$","path","hh9hay",{"d":"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z"}],["$","path","g66t2b",{"d":"m3.3 7 8.7 5 8.7-5"}],["$","path","d0xqtd",{"d":"M12 22V12"}],"$undefined"]}],"title":"Carbon","description":"@buape/carbon"},{"url":"/linked-roles","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-brackets size-9 shrink-0 rounded-md bg-gradient-to-t from-fd-background/80 p-1.5","style":{"backgroundColor":"hsl(var(--linked-roles-color)/.3)","color":"hsl(var(--linked-roles-color))"},"children":[["$","path","1yor1f",{"d":"M16 3h3v18h-3"}],["$","path","1qrfwo",{"d":"M8 21H5V3h3"}],"$undefined"]}],"title":"Linked Roles","description":"@buape/carbon-linked-roles"},{"url":"/nodejs","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-computer size-9 shrink-0 rounded-md bg-gradient-to-t from-fd-background/80 p-1.5","style":{"backgroundColor":"hsl(var(--nodejs-color)/.3)","color":"hsl(var(--nodejs-color))"},"children":[["$","rect","wc9tft",{"width":"14","height":"8","x":"5","y":"2","rx":"2"}],["$","rect","w68u3i",{"width":"20","height":"8","x":"2","y":"14","rx":"2"}],["$","path","rwmk9e",{"d":"M6 18h2"}],["$","path","aqd8w3",{"d":"M12 18h6"}],"$undefined"]}],"title":"NodeJS","description":"@buape/carbon-nodejs"},{"url":"/request","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-link size-9 shrink-0 rounded-md bg-gradient-to-t from-fd-background/80 p-1.5","style":{"backgroundColor":"hsl(var(--request-color)/.3)","color":"hsl(var(--request-color))"},"children":[["$","path","1cjeqo",{"d":"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}],["$","path","19qd67",{"d":"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}],"$undefined"]}],"title":"Request","description":"@buape/carbon-request"}]}]],"items":"$1e","bannerProps":{"className":""},"footer":["$undefined",[["$","$L2a","theme",{}],["$","$L2b","sidebar",{}]]]}],["$","$L2c",null,{"toc":[{"title":"Creating a Command","url":"#creating-a-command","depth":2},{"title":"Setting the Name and Description","url":"#setting-the-name-and-description","depth":3},{"title":"Setting the Type","url":"#setting-the-type","depth":3},{"title":"Options","url":"#options","depth":3},{"title":"Adding your Components","url":"#adding-your-components","depth":3},{"title":"Automatic Defer","url":"#automatic-defer","depth":3},{"title":"Wildcard Commands","url":"#wildcard-commands","depth":2}],"single":"$undefined","children":[["$","div",null,{"className":"mx-auto flex min-w-0 max-w-[860px] flex-1 flex-col","children":[["$","div",null,{"id":"nd-tocnav","className":"sticky top-14 z-10 border-b bg-fd-background/60 text-sm backdrop-blur-md md:top-1 md:mx-3 md:rounded-full md:border md:shadow-md lg:hidden","children":["$","$L2d",null,{"items":"$2e","header":"$undefined","footer":["$undefined",["$","$36",null,{"fallback":null,"children":[["$","$L37",null,{"moduleIds":["../node_modules/.pnpm/fumadocs-ui@13.4.9_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.9_react-dom@18.3.1_r_vd2lnuwep3w2ghbbhpsxhzhuha/node_modules/fumadocs-ui/dist/page.js -> ./edit-on-github-YFVYCMB7.js"]}],["$","$L38",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/classes/commands.mdx"}]]}]],"children":["$","$L39",null,{"items":"$2e","isMenu":true}]}]}],["$","article",null,{"className":"flex flex-1 flex-col gap-6 px-4 pt-10 md:px-6 md:pt-12","children":[["$","$L3a",null,{}],[["$","h1",null,{"children":"Commands","className":"text-3xl font-bold"}],["$","p",null,{"children":"Commands are the main way to interact with your bot, including Context Menu apps and slash commands","className":"mb-8 text-lg text-fd-muted-foreground"}],["$","div",null,{"className":"prose","children":[[["$","p",null,{"children":"Commands are the main way to interact with your bot. They are used to handle user input and respond to it."}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"creating-a-command","children":[["$","a",null,{"href":"#creating-a-command","className":"peer","children":"Creating a Command"}],["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-link size-3.5 shrink-0 text-fd-muted-foreground opacity-0 transition-opacity peer-hover:opacity-100","aria-label":"Link to section","children":[["$","path","1cjeqo",{"d":"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}],["$","path","19qd67",{"d":"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}],"$undefined"]}]]}],"\n",["$","p",null,{"children":["To create a command, you need to create a class that extends the ",["$","code",null,{"children":"Command"}]," class. This class will handle the command and its functionality."]}],"\n",["$","$L3b",null,{"className":"shiki shiki-themes github-light github-dark","style":{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8","--shiki-light-bg":"#fff","--shiki-dark-bg":"#24292e"},"tabIndex":"0","title":"src/commands/ping.ts","icon":"$3c","children":["$","$L3d",null,{"children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"import"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" { Command, "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"type"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" CommandInteraction } "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"from"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"@buape/carbon\""}]]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"export"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" default"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" class"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" PingCommand"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" extends"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" Command"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" {"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tname"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"ping\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tdescription"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"A simple ping command\""}]]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"\tasync"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" run"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"("}],["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"interaction"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":":"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" CommandInteraction"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":") {"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"\t\treturn"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" interaction."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"reply"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"({"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t\t\tcontent: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"Pong!\""}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t\t})"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t}"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"}"}]}]]}]}]}],"\n",["$","p",null,{"children":"In this example, we have created a simple command that responds with \"Pong\" when the user runs the command."}],"\n",["$","h3",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"setting-the-name-and-description","children":[["$","a",null,{"href":"#setting-the-name-and-description","className":"peer","children":"Setting the Name and Description"}],["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-link size-3.5 shrink-0 text-fd-muted-foreground opacity-0 transition-opacity peer-hover:opacity-100","aria-label":"Link to section","children":[["$","path","1cjeqo",{"d":"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}],["$","path","19qd67",{"d":"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}],"$undefined"]}]]}],"\n",["$","p",null,{"children":["The ",["$","code",null,{"children":"name"}]," and ",["$","code",null,{"children":"description"}]," properties are used to set the name and description of the command. These are used in the help command and in the command list."]}],"\n",["$","h3",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"setting-the-type","children":[["$","a",null,{"href":"#setting-the-type","className":"peer","children":"Setting the Type"}],["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-link size-3.5 shrink-0 text-fd-muted-foreground opacity-0 transition-opacity peer-hover:opacity-100","aria-label":"Link to section","children":[["$","path","1cjeqo",{"d":"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}],["$","path","19qd67",{"d":"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}],"$undefined"]}]]}],"\n",["$","p",null,{"children":["The ",["$","code",null,{"children":"type"}]," property is used to set the type of the command. This is used to determine which type of command it is. The available types are:"]}],"\n",["$","ul",null,{"children":["\n",["$","li",null,{"children":[["$","code",null,{"children":"ChatInput"}],": This is a command that can be used in a chat input."]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"User"}],": This is a command that can be used in a user context."]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"Message"}],": This is a command that can be used in a message context."]}],"\n"]}],"\n",["$","h3",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"options","children":[["$","a",null,{"href":"#options","className":"peer","children":"Options"}],["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-link size-3.5 shrink-0 text-fd-muted-foreground opacity-0 transition-opacity peer-hover:opacity-100","aria-label":"Link to section","children":[["$","path","1cjeqo",{"d":"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}],["$","path","19qd67",{"d":"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}],"$undefined"]}]]}],"\n",["$","p",null,{"children":["The ",["$","code",null,{"children":"options"}]," property is used to set the options of the command. These are only used for chat input commands."]}],"\n",["$","ul",null,{"children":["\n",["$","li",null,{"children":[["$","code",null,{"children":"String"}],": Basic string input"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"Integer"}],": Integer input"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"Number"}],": Number input"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"Boolean"}],": Boolean input (with autocomplete to show True and False)"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"User"}],": User object (with autocomplete to show users in the server. Also accepts just an ID which will be resolved to a user object)"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"Channel"}],": Channel object (with autocomplete to show channels in the server. Also accepts just an ID which will be resolved to a channel object)"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"Role"}],": Role object (with autocomplete to show roles in the server. Also accepts just an ID which will be resolved to a role object)"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"Mentionable"}],": Mentionable object (with autocomplete to show both users and roles in the server)"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"Attachment"}],": File attachment"]}],"\n"]}],"\n",["$","h3",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"adding-your-components","children":[["$","a",null,{"href":"#adding-your-components","className":"peer","children":"Adding your Components"}],["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-link size-3.5 shrink-0 text-fd-muted-foreground opacity-0 transition-opacity peer-hover:opacity-100","aria-label":"Link to section","children":[["$","path","1cjeqo",{"d":"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}],["$","path","19qd67",{"d":"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}],"$undefined"]}]]}],"\n",["$","p",null,{"children":["The ",["$","code",null,{"children":"components"}]," property is used to set the components of the command. You need to pass every component that you might use in the command, and they will be automatically registered."]}],"\n",["$","p",null,{"children":["$","$L15",null,{"href":"/carbon/classes/components","prefetch":"$undefined","replace":"$undefined","children":"See this page for more information about components."}]}],"\n",["$","h3",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"automatic-defer","children":[["$","a",null,{"href":"#automatic-defer","className":"peer","children":"Automatic Defer"}],["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-link size-3.5 shrink-0 text-fd-muted-foreground opacity-0 transition-opacity peer-hover:opacity-100","aria-label":"Link to section","children":[["$","path","1cjeqo",{"d":"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}],["$","path","19qd67",{"d":"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}],"$undefined"]}]]}],"\n",["$","p",null,{"children":["The ",["$","code",null,{"children":"defer"}]," property is used to set whether the command should be deferred automatically. When a command is deferred, it will show a Loading state to the user, and you have 15 minutes to reply after that."]}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"wildcard-commands","children":[["$","a",null,{"href":"#wildcard-commands","className":"peer","children":"Wildcard Commands"}],["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-link size-3.5 shrink-0 text-fd-muted-foreground opacity-0 transition-opacity peer-hover:opacity-100","aria-label":"Link to section","children":[["$","path","1cjeqo",{"d":"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}],["$","path","19qd67",{"d":"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}],"$undefined"]}]]}],"\n",["$","p",null,{"children":"You can also create a wildcard command, which will be called when no command is found. This is useful for when you want to have a default command that is called when no other command is found, or for something like a maintenance mode for another bot that you can switch to."}],"\n",["$","p",null,{"children":["To create a wildcard command, you just have to create a command like normal, but set the name to ",["$","code",null,{"children":"\"*\""}],". This will be called when no other command is found."]}],"\n",["$","$L3b",null,{"className":"shiki shiki-themes github-light github-dark","style":{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8","--shiki-light-bg":"#fff","--shiki-dark-bg":"#24292e"},"tabIndex":"0","title":"src/commands/_maintenance.ts","icon":"$3e","children":["$","$L3d",null,{"children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"import"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" { Command, "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"type"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" CommandInteraction } "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"from"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"@buape/carbon\""}]]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"export"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" default"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" class"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" MaintenanceCommand"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" extends"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" Command"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" {"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tname"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"*\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tdescription"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"Maintenance mode\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tdefer"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" false"}]]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"\tasync"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" run"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"("}],["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"interaction"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":":"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" CommandInteraction"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":") {"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"\t\treturn"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" interaction."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"reply"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"({"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t\t\tcontent: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"The bot is currently under maintenance. Please try again later.\""}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t\t})"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t}"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"}"}]}]]}]}]}]],null]}]],["$","div",null,{"className":"mt-auto"}],["$","$L3f",null,{"date":"$D2024-09-11T14:49:03.000Z"}],["$","$L40",null,{"items":"$undefined"}]]}]]}],["$","$L41",null,{"header":"$undefined","footer":["$undefined",["$","$36",null,{"fallback":null,"children":[["$","$L37",null,{"moduleIds":"$42"}],["$","$L38",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/classes/commands.mdx"}]]}]],"children":["$","$L39",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L43",null,{"parallelRouterKey":"children","segmentPath":["children","$44","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L45",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/fd49613c1e22c54d.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","className":"__className_36bd41","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L46",null,{"search":{"enabled":false},"children":["$","$L43",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L45",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[]}]}]}]}]],null],null],["$L47",null]]]]
+0:["ob-je4azGQ3_nWAi-Q2wj",[[["",{"children":[["slug","carbon/classes/commands","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"classes\",\"commands\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/classes/commands","c"],{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"tree":{"name":"","children":[{"type":"folder","name":"Carbon Docs","icon":["$","div",null,{"className":"rounded-md border bg-gradient-to-b from-fd-secondary p-1 shadow-sm","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-album","children":[["$","rect","1m3agn",{"width":"18","height":"18","x":"3","y":"3","rx":"2","ry":"2"}],["$","polyline","1wcwz3",{"points":"11 3 11 11 14 8 17 11 17 3"}],"$undefined"]}]}],"root":true,"index":{"type":"page","name":"Introduction","icon":"$3","url":"/carbon"},"children":[{"type":"page","name":"Introduction","icon":["$","div",null,{"className":"rounded-md border bg-gradient-to-b from-fd-secondary p-1 shadow-sm","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-album","children":[["$","rect","1m3agn",{"width":"18","height":"18","x":"3","y":"3","rx":"2","ry":"2"}],["$","polyline","1wcwz3",{"points":"11 3 11 11 14 8 17 11 17 3"}],"$undefined"]}]}],"url":"/carbon"},{"type":"folder","name":"Getting Started","icon":["$","div",null,{"className":"rounded-md border bg-gradient-to-b from-fd-secondary p-1 shadow-sm","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-circle-play","children":[["$","circle","1mglay",{"cx":"12","cy":"12","r":"10"}],["$","polygon","1cimsy",{"points":"10 8 16 12 10 16 10 8"}],"$undefined"]}]}],"index":{"type":"page","name":"Getting Started","icon":"$6","url":"/carbon/getting-started"},"children":[{"type":"page","name":"Node.js","url":"/carbon/getting-started/bun"},{"type":"page","name":"Cloudflare Workers","url":"/carbon/getting-started/cloudflare-workers"},{"type":"page","name":"Next.js","url":"/carbon/getting-started/nextjs"},{"type":"page","name":"Node.js","url":"/carbon/getting-started/nodejs"}]},{"type":"separator","name":" Usage "},{"type":"folder","name":"Classes","icon":["$","div",null,{"className":"rounded-md border bg-gradient-to-b from-fd-secondary p-1 shadow-sm","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-code","children":[["$","polyline","z7tu5w",{"points":"16 18 22 12 16 6"}],["$","polyline","1eg1df",{"points":"8 6 2 12 8 18"}],"$undefined"]}]}],"index":{"type":"page","name":"Classes","icon":"$9","url":"/carbon/classes"},"children":[{"type":"page","name":"Client","url":"/carbon/classes/client"},{"type":"page","name":"Commands","url":"/carbon/classes/commands"},{"type":"page","name":"Embeds","url":"/carbon/classes/embeds"},{"type":"page","name":"Modals","url":"/carbon/classes/modals"},{"type":"folder","name":"Components","index":{"type":"page","name":"Components","url":"/carbon/classes/components"},"children":[{"type":"page","name":"Buttons","url":"/carbon/classes/components/buttons"},{"type":"page","name":"Select Menus","url":"/carbon/classes/components/select-menus"},{"type":"page","name":"Text Inputs","url":"/carbon/classes/components/text-inputs"}]}]},{"type":"folder","name":"Helpful Guides","icon":["$","div",null,{"className":"rounded-md border bg-gradient-to-b from-fd-secondary p-1 shadow-sm","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-library","children":[["$","path","ji33uf",{"d":"m16 6 4 14"}],["$","path","1n7gus",{"d":"M12 6v14"}],["$","path","1gg7y9",{"d":"M8 8v12"}],["$","path","6qkkli",{"d":"M4 4v16"}],"$undefined"]}]}],"index":{"type":"page","name":"Helpful Guides","icon":"$c","url":"/carbon/helpful-guides"},"children":[{"type":"page","name":"Custom Router","url":"/carbon/helpful-guides/custom-router"},{"type":"page","name":"Partials","url":"/carbon/helpful-guides/partials"},{"type":"page","name":"Replying vs Deferring vs Acknowledging","url":"/carbon/helpful-guides/responses"},{"type":"page","name":"Why Classes?","url":"/carbon/helpful-guides/why-classes"},{"type":"folder","name":"Developer Portal","index":{"type":"page","name":"Developer Portal","url":"/carbon/helpful-guides/developer-portal"},"children":[{"type":"page","name":"Create a Bot","url":"/carbon/helpful-guides/developer-portal/create-a-bot"},{"type":"page","name":"Setting URLs","url":"/carbon/helpful-guides/developer-portal/urls"}]}]},{"type":"folder","name":"Even More","icon":["$","div",null,{"className":"rounded-md border bg-gradient-to-b from-fd-secondary p-1 shadow-sm","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-heart","children":[["$","path","c3ymky",{"d":"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z"}],"$undefined"]}]}],"index":{"type":"page","name":"Even More","icon":"$f","url":"/carbon/even-more"},"children":[{"type":"page","name":"Contributing","url":"/carbon/even-more/contributing"},{"type":"page","name":"Powered by Carbon","url":"/carbon/even-more/powered-by-carbon"}]},{"type":"separator","name":" API Reference "}]},{"type":"folder","name":"Linked Roles","root":true,"index":{"type":"page","name":"Linked Roles","url":"/linked-roles"},"children":[{"type":"separator","name":" Usage "},{"type":"page","name":"Linked Roles","url":"/linked-roles"},{"type":"separator","name":" API Reference "}]},{"type":"folder","name":"Carbon's NodeJS Wrapper","root":true,"index":{"type":"page","name":"Carbon's NodeJS Wrapper","url":"/nodejs"},"children":[{"type":"separator","name":" Usage "},{"type":"page","name":"Carbon's NodeJS Wrapper","url":"/nodejs"},{"type":"separator","name":" API Reference "}]},{"type":"folder","name":"Carbon's RequestClient","root":true,"index":{"type":"page","name":"Carbon's RequestClient","url":"/request"},"children":[{"type":"separator","name":" Usage "},{"type":"page","name":"Carbon's RequestClient","url":"/request"},{"type":"separator","name":" API Reference "}]}]},"children":[["$","$L12",null,{"title":[["$","$L13",null,{"alt":"Carbon","src":"https://cdn.buape.com/CarbonWordmark.png","width":100,"height":100,"sizes":"100px","className":"hidden w-20 md:w-24 [.uwu_&]:block","aria-label":"Carbon"}],["$","span",null,{"className":"font-medium max-md:[header_&]:hidden","children":"Carbon"}]],"transparentMode":"none","children":"$undefined"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$L14",null,{"banner":[["$","div",null,{"className":"flex flex-row items-center border-b pb-2 max-md:hidden","children":[["$","$L15","title",{"href":"/","className":"inline-flex items-center gap-2.5 py-1 font-medium","children":"$16"}],["$","$L1c","links",{"items":[{"icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}],"text":"Blog","url":"/blog","active":"nested-url"},{"text":"Showcase","url":"/showcase","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-layout-template","children":[["$","rect","f1a2em",{"width":"18","height":"7","x":"3","y":"3","rx":"1"}],["$","rect","jqznyg",{"width":"9","height":"7","x":"3","y":"14","rx":"1"}],["$","rect","q5h2i8",{"width":"5","height":"7","x":"16","y":"14","rx":"1"}],"$undefined"]}]},{"text":"Sponsors","url":"/sponsors","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-heart","children":[["$","path","c3ymky",{"d":"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z"}],"$undefined"]}]},{"type":"icon","url":"https://github.com/fuma-nama/fumadocs","text":"Github","icon":["$","svg",null,{"role":"img","viewBox":"0 0 24 24","fill":"currentColor","children":["$","path",null,{"d":"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"}]}],"external":true}],"className":"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 hover:bg-fd-accent hover:text-fd-accent-foreground p-1.5 [&_svg]:size-5 ms-auto","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-ellipsis","children":[["$","circle","41hilf",{"cx":"12","cy":"12","r":"1"}],["$","circle","1wjl8i",{"cx":"19","cy":"12","r":"1"}],["$","circle","1pcz8c",{"cx":"5","cy":"12","r":"1"}],"$undefined"]}]}]]}],["$","$L1d",null,{"options":[{"url":"/docs","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-package size-9 shrink-0 rounded-md bg-gradient-to-t from-fd-background/80 p-1.5","style":{"backgroundColor":"hsl(var(--docs-color)/.3)","color":"hsl(var(--docs-color))"},"children":[["$","path","1c824w",{"d":"m7.5 4.27 9 5.15"}],["$","path","hh9hay",{"d":"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z"}],["$","path","g66t2b",{"d":"m3.3 7 8.7 5 8.7-5"}],["$","path","d0xqtd",{"d":"M12 22V12"}],"$undefined"]}],"title":"Carbon","description":"@buape/carbon"},{"url":"/linked-roles","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-brackets size-9 shrink-0 rounded-md bg-gradient-to-t from-fd-background/80 p-1.5","style":{"backgroundColor":"hsl(var(--linked-roles-color)/.3)","color":"hsl(var(--linked-roles-color))"},"children":[["$","path","1yor1f",{"d":"M16 3h3v18h-3"}],["$","path","1qrfwo",{"d":"M8 21H5V3h3"}],"$undefined"]}],"title":"Linked Roles","description":"@buape/carbon-linked-roles"},{"url":"/nodejs","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-computer size-9 shrink-0 rounded-md bg-gradient-to-t from-fd-background/80 p-1.5","style":{"backgroundColor":"hsl(var(--nodejs-color)/.3)","color":"hsl(var(--nodejs-color))"},"children":[["$","rect","wc9tft",{"width":"14","height":"8","x":"5","y":"2","rx":"2"}],["$","rect","w68u3i",{"width":"20","height":"8","x":"2","y":"14","rx":"2"}],["$","path","rwmk9e",{"d":"M6 18h2"}],["$","path","aqd8w3",{"d":"M12 18h6"}],"$undefined"]}],"title":"NodeJS","description":"@buape/carbon-nodejs"},{"url":"/request","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-link size-9 shrink-0 rounded-md bg-gradient-to-t from-fd-background/80 p-1.5","style":{"backgroundColor":"hsl(var(--request-color)/.3)","color":"hsl(var(--request-color))"},"children":[["$","path","1cjeqo",{"d":"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}],["$","path","19qd67",{"d":"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}],"$undefined"]}],"title":"Request","description":"@buape/carbon-request"}]}]],"items":"$1e","bannerProps":{"className":""},"footer":["$undefined",[["$","$L2a","theme",{}],["$","$L2b","sidebar",{}]]]}],["$","$L2c",null,{"toc":[{"title":"Creating a Command","url":"#creating-a-command","depth":2},{"title":"Setting the Name and Description","url":"#setting-the-name-and-description","depth":3},{"title":"Setting the Type","url":"#setting-the-type","depth":3},{"title":"Options","url":"#options","depth":3},{"title":"Adding your Components","url":"#adding-your-components","depth":3},{"title":"Automatic Defer","url":"#automatic-defer","depth":3},{"title":"Wildcard Commands","url":"#wildcard-commands","depth":2}],"single":"$undefined","children":[["$","div",null,{"className":"mx-auto flex min-w-0 max-w-[860px] flex-1 flex-col","children":[["$","div",null,{"id":"nd-tocnav","className":"sticky top-14 z-10 border-b bg-fd-background/60 text-sm backdrop-blur-md md:top-1 md:mx-3 md:rounded-full md:border md:shadow-md lg:hidden","children":["$","$L2d",null,{"items":"$2e","header":"$undefined","footer":["$undefined",["$","$36",null,{"fallback":null,"children":[["$","$L37",null,{"moduleIds":["../node_modules/.pnpm/fumadocs-ui@13.4.9_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.9_react-dom@18.3.1_r_ryuhgk7jmkuvxhzbwlr3yvdeme/node_modules/fumadocs-ui/dist/page.js -> ./edit-on-github-YFVYCMB7.js"]}],["$","$L38",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/classes/commands.mdx"}]]}]],"children":["$","$L39",null,{"items":"$2e","isMenu":true}]}]}],["$","article",null,{"className":"flex flex-1 flex-col gap-6 px-4 pt-10 md:px-6 md:pt-12","children":[["$","$L3a",null,{}],[["$","h1",null,{"children":"Commands","className":"text-3xl font-bold"}],["$","p",null,{"children":"Commands are the main way to interact with your bot, including Context Menu apps and slash commands","className":"mb-8 text-lg text-fd-muted-foreground"}],["$","div",null,{"className":"prose","children":[[["$","p",null,{"children":"Commands are the main way to interact with your bot. They are used to handle user input and respond to it."}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"creating-a-command","children":[["$","a",null,{"href":"#creating-a-command","className":"peer","children":"Creating a Command"}],["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-link size-3.5 shrink-0 text-fd-muted-foreground opacity-0 transition-opacity peer-hover:opacity-100","aria-label":"Link to section","children":[["$","path","1cjeqo",{"d":"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}],["$","path","19qd67",{"d":"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}],"$undefined"]}]]}],"\n",["$","p",null,{"children":["To create a command, you need to create a class that extends the ",["$","code",null,{"children":"Command"}]," class. This class will handle the command and its functionality."]}],"\n",["$","$L3b",null,{"className":"shiki shiki-themes github-light github-dark","style":{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8","--shiki-light-bg":"#fff","--shiki-dark-bg":"#24292e"},"tabIndex":"0","title":"src/commands/ping.ts","icon":"$3c","children":["$","$L3d",null,{"children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"import"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" { Command, "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"type"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" CommandInteraction } "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"from"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"@buape/carbon\""}]]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"export"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" default"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" class"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" PingCommand"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" extends"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" Command"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" {"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tname"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"ping\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tdescription"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"A simple ping command\""}]]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"\tasync"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" run"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"("}],["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"interaction"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":":"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" CommandInteraction"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":") {"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"\t\treturn"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" interaction."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"reply"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"({"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t\t\tcontent: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"Pong!\""}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t\t})"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t}"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"}"}]}]]}]}]}],"\n",["$","p",null,{"children":"In this example, we have created a simple command that responds with \"Pong\" when the user runs the command."}],"\n",["$","h3",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"setting-the-name-and-description","children":[["$","a",null,{"href":"#setting-the-name-and-description","className":"peer","children":"Setting the Name and Description"}],["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-link size-3.5 shrink-0 text-fd-muted-foreground opacity-0 transition-opacity peer-hover:opacity-100","aria-label":"Link to section","children":[["$","path","1cjeqo",{"d":"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}],["$","path","19qd67",{"d":"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}],"$undefined"]}]]}],"\n",["$","p",null,{"children":["The ",["$","code",null,{"children":"name"}]," and ",["$","code",null,{"children":"description"}]," properties are used to set the name and description of the command. These are used in the help command and in the command list."]}],"\n",["$","h3",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"setting-the-type","children":[["$","a",null,{"href":"#setting-the-type","className":"peer","children":"Setting the Type"}],["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-link size-3.5 shrink-0 text-fd-muted-foreground opacity-0 transition-opacity peer-hover:opacity-100","aria-label":"Link to section","children":[["$","path","1cjeqo",{"d":"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}],["$","path","19qd67",{"d":"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}],"$undefined"]}]]}],"\n",["$","p",null,{"children":["The ",["$","code",null,{"children":"type"}]," property is used to set the type of the command. This is used to determine which type of command it is. The available types are:"]}],"\n",["$","ul",null,{"children":["\n",["$","li",null,{"children":[["$","code",null,{"children":"ChatInput"}],": This is a command that can be used in a chat input."]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"User"}],": This is a command that can be used in a user context."]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"Message"}],": This is a command that can be used in a message context."]}],"\n"]}],"\n",["$","h3",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"options","children":[["$","a",null,{"href":"#options","className":"peer","children":"Options"}],["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-link size-3.5 shrink-0 text-fd-muted-foreground opacity-0 transition-opacity peer-hover:opacity-100","aria-label":"Link to section","children":[["$","path","1cjeqo",{"d":"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}],["$","path","19qd67",{"d":"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}],"$undefined"]}]]}],"\n",["$","p",null,{"children":["The ",["$","code",null,{"children":"options"}]," property is used to set the options of the command. These are only used for chat input commands."]}],"\n",["$","ul",null,{"children":["\n",["$","li",null,{"children":[["$","code",null,{"children":"String"}],": Basic string input"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"Integer"}],": Integer input"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"Number"}],": Number input"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"Boolean"}],": Boolean input (with autocomplete to show True and False)"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"User"}],": User object (with autocomplete to show users in the server. Also accepts just an ID which will be resolved to a user object)"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"Channel"}],": Channel object (with autocomplete to show channels in the server. Also accepts just an ID which will be resolved to a channel object)"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"Role"}],": Role object (with autocomplete to show roles in the server. Also accepts just an ID which will be resolved to a role object)"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"Mentionable"}],": Mentionable object (with autocomplete to show both users and roles in the server)"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"Attachment"}],": File attachment"]}],"\n"]}],"\n",["$","h3",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"adding-your-components","children":[["$","a",null,{"href":"#adding-your-components","className":"peer","children":"Adding your Components"}],["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-link size-3.5 shrink-0 text-fd-muted-foreground opacity-0 transition-opacity peer-hover:opacity-100","aria-label":"Link to section","children":[["$","path","1cjeqo",{"d":"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}],["$","path","19qd67",{"d":"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}],"$undefined"]}]]}],"\n",["$","p",null,{"children":["The ",["$","code",null,{"children":"components"}]," property is used to set the components of the command. You need to pass every component that you might use in the command, and they will be automatically registered."]}],"\n",["$","p",null,{"children":["$","$L15",null,{"href":"/carbon/classes/components","prefetch":"$undefined","replace":"$undefined","children":"See this page for more information about components."}]}],"\n",["$","h3",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"automatic-defer","children":[["$","a",null,{"href":"#automatic-defer","className":"peer","children":"Automatic Defer"}],["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-link size-3.5 shrink-0 text-fd-muted-foreground opacity-0 transition-opacity peer-hover:opacity-100","aria-label":"Link to section","children":[["$","path","1cjeqo",{"d":"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}],["$","path","19qd67",{"d":"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}],"$undefined"]}]]}],"\n",["$","p",null,{"children":["The ",["$","code",null,{"children":"defer"}]," property is used to set whether the command should be deferred automatically. When a command is deferred, it will show a Loading state to the user, and you have 15 minutes to reply after that."]}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"wildcard-commands","children":[["$","a",null,{"href":"#wildcard-commands","className":"peer","children":"Wildcard Commands"}],["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-link size-3.5 shrink-0 text-fd-muted-foreground opacity-0 transition-opacity peer-hover:opacity-100","aria-label":"Link to section","children":[["$","path","1cjeqo",{"d":"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}],["$","path","19qd67",{"d":"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}],"$undefined"]}]]}],"\n",["$","p",null,{"children":"You can also create a wildcard command, which will be called when no command is found. This is useful for when you want to have a default command that is called when no other command is found, or for something like a maintenance mode for another bot that you can switch to."}],"\n",["$","p",null,{"children":["To create a wildcard command, you just have to create a command like normal, but set the name to ",["$","code",null,{"children":"\"*\""}],". This will be called when no other command is found."]}],"\n",["$","$L3b",null,{"className":"shiki shiki-themes github-light github-dark","style":{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8","--shiki-light-bg":"#fff","--shiki-dark-bg":"#24292e"},"tabIndex":"0","title":"src/commands/_maintenance.ts","icon":"$3e","children":["$","$L3d",null,{"children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"import"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" { Command, "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"type"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" CommandInteraction } "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"from"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"@buape/carbon\""}]]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"export"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" default"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" class"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" MaintenanceCommand"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" extends"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" Command"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" {"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tname"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"*\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tdescription"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"Maintenance mode\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tdefer"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" false"}]]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"\tasync"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" run"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"("}],["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"interaction"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":":"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" CommandInteraction"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":") {"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"\t\treturn"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" interaction."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"reply"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"({"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t\t\tcontent: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"The bot is currently under maintenance. Please try again later.\""}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t\t})"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t}"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"}"}]}]]}]}]}]],null]}]],["$","div",null,{"className":"mt-auto"}],["$","$L3f",null,{"date":"$D2024-09-11T20:53:15.000Z"}],["$","$L40",null,{"items":"$undefined"}]]}]]}],["$","$L41",null,{"header":"$undefined","footer":["$undefined",["$","$36",null,{"fallback":null,"children":[["$","$L37",null,{"moduleIds":"$42"}],["$","$L38",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/classes/commands.mdx"}]]}]],"children":["$","$L39",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L43",null,{"parallelRouterKey":"children","segmentPath":["children","$44","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L45",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/472951db3f044431.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","className":"__className_36bd41","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L46",null,{"search":{"enabled":false},"children":["$","$L43",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L45",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[]}]}]}]}]],null],null],["$L47",null]]]]
47:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","meta","2",{"name":"next-size-adjust"}]]
1:null
diff --git a/carbon/classes/components.html b/carbon/classes/components.html
index 3bd082f7..08830923 100644
--- a/carbon/classes/components.html
+++ b/carbon/classes/components.html
@@ -1,4 +1,4 @@
-Carbon
Components are used to create interactive elements in your bot, such as buttons, select menus, and text inputs.
When you create a component, you will need to pass it to the components property of the Command class. This will allow it to be registered with the bot as a handler.
When you pass it, make sure you aren't instantiating it, but rather just passing the class itself.
src/commands/ping.ts
import { Command, type CommandInteraction } from "@buape/carbon"
@@ -28,4 +28,4 @@
}) }}
-
If you don't want to automatically register the components, you can do so manually by setting the autoRegister option to false in the client options.
Select menus are used to select an option from a list of options in a dropdown
Select menus are used to select an option from a list of options in a dropdown. They are created by extending the SelectMenu class, and adding a options property.
Select menus are used to select an option from a list of options in a dropdown
Select menus are used to select an option from a list of options in a dropdown. They are created by extending the SelectMenu class, and adding a options property.
Here we have 5 examples of select menus, each with a different type of option. Only the StringSelectMenu class requires you to provide options, the other 4 will automatically be populated by Discord (and allow searching as well)
Here we have 5 examples of select menus, each with a different type of option. Only the StringSelectMenu class requires you to provide options, the other 4 will automatically be populated by Discord (and allow searching as well)
Text Inputs are blank text fields used solely within Modals to collect user input
Text Inputs are blank text fields used solely within Modals to collect user input. They are created by extending the TextInput class, and adding a label and placeholder property.
Text Inputs are blank text fields used solely within Modals to collect user input
Text Inputs are blank text fields used solely within Modals to collect user input. They are created by extending the TextInput class, and adding a label and placeholder property.
src/components/text-input.ts
class TextInputHi extends TextInput { label = "Tell me about your life" customId = "life"
@@ -10,4 +10,4 @@
customId = "age" style = TextInputStyle.Short}
-
Here we have 2 examples of text inputs, one in a large paragraph form, and one in a short form.
Modals are popup forms that can be used to collect user input
Modals are popup forms that can be used to collect user input. They are created by extending the Modal class, and adding a title and components property. All the components must be TextInput classes.
Modals are popup forms that can be used to collect user input
Modals are popup forms that can be used to collect user input. They are created by extending the Modal class, and adding a title and components property. All the components must be TextInput classes.
src/commands/modal.ts
class ModalCommand extends Modal { title = "Test Modal" customId = "test-modal"
@@ -24,4 +24,4 @@
label = "How old are you?" customId = "age" style = TextInputStyle.Short
-}
First off, thanks for taking the time to contribute! ❤️
All types of contributions are encouraged and valued. You can see below for different ways to help and details about how Carbon handles them. Please make sure to read the relevant section before making your contribution. It will make it a lot easier for us maintainers and smooth out the experience for all involved.
And if you like Carbon, but just don't have time to contribute, that's fine. There are other easy ways to support Carbon and show your appreciation, which we would also be very happy about:
We prefer that all PRs also have an associated issue, so that we can track the progress of the PR and keep the discussion focused on the issue at hand.
Cloudflare Workers is a quick and free option for hosting your bot, and is the primary runtime that we at Buape Studios use Carbon on. Just expose the handle method on the client, and you're good to go!
Node.js is a great choice if you want a bot that can run on any server. You simply install the @buape/carbon-nodejs package, and use the server provided there!
Next.js is a great choice if you want to make a bot that integrates with your Next.js app. Carbon will run on an API route, so you can have everything in one place.
Bun is a fast and lightweight alternative to Node.js, and is a great option for running Carbon on a server. You just need to pass a port to Carbon, and it will use Bun's built-in HTTP server.
If you want to use Carbon on a server that is not one of the above, you can use the handle method on the client. Check out the Custom Router guide for more information on how to use it.
And that's it! You now have a basic Carbon bot running on Bun.
+If you want to add more commands, just create more classes in the src/commands folder, and add them to the client in the src/index.ts file.
Finally, we need to add a way to deploy your commands to Discord. We can do this by adding a deploy route to our client.
+Add this right above the client.router.fetch line:
+
app/discord/deploy/route.ts
import { client } from "../route"
+
+export function GET() {
+ client.deployCommands()
+ return new Response(null, {
+ status: 200
+ })
+}
+
And that's it! You now have a basic Carbon bot running on Cloudflare Workers.
+If you want to add more commands, just create more classes in the commands folder, and add them to the client in the route.ts file.
+
Now you'll need to setup your bot on the Discord Developer Portal. Take a look at the following cards for more information.
To create a Discord bot, you'll need to head over to the Discord Developer Portal and create a new application by using the New Application button in the top left. Give your application a name and click Create.
You should now see a page that shows information about your bot. You can add an avatar and bio for your bot here.
Once you have Carbon running, you'll want to set your interaction URL. This is the URL that Discord will send interactions to.
Unless you've modified it, this will be at https://DOMAIN.COM/interaction, replacing DOMAIN.COM with your domain.
@@ -6,4 +6,4 @@
Put your interaction URL in the Interaction URL field, and click Save Changes.
Discord will then attempt to send a test interaction to your URL, and if it succeeds, you're good to go!
-If not, make sure you've set the URL correctly, and make sure that Carbon is actually running.
Partials are a concept in the Discord API that allows the API to send only a subset of the data needed for a certain structure, such as only the ID of a user or the channel ID + message ID of a message. This is useful for reducing the amount of data that needs to be sent, and can improve performance.
Partials are a concept in the Discord API that allows the API to send only a subset of the data needed for a certain structure, such as only the ID of a user or the channel ID + message ID of a message. This is useful for reducing the amount of data that needs to be sent, and can improve performance.
In Carbon, you may sometimes get partials on things such as Interaction#message. This is because the original data for that interaction only had a partial. Luckily, there is a fetch() method on all classes that may be partial (as well as a boolean partial property on all classes), which will fetch the full data of the class.
-
Because of this, many properties on a structure, such as a Message, will be potentially undefined, and you should check for that before using them.
This is the simplest way to respond to an interaction, and is used for most commands. It is done by using the reply method on the CommandInteraction class.
import { Client } from "@buape/carbon"import { LinkedRoles } from "@buape/carbon-linked-roles"
@@ -42,4 +42,4 @@
You can see where to add this by clicking here, and set the linked role to <BASE_URL>/connect, so for example, https://my-carbon-worker.YOURNAME.workers.dev/connect.
You'll also need to add a redirect URL to your Discord application, so that users can be redirected to your website after they login.
-You can go to the OAuth tab on the dashboard and add a redirect URL there of <BASE_URL>/connect/callback, so for example, https://my-carbon-worker.YOURNAME.workers.dev/connect/callback.
\ No newline at end of file
+You can go to the OAuth tab on the dashboard and add a redirect URL there of <BASE_URL>/connect/callback, so for example, https://my-carbon-worker.YOURNAME.workers.dev/connect/callback.
\ No newline at end of file
diff --git a/linked-roles.txt b/linked-roles.txt
index 2a280a72..63f9e0d8 100644
--- a/linked-roles.txt
+++ b/linked-roles.txt
@@ -1,29 +1,29 @@
-2:I[5749,["760","static/chunks/760-885d79b354ba09d0.js","808","static/chunks/808-6dceee3f6f2f7cd1.js","191","static/chunks/191-b80eeb6bedf94e04.js","877","static/chunks/app/%5B...slug%5D/page-a4fd37b3361b7e5a.js"],"TreeContextProvider"]
-12:I[5749,["760","static/chunks/760-885d79b354ba09d0.js","808","static/chunks/808-6dceee3f6f2f7cd1.js","191","static/chunks/191-b80eeb6bedf94e04.js","877","static/chunks/app/%5B...slug%5D/page-a4fd37b3361b7e5a.js"],"SubNav"]
-13:I[8918,["760","static/chunks/760-885d79b354ba09d0.js","808","static/chunks/808-6dceee3f6f2f7cd1.js","191","static/chunks/191-b80eeb6bedf94e04.js","877","static/chunks/app/%5B...slug%5D/page-a4fd37b3361b7e5a.js"],"Image"]
-14:I[5749,["760","static/chunks/760-885d79b354ba09d0.js","808","static/chunks/808-6dceee3f6f2f7cd1.js","191","static/chunks/191-b80eeb6bedf94e04.js","877","static/chunks/app/%5B...slug%5D/page-a4fd37b3361b7e5a.js"],"DynamicSidebar"]
-15:I[5801,["760","static/chunks/760-885d79b354ba09d0.js","808","static/chunks/808-6dceee3f6f2f7cd1.js","191","static/chunks/191-b80eeb6bedf94e04.js","877","static/chunks/app/%5B...slug%5D/page-a4fd37b3361b7e5a.js"],""]
-1c:I[5749,["760","static/chunks/760-885d79b354ba09d0.js","808","static/chunks/808-6dceee3f6f2f7cd1.js","191","static/chunks/191-b80eeb6bedf94e04.js","877","static/chunks/app/%5B...slug%5D/page-a4fd37b3361b7e5a.js"],"LinksMenu"]
-1d:I[289,["760","static/chunks/760-885d79b354ba09d0.js","808","static/chunks/808-6dceee3f6f2f7cd1.js","191","static/chunks/191-b80eeb6bedf94e04.js","877","static/chunks/app/%5B...slug%5D/page-a4fd37b3361b7e5a.js"],"RootToggle"]
-2a:I[5749,["760","static/chunks/760-885d79b354ba09d0.js","808","static/chunks/808-6dceee3f6f2f7cd1.js","191","static/chunks/191-b80eeb6bedf94e04.js","877","static/chunks/app/%5B...slug%5D/page-a4fd37b3361b7e5a.js"],"ThemeToggle"]
-2b:I[5749,["760","static/chunks/760-885d79b354ba09d0.js","808","static/chunks/808-6dceee3f6f2f7cd1.js","191","static/chunks/191-b80eeb6bedf94e04.js","877","static/chunks/app/%5B...slug%5D/page-a4fd37b3361b7e5a.js"],"SidebarCollapseTrigger"]
-2c:I[8296,["760","static/chunks/760-885d79b354ba09d0.js","808","static/chunks/808-6dceee3f6f2f7cd1.js","191","static/chunks/191-b80eeb6bedf94e04.js","877","static/chunks/app/%5B...slug%5D/page-a4fd37b3361b7e5a.js"],"AnchorProvider"]
-2d:I[6169,["760","static/chunks/760-885d79b354ba09d0.js","808","static/chunks/808-6dceee3f6f2f7cd1.js","191","static/chunks/191-b80eeb6bedf94e04.js","877","static/chunks/app/%5B...slug%5D/page-a4fd37b3361b7e5a.js"],"TocPopover"]
+2:I[3471,["811","static/chunks/811-5bdb0627e242b7c7.js","547","static/chunks/547-a3533eb96f4320e4.js","387","static/chunks/387-5fba0961e28faa7c.js","877","static/chunks/app/%5B...slug%5D/page-f0af98b812f98b2b.js"],"TreeContextProvider"]
+12:I[3471,["811","static/chunks/811-5bdb0627e242b7c7.js","547","static/chunks/547-a3533eb96f4320e4.js","387","static/chunks/387-5fba0961e28faa7c.js","877","static/chunks/app/%5B...slug%5D/page-f0af98b812f98b2b.js"],"SubNav"]
+13:I[8918,["811","static/chunks/811-5bdb0627e242b7c7.js","547","static/chunks/547-a3533eb96f4320e4.js","387","static/chunks/387-5fba0961e28faa7c.js","877","static/chunks/app/%5B...slug%5D/page-f0af98b812f98b2b.js"],"Image"]
+14:I[3471,["811","static/chunks/811-5bdb0627e242b7c7.js","547","static/chunks/547-a3533eb96f4320e4.js","387","static/chunks/387-5fba0961e28faa7c.js","877","static/chunks/app/%5B...slug%5D/page-f0af98b812f98b2b.js"],"DynamicSidebar"]
+15:I[5801,["811","static/chunks/811-5bdb0627e242b7c7.js","547","static/chunks/547-a3533eb96f4320e4.js","387","static/chunks/387-5fba0961e28faa7c.js","877","static/chunks/app/%5B...slug%5D/page-f0af98b812f98b2b.js"],""]
+1c:I[3471,["811","static/chunks/811-5bdb0627e242b7c7.js","547","static/chunks/547-a3533eb96f4320e4.js","387","static/chunks/387-5fba0961e28faa7c.js","877","static/chunks/app/%5B...slug%5D/page-f0af98b812f98b2b.js"],"LinksMenu"]
+1d:I[6525,["811","static/chunks/811-5bdb0627e242b7c7.js","547","static/chunks/547-a3533eb96f4320e4.js","387","static/chunks/387-5fba0961e28faa7c.js","877","static/chunks/app/%5B...slug%5D/page-f0af98b812f98b2b.js"],"RootToggle"]
+2a:I[3471,["811","static/chunks/811-5bdb0627e242b7c7.js","547","static/chunks/547-a3533eb96f4320e4.js","387","static/chunks/387-5fba0961e28faa7c.js","877","static/chunks/app/%5B...slug%5D/page-f0af98b812f98b2b.js"],"ThemeToggle"]
+2b:I[3471,["811","static/chunks/811-5bdb0627e242b7c7.js","547","static/chunks/547-a3533eb96f4320e4.js","387","static/chunks/387-5fba0961e28faa7c.js","877","static/chunks/app/%5B...slug%5D/page-f0af98b812f98b2b.js"],"SidebarCollapseTrigger"]
+2c:I[8296,["811","static/chunks/811-5bdb0627e242b7c7.js","547","static/chunks/547-a3533eb96f4320e4.js","387","static/chunks/387-5fba0961e28faa7c.js","877","static/chunks/app/%5B...slug%5D/page-f0af98b812f98b2b.js"],"AnchorProvider"]
+2d:I[551,["811","static/chunks/811-5bdb0627e242b7c7.js","547","static/chunks/547-a3533eb96f4320e4.js","387","static/chunks/387-5fba0961e28faa7c.js","877","static/chunks/app/%5B...slug%5D/page-f0af98b812f98b2b.js"],"TocPopover"]
32:"$Sreact.suspense"
-33:I[8873,["760","static/chunks/760-885d79b354ba09d0.js","808","static/chunks/808-6dceee3f6f2f7cd1.js","191","static/chunks/191-b80eeb6bedf94e04.js","877","static/chunks/app/%5B...slug%5D/page-a4fd37b3361b7e5a.js"],"PreloadCss"]
-34:I[5377,["760","static/chunks/760-885d79b354ba09d0.js","808","static/chunks/808-6dceee3f6f2f7cd1.js","191","static/chunks/191-b80eeb6bedf94e04.js","877","static/chunks/app/%5B...slug%5D/page-a4fd37b3361b7e5a.js"],"default"]
-35:I[6169,["760","static/chunks/760-885d79b354ba09d0.js","808","static/chunks/808-6dceee3f6f2f7cd1.js","191","static/chunks/191-b80eeb6bedf94e04.js","877","static/chunks/app/%5B...slug%5D/page-a4fd37b3361b7e5a.js"],"TOCItems"]
-36:I[6169,["760","static/chunks/760-885d79b354ba09d0.js","808","static/chunks/808-6dceee3f6f2f7cd1.js","191","static/chunks/191-b80eeb6bedf94e04.js","877","static/chunks/app/%5B...slug%5D/page-a4fd37b3361b7e5a.js"],"Breadcrumb"]
-37:I[6511,["760","static/chunks/760-885d79b354ba09d0.js","808","static/chunks/808-6dceee3f6f2f7cd1.js","191","static/chunks/191-b80eeb6bedf94e04.js","877","static/chunks/app/%5B...slug%5D/page-a4fd37b3361b7e5a.js"],"Tabs"]
-38:I[6511,["760","static/chunks/760-885d79b354ba09d0.js","808","static/chunks/808-6dceee3f6f2f7cd1.js","191","static/chunks/191-b80eeb6bedf94e04.js","877","static/chunks/app/%5B...slug%5D/page-a4fd37b3361b7e5a.js"],"Tab"]
-39:I[6230,["760","static/chunks/760-885d79b354ba09d0.js","808","static/chunks/808-6dceee3f6f2f7cd1.js","191","static/chunks/191-b80eeb6bedf94e04.js","877","static/chunks/app/%5B...slug%5D/page-a4fd37b3361b7e5a.js"],"CodeBlock"]
-3a:I[6230,["760","static/chunks/760-885d79b354ba09d0.js","808","static/chunks/808-6dceee3f6f2f7cd1.js","191","static/chunks/191-b80eeb6bedf94e04.js","877","static/chunks/app/%5B...slug%5D/page-a4fd37b3361b7e5a.js"],"Pre"]
-3c:I[6169,["760","static/chunks/760-885d79b354ba09d0.js","808","static/chunks/808-6dceee3f6f2f7cd1.js","191","static/chunks/191-b80eeb6bedf94e04.js","877","static/chunks/app/%5B...slug%5D/page-a4fd37b3361b7e5a.js"],"LastUpdate"]
-3d:I[6169,["760","static/chunks/760-885d79b354ba09d0.js","808","static/chunks/808-6dceee3f6f2f7cd1.js","191","static/chunks/191-b80eeb6bedf94e04.js","877","static/chunks/app/%5B...slug%5D/page-a4fd37b3361b7e5a.js"],"Footer"]
-3e:I[6169,["760","static/chunks/760-885d79b354ba09d0.js","808","static/chunks/808-6dceee3f6f2f7cd1.js","191","static/chunks/191-b80eeb6bedf94e04.js","877","static/chunks/app/%5B...slug%5D/page-a4fd37b3361b7e5a.js"],"Toc"]
+33:I[8873,["811","static/chunks/811-5bdb0627e242b7c7.js","547","static/chunks/547-a3533eb96f4320e4.js","387","static/chunks/387-5fba0961e28faa7c.js","877","static/chunks/app/%5B...slug%5D/page-f0af98b812f98b2b.js"],"PreloadCss"]
+34:I[9187,["811","static/chunks/811-5bdb0627e242b7c7.js","547","static/chunks/547-a3533eb96f4320e4.js","387","static/chunks/387-5fba0961e28faa7c.js","877","static/chunks/app/%5B...slug%5D/page-f0af98b812f98b2b.js"],"default"]
+35:I[551,["811","static/chunks/811-5bdb0627e242b7c7.js","547","static/chunks/547-a3533eb96f4320e4.js","387","static/chunks/387-5fba0961e28faa7c.js","877","static/chunks/app/%5B...slug%5D/page-f0af98b812f98b2b.js"],"TOCItems"]
+36:I[551,["811","static/chunks/811-5bdb0627e242b7c7.js","547","static/chunks/547-a3533eb96f4320e4.js","387","static/chunks/387-5fba0961e28faa7c.js","877","static/chunks/app/%5B...slug%5D/page-f0af98b812f98b2b.js"],"Breadcrumb"]
+37:I[9318,["811","static/chunks/811-5bdb0627e242b7c7.js","547","static/chunks/547-a3533eb96f4320e4.js","387","static/chunks/387-5fba0961e28faa7c.js","877","static/chunks/app/%5B...slug%5D/page-f0af98b812f98b2b.js"],"Tabs"]
+38:I[9318,["811","static/chunks/811-5bdb0627e242b7c7.js","547","static/chunks/547-a3533eb96f4320e4.js","387","static/chunks/387-5fba0961e28faa7c.js","877","static/chunks/app/%5B...slug%5D/page-f0af98b812f98b2b.js"],"Tab"]
+39:I[8159,["811","static/chunks/811-5bdb0627e242b7c7.js","547","static/chunks/547-a3533eb96f4320e4.js","387","static/chunks/387-5fba0961e28faa7c.js","877","static/chunks/app/%5B...slug%5D/page-f0af98b812f98b2b.js"],"CodeBlock"]
+3a:I[8159,["811","static/chunks/811-5bdb0627e242b7c7.js","547","static/chunks/547-a3533eb96f4320e4.js","387","static/chunks/387-5fba0961e28faa7c.js","877","static/chunks/app/%5B...slug%5D/page-f0af98b812f98b2b.js"],"Pre"]
+3c:I[551,["811","static/chunks/811-5bdb0627e242b7c7.js","547","static/chunks/547-a3533eb96f4320e4.js","387","static/chunks/387-5fba0961e28faa7c.js","877","static/chunks/app/%5B...slug%5D/page-f0af98b812f98b2b.js"],"LastUpdate"]
+3d:I[551,["811","static/chunks/811-5bdb0627e242b7c7.js","547","static/chunks/547-a3533eb96f4320e4.js","387","static/chunks/387-5fba0961e28faa7c.js","877","static/chunks/app/%5B...slug%5D/page-f0af98b812f98b2b.js"],"Footer"]
+3e:I[551,["811","static/chunks/811-5bdb0627e242b7c7.js","547","static/chunks/547-a3533eb96f4320e4.js","387","static/chunks/387-5fba0961e28faa7c.js","877","static/chunks/app/%5B...slug%5D/page-f0af98b812f98b2b.js"],"Toc"]
40:I[1907,[],""]
42:I[1851,[],""]
-43:I[6225,["808","static/chunks/808-6dceee3f6f2f7cd1.js","185","static/chunks/app/layout-26077b10d25ec523.js"],"RootProvider"]
+43:I[4579,["547","static/chunks/547-a3533eb96f4320e4.js","185","static/chunks/app/layout-751c33789f182bea.js"],"RootProvider"]
5:["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-album","children":[["$","rect","1m3agn",{"width":"18","height":"18","x":"3","y":"3","rx":"2","ry":"2"}],["$","polyline","1wcwz3",{"points":"11 3 11 11 14 8 17 11 17 3"}],"$undefined"]}]
4:{"className":"rounded-md border bg-gradient-to-b from-fd-secondary p-1 shadow-sm","children":"$5"}
3:["$","div",null,"$4"]
@@ -61,8 +61,8 @@ f:["$","div",null,"$10"]
30:{"title":"Installation","url":"#installation","depth":3}
31:{"title":"Example","url":"#example","depth":3}
2e:["$2f","$30","$31"]
-3b:T4dc,3f:["../node_modules/.pnpm/fumadocs-ui@13.4.9_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.9_react-dom@18.3.1_r_vd2lnuwep3w2ghbbhpsxhzhuha/node_modules/fumadocs-ui/dist/page.js -> ./edit-on-github-YFVYCMB7.js"]
+3b:T4dc,3f:["../node_modules/.pnpm/fumadocs-ui@13.4.9_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.9_react-dom@18.3.1_r_ryuhgk7jmkuvxhzbwlr3yvdeme/node_modules/fumadocs-ui/dist/page.js -> ./edit-on-github-YFVYCMB7.js"]
41:["slug","linked-roles","c"]
-0:["ajd-SQ2r2d7teD8cRVxbO",[[["",{"children":[["slug","linked-roles","c"],{"children":["__PAGE__?{\"slug\":[\"linked-roles\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","linked-roles","c"],{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"tree":{"name":"","children":[{"type":"folder","name":"Carbon Docs","icon":["$","div",null,{"className":"rounded-md border bg-gradient-to-b from-fd-secondary p-1 shadow-sm","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-album","children":[["$","rect","1m3agn",{"width":"18","height":"18","x":"3","y":"3","rx":"2","ry":"2"}],["$","polyline","1wcwz3",{"points":"11 3 11 11 14 8 17 11 17 3"}],"$undefined"]}]}],"root":true,"index":{"type":"page","name":"Introduction","icon":"$3","url":"/carbon"},"children":[{"type":"page","name":"Introduction","icon":["$","div",null,{"className":"rounded-md border bg-gradient-to-b from-fd-secondary p-1 shadow-sm","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-album","children":[["$","rect","1m3agn",{"width":"18","height":"18","x":"3","y":"3","rx":"2","ry":"2"}],["$","polyline","1wcwz3",{"points":"11 3 11 11 14 8 17 11 17 3"}],"$undefined"]}]}],"url":"/carbon"},{"type":"folder","name":"Getting Started","icon":["$","div",null,{"className":"rounded-md border bg-gradient-to-b from-fd-secondary p-1 shadow-sm","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-circle-play","children":[["$","circle","1mglay",{"cx":"12","cy":"12","r":"10"}],["$","polygon","1cimsy",{"points":"10 8 16 12 10 16 10 8"}],"$undefined"]}]}],"index":{"type":"page","name":"Getting Started","icon":"$6","url":"/carbon/getting-started"},"children":[{"type":"page","name":"Bun","url":"/carbon/getting-started/bun"},{"type":"page","name":"Cloudflare Workers","url":"/carbon/getting-started/cloudflare-workers"},{"type":"page","name":"Next.js","url":"/carbon/getting-started/nextjs"},{"type":"page","name":"Node.js","url":"/carbon/getting-started/nodejs"}]},{"type":"separator","name":" Usage "},{"type":"folder","name":"Classes","icon":["$","div",null,{"className":"rounded-md border bg-gradient-to-b from-fd-secondary p-1 shadow-sm","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-code","children":[["$","polyline","z7tu5w",{"points":"16 18 22 12 16 6"}],["$","polyline","1eg1df",{"points":"8 6 2 12 8 18"}],"$undefined"]}]}],"index":{"type":"page","name":"Classes","icon":"$9","url":"/carbon/classes"},"children":[{"type":"page","name":"Client","url":"/carbon/classes/client"},{"type":"page","name":"Commands","url":"/carbon/classes/commands"},{"type":"page","name":"Embeds","url":"/carbon/classes/embeds"},{"type":"page","name":"Modals","url":"/carbon/classes/modals"},{"type":"folder","name":"Components","index":{"type":"page","name":"Components","url":"/carbon/classes/components"},"children":[{"type":"page","name":"Buttons","url":"/carbon/classes/components/buttons"},{"type":"page","name":"Select Menus","url":"/carbon/classes/components/select-menus"},{"type":"page","name":"Text Inputs","url":"/carbon/classes/components/text-inputs"}]}]},{"type":"folder","name":"Helpful Guides","icon":["$","div",null,{"className":"rounded-md border bg-gradient-to-b from-fd-secondary p-1 shadow-sm","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-library","children":[["$","path","ji33uf",{"d":"m16 6 4 14"}],["$","path","1n7gus",{"d":"M12 6v14"}],["$","path","1gg7y9",{"d":"M8 8v12"}],["$","path","6qkkli",{"d":"M4 4v16"}],"$undefined"]}]}],"index":{"type":"page","name":"Helpful Guides","icon":"$c","url":"/carbon/helpful-guides"},"children":[{"type":"page","name":"Custom Router","url":"/carbon/helpful-guides/custom-router"},{"type":"page","name":"Partials","url":"/carbon/helpful-guides/partials"},{"type":"page","name":"Replying vs Deferring vs Acknowledging","url":"/carbon/helpful-guides/responses"},{"type":"page","name":"Why Classes?","url":"/carbon/helpful-guides/why-classes"},{"type":"folder","name":"Developer Portal","index":{"type":"page","name":"Developer Portal","url":"/carbon/helpful-guides/developer-portal"},"children":[{"type":"page","name":"Create a Bot","url":"/carbon/helpful-guides/developer-portal/create-a-bot"},{"type":"page","name":"Setting URLs","url":"/carbon/helpful-guides/developer-portal/urls"}]}]},{"type":"folder","name":"Even More","icon":["$","div",null,{"className":"rounded-md border bg-gradient-to-b from-fd-secondary p-1 shadow-sm","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-heart","children":[["$","path","c3ymky",{"d":"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z"}],"$undefined"]}]}],"index":{"type":"page","name":"Even More","icon":"$f","url":"/carbon/even-more"},"children":[{"type":"page","name":"Contributing","url":"/carbon/even-more/contributing"},{"type":"page","name":"Powered by Carbon","url":"/carbon/even-more/powered-by-carbon"}]},{"type":"separator","name":" API Reference "}]},{"type":"folder","name":"Linked Roles","root":true,"index":{"type":"page","name":"Linked Roles","url":"/linked-roles"},"children":[{"type":"separator","name":" Usage "},{"type":"page","name":"Linked Roles","url":"/linked-roles"},{"type":"separator","name":" API Reference "}]},{"type":"folder","name":"Carbon's NodeJS Wrapper","root":true,"index":{"type":"page","name":"Carbon's NodeJS Wrapper","url":"/nodejs"},"children":[{"type":"separator","name":" Usage "},{"type":"page","name":"Carbon's NodeJS Wrapper","url":"/nodejs"},{"type":"separator","name":" API Reference "}]},{"type":"folder","name":"Carbon's RequestClient","root":true,"index":{"type":"page","name":"Carbon's RequestClient","url":"/request"},"children":[{"type":"separator","name":" Usage "},{"type":"page","name":"Carbon's RequestClient","url":"/request"},{"type":"separator","name":" API Reference "}]}]},"children":[["$","$L12",null,{"title":[["$","$L13",null,{"alt":"Carbon","src":"https://cdn.buape.com/CarbonWordmark.png","width":100,"height":100,"sizes":"100px","className":"hidden w-20 md:w-24 [.uwu_&]:block","aria-label":"Carbon"}],["$","span",null,{"className":"font-medium max-md:[header_&]:hidden","children":"Carbon"}]],"transparentMode":"none","children":"$undefined"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$L14",null,{"banner":[["$","div",null,{"className":"flex flex-row items-center border-b pb-2 max-md:hidden","children":[["$","$L15","title",{"href":"/","className":"inline-flex items-center gap-2.5 py-1 font-medium","children":"$16"}],["$","$L1c","links",{"items":[{"icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}],"text":"Blog","url":"/blog","active":"nested-url"},{"text":"Showcase","url":"/showcase","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-layout-template","children":[["$","rect","f1a2em",{"width":"18","height":"7","x":"3","y":"3","rx":"1"}],["$","rect","jqznyg",{"width":"9","height":"7","x":"3","y":"14","rx":"1"}],["$","rect","q5h2i8",{"width":"5","height":"7","x":"16","y":"14","rx":"1"}],"$undefined"]}]},{"text":"Sponsors","url":"/sponsors","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-heart","children":[["$","path","c3ymky",{"d":"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z"}],"$undefined"]}]},{"type":"icon","url":"https://github.com/fuma-nama/fumadocs","text":"Github","icon":["$","svg",null,{"role":"img","viewBox":"0 0 24 24","fill":"currentColor","children":["$","path",null,{"d":"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"}]}],"external":true}],"className":"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 hover:bg-fd-accent hover:text-fd-accent-foreground p-1.5 [&_svg]:size-5 ms-auto","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-ellipsis","children":[["$","circle","41hilf",{"cx":"12","cy":"12","r":"1"}],["$","circle","1wjl8i",{"cx":"19","cy":"12","r":"1"}],["$","circle","1pcz8c",{"cx":"5","cy":"12","r":"1"}],"$undefined"]}]}]]}],["$","$L1d",null,{"options":[{"url":"/docs","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-package size-9 shrink-0 rounded-md bg-gradient-to-t from-fd-background/80 p-1.5","style":{"backgroundColor":"hsl(var(--docs-color)/.3)","color":"hsl(var(--docs-color))"},"children":[["$","path","1c824w",{"d":"m7.5 4.27 9 5.15"}],["$","path","hh9hay",{"d":"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z"}],["$","path","g66t2b",{"d":"m3.3 7 8.7 5 8.7-5"}],["$","path","d0xqtd",{"d":"M12 22V12"}],"$undefined"]}],"title":"Carbon","description":"@buape/carbon"},{"url":"/linked-roles","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-brackets size-9 shrink-0 rounded-md bg-gradient-to-t from-fd-background/80 p-1.5","style":{"backgroundColor":"hsl(var(--linked-roles-color)/.3)","color":"hsl(var(--linked-roles-color))"},"children":[["$","path","1yor1f",{"d":"M16 3h3v18h-3"}],["$","path","1qrfwo",{"d":"M8 21H5V3h3"}],"$undefined"]}],"title":"Linked Roles","description":"@buape/carbon-linked-roles"},{"url":"/nodejs","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-computer size-9 shrink-0 rounded-md bg-gradient-to-t from-fd-background/80 p-1.5","style":{"backgroundColor":"hsl(var(--nodejs-color)/.3)","color":"hsl(var(--nodejs-color))"},"children":[["$","rect","wc9tft",{"width":"14","height":"8","x":"5","y":"2","rx":"2"}],["$","rect","w68u3i",{"width":"20","height":"8","x":"2","y":"14","rx":"2"}],["$","path","rwmk9e",{"d":"M6 18h2"}],["$","path","aqd8w3",{"d":"M12 18h6"}],"$undefined"]}],"title":"NodeJS","description":"@buape/carbon-nodejs"},{"url":"/request","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-link size-9 shrink-0 rounded-md bg-gradient-to-t from-fd-background/80 p-1.5","style":{"backgroundColor":"hsl(var(--request-color)/.3)","color":"hsl(var(--request-color))"},"children":[["$","path","1cjeqo",{"d":"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}],["$","path","19qd67",{"d":"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}],"$undefined"]}],"title":"Request","description":"@buape/carbon-request"}]}]],"items":"$1e","bannerProps":{"className":""},"footer":["$undefined",[["$","$L2a","theme",{}],["$","$L2b","sidebar",{}]]]}],["$","$L2c",null,{"toc":[{"title":"Usage","url":"#usage","depth":2},{"title":"Installation","url":"#installation","depth":3},{"title":"Example","url":"#example","depth":3}],"single":"$undefined","children":[["$","div",null,{"className":"mx-auto flex min-w-0 max-w-[860px] flex-1 flex-col","children":[["$","div",null,{"id":"nd-tocnav","className":"sticky top-14 z-10 border-b bg-fd-background/60 text-sm backdrop-blur-md md:top-1 md:mx-3 md:rounded-full md:border md:shadow-md lg:hidden","children":["$","$L2d",null,{"items":"$2e","header":"$undefined","footer":["$undefined",["$","$32",null,{"fallback":null,"children":[["$","$L33",null,{"moduleIds":["../node_modules/.pnpm/fumadocs-ui@13.4.9_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.9_react-dom@18.3.1_r_vd2lnuwep3w2ghbbhpsxhzhuha/node_modules/fumadocs-ui/dist/page.js -> ./edit-on-github-YFVYCMB7.js"]}],["$","$L34",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/linked-roles/index.mdx"}]]}]],"children":["$","$L35",null,{"items":"$2e","isMenu":true}]}]}],["$","article",null,{"className":"flex flex-1 flex-col gap-6 px-4 pt-10 md:px-6 md:pt-12","children":[["$","$L36",null,{}],[["$","h1",null,{"children":"Linked Roles","className":"text-3xl font-bold"}],null,["$","div",null,{"className":"prose","children":[[["$","p",null,{"children":"Linked Roles are a handy feature of Discord that allows you to create roles that users have to meet certain criteria in order to claim those roles."}],"\n",["$","p",null,{"children":[["$","a",null,{"href":"https://support.discord.com/hc/en-us/articles/10388356626711-Connections-Linked-Roles-Admins","rel":"noreferrer noopener","target":"_blank","children":"You can read more about the feature from an admin standpoint here"}],", or ",["$","a",null,{"href":"https://support.discord.com/hc/en-us/articles/8063233404823-Connections-Linked-Roles-Community-Members","rel":"noreferrer noopener","target":"_blank","children":"from a user standpoint here."}],"."]}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"usage","children":[["$","a",null,{"href":"#usage","className":"peer","children":"Usage"}],["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-link size-3.5 shrink-0 text-fd-muted-foreground opacity-0 transition-opacity peer-hover:opacity-100","aria-label":"Link to section","children":[["$","path","1cjeqo",{"d":"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}],["$","path","19qd67",{"d":"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}],"$undefined"]}]]}],"\n",["$","p",null,{"children":["Linked Roles are straightforward to use in Carbon, all you need is to already have an instance of the ",["$","$L15",null,{"href":"/carbon/api/classes/Client","prefetch":"$undefined","replace":"$undefined","children":["$","code",null,{"children":"Client"}]}]," from Carbon."]}],"\n",["$","p",null,{"children":["Then, create a new instance of the ",["$","code",null,{"children":"LinkedRoles"}]," class, and pass it your metadata and checkers, along with some options for the base URL and client secret and your client."]}],"\n",["$","blockquote",null,{"children":["\n",["$","p",null,{"children":"[!IMPORTANT]\nYou can only have 5 metadata per application, and they apply across all guilds your app is in."}],"\n"]}],"\n",["$","h3",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"installation","children":[["$","a",null,{"href":"#installation","className":"peer","children":"Installation"}],["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-link size-3.5 shrink-0 text-fd-muted-foreground opacity-0 transition-opacity peer-hover:opacity-100","aria-label":"Link to section","children":[["$","path","1cjeqo",{"d":"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}],["$","path","19qd67",{"d":"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}],"$undefined"]}]]}],"\n",["$","$L37",null,{"items":["pnpm","bun","npm","yarn"],"id":"package-manager","children":[["$","$L38","pnpm",{"value":"pnpm","children":["$","$L39",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L3a",null,{"children":"pnpm install @buape/carbon @buape/carbon-linked-roles"}]}]}],["$","$L38","bun",{"value":"bun","children":["$","$L39",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L3a",null,{"children":"bun install @buape/carbon @buape/carbon-linked-roles"}]}]}],["$","$L38","npm",{"value":"npm","children":["$","$L39",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L3a",null,{"children":"npm install @buape/carbon @buape/carbon-linked-roles"}]}]}],["$","$L38","yarn",{"value":"yarn","children":["$","$L39",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L3a",null,{"children":"yarn install @buape/carbon @buape/carbon-linked-roles"}]}]}]]}],"\n",["$","h3",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"example","children":[["$","a",null,{"href":"#example","className":"peer","children":"Example"}],["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-link size-3.5 shrink-0 text-fd-muted-foreground opacity-0 transition-opacity peer-hover:opacity-100","aria-label":"Link to section","children":[["$","path","1cjeqo",{"d":"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}],["$","path","19qd67",{"d":"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}],"$undefined"]}]]}],"\n",["$","$L39",null,{"className":"shiki shiki-themes github-light github-dark","style":{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8","--shiki-light-bg":"#fff","--shiki-dark-bg":"#24292e"},"tabIndex":"0","title":"src/index.ts","icon":"$3b","children":["$","$L3a",null,{"children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"import"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" { Client } "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"from"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"@buape/carbon\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"import"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" { LinkedRoles } "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"from"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"@buape/carbon-linked-roles\""}]]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"const"}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" client"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" new"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" Client"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"({"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\tclientId: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"12345678901234567890\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":","}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\tpublicKey: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"c1a2f941ae8ce6d776f7704d0bb3d46b863e21fda491cdb2bdba6b8bc5fe7269\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":","}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\ttoken: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"MTA4NjEwNTYxMDUxMDE1NTg1Nw.GNt-U8.OSHy-g-5FlfESnu3Z9MEEMJLHiRthXajiXNwiE\""}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"})"}]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"const"}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" allStaff"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" ["}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"439223656200273932\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"]"}]]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"const"}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" linkedRoles"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" new"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" LinkedRoles"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(client, {"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\tclientSecret: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"Bb7aZcvRN-BhrhY2qrUO6QzOK4SeqonG\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":","}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\tbaseUrl: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"https://example.com\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":","}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\tmetadata: ["}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t\t{"}]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t\t\tkey: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"is_staff\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":","}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t\t\tname: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"Verified Staff\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":","}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t\t\tdescription: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"Whether the user is a verified staff member\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":","}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t\t\ttype: ApplicationRoleConnectionMetadataType.BooleanEqual"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t\t},"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t],"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\tmetadataCheckers: {"}]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"\t\tis_staff"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":": "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"async"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" ("}],["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"userId"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":") "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"=>"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" {"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"\t\t\tif"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" (allStaff."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"includes"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(userId)) "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"return"}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" true"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"\t\t\treturn"}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" false"}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t\t}"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t}"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"})"}]}]]}]}]}],"\n",["$","p",null,{"children":["Once you have your ",["$","code",null,{"children":"LinkedRoles"}]," instance, you need to set it on Discord so that users will use it for linked roles.\n",["$","$L15",null,{"href":"/carbon/developer-portal/urls","prefetch":"$undefined","replace":"$undefined","children":"You can see where to add this by clicking here"}],", and set the linked role to ",["$","code",null,{"children":"/connect"}],", so for example, ",["$","code",null,{"children":"https://my-carbon-worker.YOURNAME.workers.dev/connect"}],".\nYou'll also need to add a redirect URL to your Discord application, so that users can be redirected to your website after they login.\nYou can go to the OAuth tab on the dashboard and add a redirect URL there of ",["$","code",null,{"children":"/connect/callback"}],", so for example, ",["$","code",null,{"children":"https://my-carbon-worker.YOURNAME.workers.dev/connect/callback"}],"."]}]],null]}]],["$","div",null,{"className":"mt-auto"}],["$","$L3c",null,{"date":"$D2024-09-11T14:49:03.000Z"}],["$","$L3d",null,{"items":"$undefined"}]]}]]}],["$","$L3e",null,{"header":"$undefined","footer":["$undefined",["$","$32",null,{"fallback":null,"children":[["$","$L33",null,{"moduleIds":"$3f"}],["$","$L34",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/linked-roles/index.mdx"}]]}]],"children":["$","$L35",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L40",null,{"parallelRouterKey":"children","segmentPath":["children","$41","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L42",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/fd49613c1e22c54d.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","className":"__className_36bd41","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L43",null,{"search":{"enabled":false},"children":["$","$L40",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L42",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[]}]}]}]}]],null],null],["$L44",null]]]]
+0:["ob-je4azGQ3_nWAi-Q2wj",[[["",{"children":[["slug","linked-roles","c"],{"children":["__PAGE__?{\"slug\":[\"linked-roles\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","linked-roles","c"],{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"tree":{"name":"","children":[{"type":"folder","name":"Carbon Docs","icon":["$","div",null,{"className":"rounded-md border bg-gradient-to-b from-fd-secondary p-1 shadow-sm","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-album","children":[["$","rect","1m3agn",{"width":"18","height":"18","x":"3","y":"3","rx":"2","ry":"2"}],["$","polyline","1wcwz3",{"points":"11 3 11 11 14 8 17 11 17 3"}],"$undefined"]}]}],"root":true,"index":{"type":"page","name":"Introduction","icon":"$3","url":"/carbon"},"children":[{"type":"page","name":"Introduction","icon":["$","div",null,{"className":"rounded-md border bg-gradient-to-b from-fd-secondary p-1 shadow-sm","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-album","children":[["$","rect","1m3agn",{"width":"18","height":"18","x":"3","y":"3","rx":"2","ry":"2"}],["$","polyline","1wcwz3",{"points":"11 3 11 11 14 8 17 11 17 3"}],"$undefined"]}]}],"url":"/carbon"},{"type":"folder","name":"Getting Started","icon":["$","div",null,{"className":"rounded-md border bg-gradient-to-b from-fd-secondary p-1 shadow-sm","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-circle-play","children":[["$","circle","1mglay",{"cx":"12","cy":"12","r":"10"}],["$","polygon","1cimsy",{"points":"10 8 16 12 10 16 10 8"}],"$undefined"]}]}],"index":{"type":"page","name":"Getting Started","icon":"$6","url":"/carbon/getting-started"},"children":[{"type":"page","name":"Node.js","url":"/carbon/getting-started/bun"},{"type":"page","name":"Cloudflare Workers","url":"/carbon/getting-started/cloudflare-workers"},{"type":"page","name":"Next.js","url":"/carbon/getting-started/nextjs"},{"type":"page","name":"Node.js","url":"/carbon/getting-started/nodejs"}]},{"type":"separator","name":" Usage "},{"type":"folder","name":"Classes","icon":["$","div",null,{"className":"rounded-md border bg-gradient-to-b from-fd-secondary p-1 shadow-sm","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-code","children":[["$","polyline","z7tu5w",{"points":"16 18 22 12 16 6"}],["$","polyline","1eg1df",{"points":"8 6 2 12 8 18"}],"$undefined"]}]}],"index":{"type":"page","name":"Classes","icon":"$9","url":"/carbon/classes"},"children":[{"type":"page","name":"Client","url":"/carbon/classes/client"},{"type":"page","name":"Commands","url":"/carbon/classes/commands"},{"type":"page","name":"Embeds","url":"/carbon/classes/embeds"},{"type":"page","name":"Modals","url":"/carbon/classes/modals"},{"type":"folder","name":"Components","index":{"type":"page","name":"Components","url":"/carbon/classes/components"},"children":[{"type":"page","name":"Buttons","url":"/carbon/classes/components/buttons"},{"type":"page","name":"Select Menus","url":"/carbon/classes/components/select-menus"},{"type":"page","name":"Text Inputs","url":"/carbon/classes/components/text-inputs"}]}]},{"type":"folder","name":"Helpful Guides","icon":["$","div",null,{"className":"rounded-md border bg-gradient-to-b from-fd-secondary p-1 shadow-sm","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-library","children":[["$","path","ji33uf",{"d":"m16 6 4 14"}],["$","path","1n7gus",{"d":"M12 6v14"}],["$","path","1gg7y9",{"d":"M8 8v12"}],["$","path","6qkkli",{"d":"M4 4v16"}],"$undefined"]}]}],"index":{"type":"page","name":"Helpful Guides","icon":"$c","url":"/carbon/helpful-guides"},"children":[{"type":"page","name":"Custom Router","url":"/carbon/helpful-guides/custom-router"},{"type":"page","name":"Partials","url":"/carbon/helpful-guides/partials"},{"type":"page","name":"Replying vs Deferring vs Acknowledging","url":"/carbon/helpful-guides/responses"},{"type":"page","name":"Why Classes?","url":"/carbon/helpful-guides/why-classes"},{"type":"folder","name":"Developer Portal","index":{"type":"page","name":"Developer Portal","url":"/carbon/helpful-guides/developer-portal"},"children":[{"type":"page","name":"Create a Bot","url":"/carbon/helpful-guides/developer-portal/create-a-bot"},{"type":"page","name":"Setting URLs","url":"/carbon/helpful-guides/developer-portal/urls"}]}]},{"type":"folder","name":"Even More","icon":["$","div",null,{"className":"rounded-md border bg-gradient-to-b from-fd-secondary p-1 shadow-sm","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-heart","children":[["$","path","c3ymky",{"d":"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z"}],"$undefined"]}]}],"index":{"type":"page","name":"Even More","icon":"$f","url":"/carbon/even-more"},"children":[{"type":"page","name":"Contributing","url":"/carbon/even-more/contributing"},{"type":"page","name":"Powered by Carbon","url":"/carbon/even-more/powered-by-carbon"}]},{"type":"separator","name":" API Reference "}]},{"type":"folder","name":"Linked Roles","root":true,"index":{"type":"page","name":"Linked Roles","url":"/linked-roles"},"children":[{"type":"separator","name":" Usage "},{"type":"page","name":"Linked Roles","url":"/linked-roles"},{"type":"separator","name":" API Reference "}]},{"type":"folder","name":"Carbon's NodeJS Wrapper","root":true,"index":{"type":"page","name":"Carbon's NodeJS Wrapper","url":"/nodejs"},"children":[{"type":"separator","name":" Usage "},{"type":"page","name":"Carbon's NodeJS Wrapper","url":"/nodejs"},{"type":"separator","name":" API Reference "}]},{"type":"folder","name":"Carbon's RequestClient","root":true,"index":{"type":"page","name":"Carbon's RequestClient","url":"/request"},"children":[{"type":"separator","name":" Usage "},{"type":"page","name":"Carbon's RequestClient","url":"/request"},{"type":"separator","name":" API Reference "}]}]},"children":[["$","$L12",null,{"title":[["$","$L13",null,{"alt":"Carbon","src":"https://cdn.buape.com/CarbonWordmark.png","width":100,"height":100,"sizes":"100px","className":"hidden w-20 md:w-24 [.uwu_&]:block","aria-label":"Carbon"}],["$","span",null,{"className":"font-medium max-md:[header_&]:hidden","children":"Carbon"}]],"transparentMode":"none","children":"$undefined"}],["$","main",null,{"id":"nd-docs-layout","className":"flex flex-1 flex-row","children":[["$","$L14",null,{"banner":[["$","div",null,{"className":"flex flex-row items-center border-b pb-2 max-md:hidden","children":[["$","$L15","title",{"href":"/","className":"inline-flex items-center gap-2.5 py-1 font-medium","children":"$16"}],["$","$L1c","links",{"items":[{"icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-book","children":[["$","path","k3hazp",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"}],"$undefined"]}],"text":"Blog","url":"/blog","active":"nested-url"},{"text":"Showcase","url":"/showcase","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-layout-template","children":[["$","rect","f1a2em",{"width":"18","height":"7","x":"3","y":"3","rx":"1"}],["$","rect","jqznyg",{"width":"9","height":"7","x":"3","y":"14","rx":"1"}],["$","rect","q5h2i8",{"width":"5","height":"7","x":"16","y":"14","rx":"1"}],"$undefined"]}]},{"text":"Sponsors","url":"/sponsors","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-heart","children":[["$","path","c3ymky",{"d":"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z"}],"$undefined"]}]},{"type":"icon","url":"https://github.com/fuma-nama/fumadocs","text":"Github","icon":["$","svg",null,{"role":"img","viewBox":"0 0 24 24","fill":"currentColor","children":["$","path",null,{"d":"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"}]}],"external":true}],"className":"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 hover:bg-fd-accent hover:text-fd-accent-foreground p-1.5 [&_svg]:size-5 ms-auto","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-ellipsis","children":[["$","circle","41hilf",{"cx":"12","cy":"12","r":"1"}],["$","circle","1wjl8i",{"cx":"19","cy":"12","r":"1"}],["$","circle","1pcz8c",{"cx":"5","cy":"12","r":"1"}],"$undefined"]}]}]]}],["$","$L1d",null,{"options":[{"url":"/docs","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-package size-9 shrink-0 rounded-md bg-gradient-to-t from-fd-background/80 p-1.5","style":{"backgroundColor":"hsl(var(--docs-color)/.3)","color":"hsl(var(--docs-color))"},"children":[["$","path","1c824w",{"d":"m7.5 4.27 9 5.15"}],["$","path","hh9hay",{"d":"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z"}],["$","path","g66t2b",{"d":"m3.3 7 8.7 5 8.7-5"}],["$","path","d0xqtd",{"d":"M12 22V12"}],"$undefined"]}],"title":"Carbon","description":"@buape/carbon"},{"url":"/linked-roles","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-brackets size-9 shrink-0 rounded-md bg-gradient-to-t from-fd-background/80 p-1.5","style":{"backgroundColor":"hsl(var(--linked-roles-color)/.3)","color":"hsl(var(--linked-roles-color))"},"children":[["$","path","1yor1f",{"d":"M16 3h3v18h-3"}],["$","path","1qrfwo",{"d":"M8 21H5V3h3"}],"$undefined"]}],"title":"Linked Roles","description":"@buape/carbon-linked-roles"},{"url":"/nodejs","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-computer size-9 shrink-0 rounded-md bg-gradient-to-t from-fd-background/80 p-1.5","style":{"backgroundColor":"hsl(var(--nodejs-color)/.3)","color":"hsl(var(--nodejs-color))"},"children":[["$","rect","wc9tft",{"width":"14","height":"8","x":"5","y":"2","rx":"2"}],["$","rect","w68u3i",{"width":"20","height":"8","x":"2","y":"14","rx":"2"}],["$","path","rwmk9e",{"d":"M6 18h2"}],["$","path","aqd8w3",{"d":"M12 18h6"}],"$undefined"]}],"title":"NodeJS","description":"@buape/carbon-nodejs"},{"url":"/request","icon":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-link size-9 shrink-0 rounded-md bg-gradient-to-t from-fd-background/80 p-1.5","style":{"backgroundColor":"hsl(var(--request-color)/.3)","color":"hsl(var(--request-color))"},"children":[["$","path","1cjeqo",{"d":"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}],["$","path","19qd67",{"d":"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}],"$undefined"]}],"title":"Request","description":"@buape/carbon-request"}]}]],"items":"$1e","bannerProps":{"className":""},"footer":["$undefined",[["$","$L2a","theme",{}],["$","$L2b","sidebar",{}]]]}],["$","$L2c",null,{"toc":[{"title":"Usage","url":"#usage","depth":2},{"title":"Installation","url":"#installation","depth":3},{"title":"Example","url":"#example","depth":3}],"single":"$undefined","children":[["$","div",null,{"className":"mx-auto flex min-w-0 max-w-[860px] flex-1 flex-col","children":[["$","div",null,{"id":"nd-tocnav","className":"sticky top-14 z-10 border-b bg-fd-background/60 text-sm backdrop-blur-md md:top-1 md:mx-3 md:rounded-full md:border md:shadow-md lg:hidden","children":["$","$L2d",null,{"items":"$2e","header":"$undefined","footer":["$undefined",["$","$32",null,{"fallback":null,"children":[["$","$L33",null,{"moduleIds":["../node_modules/.pnpm/fumadocs-ui@13.4.9_@types+react-dom@18.3.0_@types+react@18.3.5_next@14.2.9_react-dom@18.3.1_r_ryuhgk7jmkuvxhzbwlr3yvdeme/node_modules/fumadocs-ui/dist/page.js -> ./edit-on-github-YFVYCMB7.js"]}],["$","$L34",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/linked-roles/index.mdx"}]]}]],"children":["$","$L35",null,{"items":"$2e","isMenu":true}]}]}],["$","article",null,{"className":"flex flex-1 flex-col gap-6 px-4 pt-10 md:px-6 md:pt-12","children":[["$","$L36",null,{}],[["$","h1",null,{"children":"Linked Roles","className":"text-3xl font-bold"}],null,["$","div",null,{"className":"prose","children":[[["$","p",null,{"children":"Linked Roles are a handy feature of Discord that allows you to create roles that users have to meet certain criteria in order to claim those roles."}],"\n",["$","p",null,{"children":[["$","a",null,{"href":"https://support.discord.com/hc/en-us/articles/10388356626711-Connections-Linked-Roles-Admins","rel":"noreferrer noopener","target":"_blank","children":"You can read more about the feature from an admin standpoint here"}],", or ",["$","a",null,{"href":"https://support.discord.com/hc/en-us/articles/8063233404823-Connections-Linked-Roles-Community-Members","rel":"noreferrer noopener","target":"_blank","children":"from a user standpoint here."}],"."]}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"usage","children":[["$","a",null,{"href":"#usage","className":"peer","children":"Usage"}],["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-link size-3.5 shrink-0 text-fd-muted-foreground opacity-0 transition-opacity peer-hover:opacity-100","aria-label":"Link to section","children":[["$","path","1cjeqo",{"d":"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}],["$","path","19qd67",{"d":"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}],"$undefined"]}]]}],"\n",["$","p",null,{"children":["Linked Roles are straightforward to use in Carbon, all you need is to already have an instance of the ",["$","$L15",null,{"href":"/carbon/api/classes/Client","prefetch":"$undefined","replace":"$undefined","children":["$","code",null,{"children":"Client"}]}]," from Carbon."]}],"\n",["$","p",null,{"children":["Then, create a new instance of the ",["$","code",null,{"children":"LinkedRoles"}]," class, and pass it your metadata and checkers, along with some options for the base URL and client secret and your client."]}],"\n",["$","blockquote",null,{"children":["\n",["$","p",null,{"children":"[!IMPORTANT]\nYou can only have 5 metadata per application, and they apply across all guilds your app is in."}],"\n"]}],"\n",["$","h3",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"installation","children":[["$","a",null,{"href":"#installation","className":"peer","children":"Installation"}],["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-link size-3.5 shrink-0 text-fd-muted-foreground opacity-0 transition-opacity peer-hover:opacity-100","aria-label":"Link to section","children":[["$","path","1cjeqo",{"d":"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}],["$","path","19qd67",{"d":"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}],"$undefined"]}]]}],"\n",["$","$L37",null,{"items":["pnpm","npm","yarn"],"id":"package-manager","children":[["$","$L38","pnpm",{"value":"pnpm","children":["$","$L39",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L3a",null,{"children":"pnpm install @buape/carbon @buape/carbon-linked-roles"}]}]}],["$","$L38","npm",{"value":"npm","children":["$","$L39",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L3a",null,{"children":"npm install @buape/carbon @buape/carbon-linked-roles"}]}]}],["$","$L38","yarn",{"value":"yarn","children":["$","$L39",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L3a",null,{"children":"yarn install @buape/carbon @buape/carbon-linked-roles"}]}]}]]}],"\n",["$","h3",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"example","children":[["$","a",null,{"href":"#example","className":"peer","children":"Example"}],["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-link size-3.5 shrink-0 text-fd-muted-foreground opacity-0 transition-opacity peer-hover:opacity-100","aria-label":"Link to section","children":[["$","path","1cjeqo",{"d":"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}],["$","path","19qd67",{"d":"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}],"$undefined"]}]]}],"\n",["$","$L39",null,{"className":"shiki shiki-themes github-light github-dark","style":{"--shiki-light":"#24292e","--shiki-dark":"#e1e4e8","--shiki-light-bg":"#fff","--shiki-dark-bg":"#24292e"},"tabIndex":"0","title":"src/index.ts","icon":"$3b","children":["$","$L3a",null,{"children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"import"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" { Client } "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"from"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"@buape/carbon\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"import"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" { LinkedRoles } "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"from"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"@buape/carbon-linked-roles\""}]]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"const"}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" client"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" new"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" Client"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"({"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\tclientId: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"12345678901234567890\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":","}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\tpublicKey: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"c1a2f941ae8ce6d776f7704d0bb3d46b863e21fda491cdb2bdba6b8bc5fe7269\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":","}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\ttoken: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"MTA4NjEwNTYxMDUxMDE1NTg1Nw.GNt-U8.OSHy-g-5FlfESnu3Z9MEEMJLHiRthXajiXNwiE\""}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"})"}]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"const"}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" allStaff"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" ["}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"439223656200273932\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"]"}]]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"const"}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" linkedRoles"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" new"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" LinkedRoles"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(client, {"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\tclientSecret: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"Bb7aZcvRN-BhrhY2qrUO6QzOK4SeqonG\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":","}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\tbaseUrl: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"https://example.com\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":","}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\tmetadata: ["}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t\t{"}]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t\t\tkey: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"is_staff\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":","}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t\t\tname: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"Verified Staff\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":","}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t\t\tdescription: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"Whether the user is a verified staff member\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":","}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t\t\ttype: ApplicationRoleConnectionMetadataType.BooleanEqual"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t\t},"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t],"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\tmetadataCheckers: {"}]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"\t\tis_staff"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":": "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"async"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" ("}],["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"userId"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":") "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"=>"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" {"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"\t\t\tif"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" (allStaff."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"includes"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(userId)) "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"return"}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" true"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"\t\t\treturn"}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" false"}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t\t}"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t}"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"})"}]}]]}]}]}],"\n",["$","p",null,{"children":["Once you have your ",["$","code",null,{"children":"LinkedRoles"}]," instance, you need to set it on Discord so that users will use it for linked roles.\n",["$","$L15",null,{"href":"/carbon/developer-portal/urls","prefetch":"$undefined","replace":"$undefined","children":"You can see where to add this by clicking here"}],", and set the linked role to ",["$","code",null,{"children":"/connect"}],", so for example, ",["$","code",null,{"children":"https://my-carbon-worker.YOURNAME.workers.dev/connect"}],".\nYou'll also need to add a redirect URL to your Discord application, so that users can be redirected to your website after they login.\nYou can go to the OAuth tab on the dashboard and add a redirect URL there of ",["$","code",null,{"children":"/connect/callback"}],", so for example, ",["$","code",null,{"children":"https://my-carbon-worker.YOURNAME.workers.dev/connect/callback"}],"."]}]],null]}]],["$","div",null,{"className":"mt-auto"}],["$","$L3c",null,{"date":"$D2024-09-11T20:53:15.000Z"}],["$","$L3d",null,{"items":"$undefined"}]]}]]}],["$","$L3e",null,{"header":"$undefined","footer":["$undefined",["$","$32",null,{"fallback":null,"children":[["$","$L33",null,{"moduleIds":"$3f"}],["$","$L34",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/linked-roles/index.mdx"}]]}]],"children":["$","$L35",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L40",null,{"parallelRouterKey":"children","segmentPath":["children","$41","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L42",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/472951db3f044431.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","className":"__className_36bd41","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L43",null,{"search":{"enabled":false},"children":["$","$L40",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L42",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[]}]}]}]}]],null],null],["$L44",null]]]]
44:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","meta","2",{"name":"next-size-adjust"}]]
1:null
diff --git a/nodejs.html b/nodejs.html
index 0720483f..6b481b4e 100644
--- a/nodejs.html
+++ b/nodejs.html
@@ -1 +1 @@
-Carbon
Carbon's NodeJS Wrapper
This package is a helper package for Carbon, that provides a simple way to run Carbon on a port locally, as well as a function to automatically load all commands in a folder.
This package is a helper package for Carbon, that provides a simple way to run Carbon on a port locally, as well as a function to automatically load all commands in a folder.
This is the internal package that handles making requests to the Discord API.
-It is used by Carbon, and you should not need to use it directly, but feel free to if you feel like living dangerously.
This is the internal package that handles making requests to the Discord API.
+It is used by Carbon, and you should not need to use it directly, but feel free to if you feel like living dangerously.