diff --git a/404.html b/404.html index 8c0e8703..c87cccb5 100644 --- a/404.html +++ b/404.html @@ -1 +1 @@ -404: This page could not be found.

404

This page could not be found.

\ No newline at end of file +404: This page could not be found.

404

This page could not be found.

\ No newline at end of file diff --git a/_next/static/chunks/297.6a79187c29622ff3.js b/_next/static/chunks/297.6a79187c29622ff3.js new file mode 100644 index 00000000..d98ae680 --- /dev/null +++ b/_next/static/chunks/297.6a79187c29622ff3.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[297],{1390:function(e,t,n){var r=n(2374),l="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,o=r.useEffect,i=r.useLayoutEffect,u=r.useDebugValue;function s(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!l(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),l=r[0].inst,c=r[1];return i(function(){l.value=n,l.getSnapshot=t,s(l)&&c({inst:l})},[e,n,t]),o(function(){return s(l)&&c({inst:l}),e(function(){s(l)&&c({inst:l})})},[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},965:function(e,t,n){e.exports=n(1390)},8297:function(e,t,n){let r,l,a;n.r(t),n.d(t,{default:function(){return ng}});var o=n(428),i=n(8783),u=n(1861),s=n(4183),c=n(5487),d=n(4421),f=n(193);let m=(0,f.Z)("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]),v=(0,f.Z)("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),p=(0,f.Z)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);var h=n(6402),g=n(8302),E=n(2374),y=n.t(E,2),b=n(2771),w=/[\\\/_+.#"@\[\(\{&]/,x=/[\\\/_+.#"@\[\(\{&]/g,C=/[\s-]/,R=/[\s-]/g;function S(e){return e.toLowerCase().replace(R," ")}function N(){return(N=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function O(...e){return(0,E.useCallback)(T(...e),e)}let L=(null==globalThis?void 0:globalThis.document)?E.useLayoutEffect:()=>{},_=y["useId".toString()]||(()=>void 0),D=0;function I(e){let[t,n]=E.useState(_());return L(()=>{e||n(e=>null!=e?e:String(D++))},[e]),e||(t?`radix-${t}`:"")}function A(e){let t=(0,E.useRef)(e);return(0,E.useEffect)(()=>{t.current=e}),(0,E.useMemo)(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}var P=n(7372);let M=(0,E.forwardRef)((e,t)=>{let{children:n,...r}=e,l=E.Children.toArray(n),a=l.find(V);if(a){let e=a.props.children,n=l.map(t=>t!==a?t:E.Children.count(e)>1?E.Children.only(null):(0,E.isValidElement)(e)?e.props.children:null);return(0,E.createElement)(F,N({},r,{ref:t}),(0,E.isValidElement)(e)?(0,E.cloneElement)(e,void 0,n):null)}return(0,E.createElement)(F,N({},r,{ref:t}),n)});M.displayName="Slot";let F=(0,E.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,E.isValidElement)(n)?(0,E.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let l=e[r],a=t[r];/^on[A-Z]/.test(r)?l&&a?n[r]=(...e)=>{a(...e),l(...e)}:l&&(n[r]=l):"style"===r?n[r]={...l,...a}:"className"===r&&(n[r]=[l,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:t?T(t,n.ref):n.ref}):E.Children.count(n)>1?E.Children.only(null):null});F.displayName="SlotClone";let j=({children:e})=>(0,E.createElement)(E.Fragment,null,e);function V(e){return(0,E.isValidElement)(e)&&e.type===j}let $=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,E.forwardRef)((e,n)=>{let{asChild:r,...l}=e,a=r?M:t;return(0,E.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,E.createElement)(a,N({},l,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),U="dismissableLayer.update",W=(0,E.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),z=(0,E.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:u,onDismiss:s,...c}=e,d=(0,E.useContext)(W),[f,m]=(0,E.useState)(null),v=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,p]=(0,E.useState)({}),h=O(t,e=>m(e)),g=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(y),w=f?g.indexOf(f):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,C=w>=b,R=function(e,t=null==globalThis?void 0:globalThis.document){let n=A(e),r=(0,E.useRef)(!1),l=(0,E.useRef)(()=>{});return(0,E.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function a(){q("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",l.current),l.current=a,t.addEventListener("click",l.current,{once:!0})):a()}else t.removeEventListener("click",l.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",l.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));!C||n||(null==o||o(e),null==u||u(e),e.defaultPrevented||null==s||s())},v),S=function(e,t=null==globalThis?void 0:globalThis.document){let n=A(e),r=(0,E.useRef)(!1);return(0,E.useEffect)(()=>{let e=e=>{e.target&&!r.current&&q("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target;[...d.branches].some(e=>e.contains(t))||(null==i||i(e),null==u||u(e),e.defaultPrevented||null==s||s())},v);return!function(e,t=null==globalThis?void 0:globalThis.document){let n=A(e);(0,E.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{w!==d.layers.size-1||(null==a||a(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))},v),(0,E.useEffect)(()=>{if(f)return l&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(r=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),K(),()=>{l&&1===d.layersWithOutsidePointerEventsDisabled.size&&(v.body.style.pointerEvents=r)}},[f,v,l,d]),(0,E.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),K())},[f,d]),(0,E.useEffect)(()=>{let e=()=>p({});return document.addEventListener(U,e),()=>document.removeEventListener(U,e)},[]),(0,E.createElement)($.div,N({},c,{ref:h,style:{pointerEvents:x?C?"auto":"none":void 0,...e.style},onFocusCapture:k(e.onFocusCapture,S.onFocusCapture),onBlurCapture:k(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:k(e.onPointerDownCapture,R.onPointerDownCapture)}))});function K(){let e=new CustomEvent(U);document.dispatchEvent(e)}function q(e,t,n,{discrete:r}){let l=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});(t&&l.addEventListener(e,t,{once:!0}),r)?l&&(0,P.flushSync)(()=>l.dispatchEvent(a)):l.dispatchEvent(a)}let B="focusScope.autoFocusOnMount",Z="focusScope.autoFocusOnUnmount",H={bubbles:!1,cancelable:!0},X=(0,E.forwardRef)((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:l,onUnmountAutoFocus:a,...o}=e,[i,u]=(0,E.useState)(null),s=A(l),c=A(a),d=(0,E.useRef)(null),f=O(t,e=>u(e)),m=(0,E.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,E.useEffect)(()=>{if(r){function e(e){if(m.paused||!i)return;let t=e.target;i.contains(t)?d.current=t:J(d.current,{select:!0})}function t(e){if(m.paused||!i)return;let t=e.relatedTarget;null===t||i.contains(t)||J(d.current,{select:!0})}document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&J(i)});return i&&n.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,i,m.paused]),(0,E.useEffect)(()=>{if(i){Q.add(m);let e=document.activeElement;if(!i.contains(e)){let t=new CustomEvent(B,H);i.addEventListener(B,s),i.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(J(r,{select:t}),document.activeElement!==n)return}(Y(i).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&J(i))}return()=>{i.removeEventListener(B,s),setTimeout(()=>{let t=new CustomEvent(Z,H);i.addEventListener(Z,c),i.dispatchEvent(t),t.defaultPrevented||J(null!=e?e:document.body,{select:!0}),i.removeEventListener(Z,c),Q.remove(m)},0)}}},[i,s,c,m]);let v=(0,E.useCallback)(e=>{if(!n&&!r||m.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,l=document.activeElement;if(t&&l){let t=e.currentTarget,[r,a]=function(e){let t=Y(e);return[G(t,e),G(t.reverse(),e)]}(t);r&&a?e.shiftKey||l!==a?e.shiftKey&&l===r&&(e.preventDefault(),n&&J(a,{select:!0})):(e.preventDefault(),n&&J(r,{select:!0})):l===t&&e.preventDefault()}},[n,r,m.paused]);return(0,E.createElement)($.div,N({tabIndex:-1},o,{ref:f,onKeyDown:v}))});function Y(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function G(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function J(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}let Q=(a=[],{add(e){let t=a[0];e!==t&&(null==t||t.pause()),(a=ee(a,e)).unshift(e)},remove(e){var t;null===(t=(a=ee(a,e))[0])||void 0===t||t.resume()}});function ee(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}let et=(0,E.forwardRef)((e,t)=>{var n;let{container:r=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...l}=e;return r?P.createPortal((0,E.createElement)($.div,N({},l,{ref:t})),r):null}),en=e=>{let{present:t,children:n}=e,r=function(e){var t,n;let[r,l]=(0,E.useState)(),a=(0,E.useRef)({}),o=(0,E.useRef)(e),i=(0,E.useRef)("none"),[u,s]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,E.useReducer)((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return(0,E.useEffect)(()=>{let e=er(a.current);i.current="mounted"===u?e:"none"},[u]),L(()=>{let t=a.current,n=o.current;if(n!==e){let r=i.current,l=er(t);e?s("MOUNT"):"none"===l||(null==t?void 0:t.display)==="none"?s("UNMOUNT"):n&&r!==l?s("ANIMATION_OUT"):s("UNMOUNT"),o.current=e}},[e,s]),L(()=>{if(r){let e=e=>{let t=er(a.current).includes(e.animationName);e.target===r&&t&&(0,P.flushSync)(()=>s("ANIMATION_END"))},t=e=>{e.target===r&&(i.current=er(a.current))};return r.addEventListener("animationstart",t),r.addEventListener("animationcancel",e),r.addEventListener("animationend",e),()=>{r.removeEventListener("animationstart",t),r.removeEventListener("animationcancel",e),r.removeEventListener("animationend",e)}}s("ANIMATION_END")},[r,s]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:(0,E.useCallback)(e=>{e&&(a.current=getComputedStyle(e)),l(e)},[])}}(t),l="function"==typeof n?n({present:r.isPresent}):E.Children.only(n),a=O(r.ref,l.ref);return"function"==typeof n||r.isPresent?(0,E.cloneElement)(l,{ref:a}):null};function er(e){return(null==e?void 0:e.animationName)||"none"}en.displayName="Presence";let el=0;function ea(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var eo=n(4539),ei=n(7118),eu=n(6622),es=(0,n(679)._)(),ec=function(){},ed=E.forwardRef(function(e,t){var n=E.useRef(null),r=E.useState({onScrollCapture:ec,onWheelCapture:ec,onTouchMoveCapture:ec}),l=r[0],a=r[1],o=e.forwardProps,i=e.children,u=e.className,s=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,m=e.noIsolation,v=e.inert,p=e.allowPinchZoom,h=e.as,g=(0,eo._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),y=(0,eu.q)([n,t]),b=(0,eo.pi)((0,eo.pi)({},g),l);return E.createElement(E.Fragment,null,c&&E.createElement(f,{sideCar:es,removeScrollBar:s,shards:d,noIsolation:m,inert:v,setCallbacks:a,allowPinchZoom:!!p,lockRef:n}),o?E.cloneElement(E.Children.only(i),(0,eo.pi)((0,eo.pi)({},b),{ref:y})):E.createElement(void 0===h?"div":h,(0,eo.pi)({},b,{className:u,ref:y}),i))});ed.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ed.classNames={fullWidth:ei.zi,zeroRight:ei.pF};var ef=n(9937),em=n(9718),ev=n(7323),ep=!1;if("undefined"!=typeof window)try{var eh=Object.defineProperty({},"passive",{get:function(){return ep=!0,!0}});window.addEventListener("test",eh,eh),window.removeEventListener("test",eh,eh)}catch(e){ep=!1}var eg=!!ep&&{passive:!1},eE=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},ey=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),eb(e,n)){var r=ew(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},eb=function(e,t){return"v"===e?eE(t,"overflowY"):eE(t,"overflowX")},ew=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},ex=function(e,t,n,r,l){var a,o=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),i=o*r,u=n.target,s=t.contains(u),c=!1,d=i>0,f=0,m=0;do{var v=ew(e,u),p=v[0],h=v[1]-v[2]-o*p;(p||h)&&eb(e,u)&&(f+=h,m+=p),u=u.parentNode}while(!s&&u!==document.body||s&&(t.contains(u)||t===u));return d&&(l&&0===f||!l&&i>f)?c=!0:!d&&(l&&0===m||!l&&-i>m)&&(c=!0),c},eC=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eR=function(e){return[e.deltaX,e.deltaY]},eS=function(e){return e&&"current"in e?e.current:e},eN=0,ek=[],eT=(0,ef.L)(es,function(e){var t=E.useRef([]),n=E.useRef([0,0]),r=E.useRef(),l=E.useState(eN++)[0],a=E.useState(function(){return(0,ev.Ws)()})[0],o=E.useRef(e);E.useEffect(function(){o.current=e},[e]),E.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(l));var t=(0,eo.ev)([e.lockRef.current],(e.shards||[]).map(eS),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(l))}),function(){document.body.classList.remove("block-interactivity-".concat(l)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(l))})}}},[e.inert,e.lockRef.current,e.shards]);var i=E.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!o.current.allowPinchZoom;var l,a=eC(e),i=n.current,u="deltaX"in e?e.deltaX:i[0]-a[0],s="deltaY"in e?e.deltaY:i[1]-a[1],c=e.target,d=Math.abs(u)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=ey(d,c);if(!f)return!0;if(f?l=d:(l="v"===d?"h":"v",f=ey(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||s)&&(r.current=l),!l)return!0;var m=r.current||l;return ex(m,t,e,"h"===m?u:s,!0)},[]),u=E.useCallback(function(e){if(ek.length&&ek[ek.length-1]===a){var n="deltaY"in e?eR(e):eC(e),r=t.current.filter(function(t){var r;return t.name===e.type&&t.target===e.target&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var l=(o.current.shards||[]).map(eS).filter(Boolean).filter(function(t){return t.contains(e.target)});(l.length>0?i(e,l[0]):!o.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),s=E.useCallback(function(e,n,r,l){var a={name:e,delta:n,target:r,should:l};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),c=E.useCallback(function(e){n.current=eC(e),r.current=void 0},[]),d=E.useCallback(function(t){s(t.type,eR(t),t.target,i(t,e.lockRef.current))},[]),f=E.useCallback(function(t){s(t.type,eC(t),t.target,i(t,e.lockRef.current))},[]);E.useEffect(function(){return ek.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",u,eg),document.addEventListener("touchmove",u,eg),document.addEventListener("touchstart",c,eg),function(){ek=ek.filter(function(e){return e!==a}),document.removeEventListener("wheel",u,eg),document.removeEventListener("touchmove",u,eg),document.removeEventListener("touchstart",c,eg)}},[]);var m=e.removeScrollBar,v=e.inert;return E.createElement(E.Fragment,null,v?E.createElement(a,{styles:"\n .block-interactivity-".concat(l," {pointer-events: none;}\n .allow-interactivity-").concat(l," {pointer-events: all;}\n")}):null,m?E.createElement(em.jp,{gapMode:"margin"}):null)}),eO=E.forwardRef(function(e,t){return E.createElement(ed,(0,eo.pi)({},e,{ref:t,sideCar:eT}))});eO.classNames=ed.classNames;var eL=n(922);let e_="Dialog",[eD,eI]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>(0,E.createContext)(e));return function(n){let r=(null==n?void 0:n[e])||t;return(0,E.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let l=(0,E.createContext)(r),a=n.length;function o(t){let{scope:n,children:r,...o}=t,i=(null==n?void 0:n[e][a])||l,u=(0,E.useMemo)(()=>o,Object.values(o));return(0,E.createElement)(i.Provider,{value:u},r)}return n=[...n,r],o.displayName=t+"Provider",[o,function(n,o){let i=(null==o?void 0:o[e][a])||l,u=(0,E.useContext)(i);if(u)return u;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let l=n(e)[`__scope${r}`];return{...t,...l}},{});return(0,E.useMemo)(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(e_),[eA,eP]=eD(e_),eM="DialogPortal",[eF,ej]=eD(eM,{forceMount:void 0}),eV="DialogOverlay",e$=(0,E.forwardRef)((e,t)=>{let n=ej(eV,e.__scopeDialog),{forceMount:r=n.forceMount,...l}=e,a=eP(eV,e.__scopeDialog);return a.modal?(0,E.createElement)(en,{present:r||a.open},(0,E.createElement)(eU,N({},l,{ref:t}))):null}),eU=(0,E.forwardRef)((e,t)=>{let{__scopeDialog:n,...r}=e,l=eP(eV,n);return(0,E.createElement)(eO,{as:M,allowPinchZoom:!0,shards:[l.contentRef]},(0,E.createElement)($.div,N({"data-state":eZ(l.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),eW="DialogContent",ez=(0,E.forwardRef)((e,t)=>{let n=ej(eW,e.__scopeDialog),{forceMount:r=n.forceMount,...l}=e,a=eP(eW,e.__scopeDialog);return(0,E.createElement)(en,{present:r||a.open},a.modal?(0,E.createElement)(eK,N({},l,{ref:t})):(0,E.createElement)(eq,N({},l,{ref:t})))}),eK=(0,E.forwardRef)((e,t)=>{let n=eP(eW,e.__scopeDialog),r=(0,E.useRef)(null),l=O(t,n.contentRef,r);return(0,E.useEffect)(()=>{let e=r.current;if(e)return(0,eL.Ry)(e)},[]),(0,E.createElement)(eB,N({},e,{ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:k(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:k(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:k(e.onFocusOutside,e=>e.preventDefault())}))}),eq=(0,E.forwardRef)((e,t)=>{let n=eP(eW,e.__scopeDialog),r=(0,E.useRef)(!1),l=(0,E.useRef)(!1);return(0,E.createElement)(eB,N({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var a,o;null===(a=e.onCloseAutoFocus)||void 0===a||a.call(e,t),t.defaultPrevented||(r.current||null===(o=n.triggerRef.current)||void 0===o||o.focus(),t.preventDefault()),r.current=!1,l.current=!1},onInteractOutside:t=>{var a,o;null===(a=e.onInteractOutside)||void 0===a||a.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"!==t.detail.originalEvent.type||(l.current=!0));let i=t.target;(null===(o=n.triggerRef.current)||void 0===o?void 0:o.contains(i))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&l.current&&t.preventDefault()}}))}),eB=(0,E.forwardRef)((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:l,onCloseAutoFocus:a,...o}=e,i=eP(eW,n),u=O(t,(0,E.useRef)(null));return(0,E.useEffect)(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:ea()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:ea()),el++,()=>{1===el&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),el--}},[]),(0,E.createElement)(E.Fragment,null,(0,E.createElement)(X,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:l,onUnmountAutoFocus:a},(0,E.createElement)(z,N({role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":eZ(i.open)},o,{ref:u,onDismiss:()=>i.onOpenChange(!1)}))),!1)});function eZ(e){return e?"open":"closed"}let[eH,eX]=function(e,t){let n=(0,E.createContext)(t);function r(e){let{children:t,...r}=e,l=(0,E.useMemo)(()=>r,Object.values(r));return(0,E.createElement)(n.Provider,{value:l},t)}return r.displayName=e+"Provider",[r,function(r){let l=(0,E.useContext)(n);if(l)return l;if(void 0!==t)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}]}("DialogTitleWarning",{contentName:eW,titleName:"DialogTitle",docsSlug:"dialog"}),eY=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:l,onOpenChange:a,modal:o=!0}=e,i=(0,E.useRef)(null),u=(0,E.useRef)(null),[s=!1,c]=function({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,l]=function({defaultProp:e,onChange:t}){let n=(0,E.useState)(e),[r]=n,l=(0,E.useRef)(r),a=A(t);return(0,E.useEffect)(()=>{l.current!==r&&(a(r),l.current=r)},[r,l,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,o=a?e:r,i=A(n);return[o,(0,E.useCallback)(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&i(n)}else l(t)},[a,e,l,i])]}({prop:r,defaultProp:l,onChange:a});return(0,E.createElement)(eA,{scope:t,triggerRef:i,contentRef:u,contentId:I(),titleId:I(),descriptionId:I(),open:s,onOpenChange:c,onOpenToggle:(0,E.useCallback)(()=>c(e=>!e),[c]),modal:o},n)},eG=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:l}=e,a=eP(eM,t);return(0,E.createElement)(eF,{scope:t,forceMount:n},E.Children.map(r,e=>(0,E.createElement)(en,{present:n||a.open},(0,E.createElement)(et,{asChild:!0,container:l},e))))};var eJ='[cmdk-group=""]',eQ='[cmdk-group-items=""]',e0='[cmdk-item=""]',e1=`${e0}:not([aria-disabled="true"])`,e2="cmdk-item-select",e9="data-value",e3=(e,t,n)=>{var r;return r=e,function e(t,n,r,l,a,o,i){if(o===n.length)return a===t.length?1:.99;var u=`${a},${o}`;if(void 0!==i[u])return i[u];for(var s,c,d,f,m=l.charAt(o),v=r.indexOf(m,a),p=0;v>=0;)(s=e(t,n,r,l,v+1,o+1,i))>p&&(v===a?s*=1:w.test(t.charAt(v-1))?(s*=.8,(d=t.slice(a,v-1).match(x))&&a>0&&(s*=Math.pow(.999,d.length))):C.test(t.charAt(v-1))?(s*=.9,(f=t.slice(a,v-1).match(R))&&a>0&&(s*=Math.pow(.999,f.length))):(s*=.17,a>0&&(s*=Math.pow(.999,v-a))),t.charAt(v)!==n.charAt(o)&&(s*=.9999)),(s<.1&&r.charAt(v-1)===l.charAt(o+1)||l.charAt(o+1)===l.charAt(o)&&r.charAt(v-1)!==l.charAt(o))&&.1*(c=e(t,n,r,l,v+1,o+2,i))>s&&(s=.1*c),s>p&&(p=s),v=r.indexOf(m,v+1);return i[u]=p,p}(r=n&&n.length>0?`${r+" "+n.join(" ")}`:r,t,S(r),S(t),0,0,{})},e6=E.createContext(void 0),e4=()=>E.useContext(e6),e7=E.createContext(void 0),e5=()=>E.useContext(e7),e8=E.createContext(void 0),te=E.forwardRef((e,t)=>{let n=tc(()=>{var t,n;return{search:"",value:null!=(n=null!=(t=e.value)?t:e.defaultValue)?n:"",filtered:{count:0,items:new Map,groups:new Set}}}),r=tc(()=>new Set),l=tc(()=>new Map),a=tc(()=>new Map),o=tc(()=>new Set),i=tu(e),{label:u,children:s,value:c,onValueChange:d,filter:f,shouldFilter:m,loop:v,disablePointerSelection:p=!1,vimBindings:h=!0,...g}=e,y=E.useId(),b=E.useId(),w=E.useId(),x=E.useRef(null),C=tv();ts(()=>{if(void 0!==c){let e=c.trim();n.current.value=e,R.emit()}},[c]),ts(()=>{C(6,L)},[]);let R=E.useMemo(()=>({subscribe:e=>(o.current.add(e),()=>o.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var l,a,o;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)O(),k(),C(1,T);else if("value"===e&&(r||C(5,L),(null==(l=i.current)?void 0:l.value)!==void 0)){null==(o=(a=i.current).onValueChange)||o.call(a,null!=t?t:"");return}R.emit()}},emit:()=>{o.current.forEach(e=>e())}}),[]),S=E.useMemo(()=>({value:(e,t,r)=>{var l;t!==(null==(l=a.current.get(e))?void 0:l.value)&&(a.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,N(t,r)),C(2,()=>{k(),R.emit()}))},item:(e,t)=>(r.current.add(e),t&&(l.current.has(t)?l.current.get(t).add(e):l.current.set(t,new Set([e]))),C(3,()=>{O(),k(),n.current.value||T(),R.emit()}),()=>{a.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=_();C(4,()=>{O(),(null==t?void 0:t.getAttribute("id"))===e&&T(),R.emit()})}),group:e=>(l.current.has(e)||l.current.set(e,new Set),()=>{a.current.delete(e),l.current.delete(e)}),filter:()=>i.current.shouldFilter,label:u||e["aria-label"],disablePointerSelection:p,listId:y,inputId:w,labelId:b,listInnerRef:x}),[]);function N(e,t){var r,l;let a=null!=(l=null==(r=i.current)?void 0:r.filter)?l:e3;return e?a(e,n.current.search,t):0}function k(){if(!n.current.search||!1===i.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach(n=>{let r=l.current.get(n),a=0;r.forEach(t=>{a=Math.max(e.get(t),a)}),t.push([n,a])});let r=x.current;D().sort((t,n)=>{var r,l;let a=t.getAttribute("id"),o=n.getAttribute("id");return(null!=(r=e.get(o))?r:0)-(null!=(l=e.get(a))?l:0)}).forEach(e=>{let t=e.closest(eQ);t?t.appendChild(e.parentElement===t?e:e.closest(`${eQ} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${eQ} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{let t=x.current.querySelector(`${eJ}[${e9}="${encodeURIComponent(e[0])}"]`);null==t||t.parentElement.appendChild(t)})}function T(){let e=D().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(e9);R.setState("value",t||void 0)}function O(){var e,t,o,u;if(!n.current.search||!1===i.current.shouldFilter){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let s=0;for(let l of r.current){let r=N(null!=(t=null==(e=a.current.get(l))?void 0:e.value)?t:"",null!=(u=null==(o=a.current.get(l))?void 0:o.keywords)?u:[]);n.current.filtered.items.set(l,r),r>0&&s++}for(let[e,t]of l.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=s}function L(){var e,t,n;let r=_();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(eJ))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function _(){var e;return null==(e=x.current)?void 0:e.querySelector(`${e0}[aria-selected="true"]`)}function D(){var e;return Array.from(null==(e=x.current)?void 0:e.querySelectorAll(e1))}function I(e){let t=D()[e];t&&R.setState("value",t.getAttribute(e9))}function A(e){var t;let n=_(),r=D(),l=r.findIndex(e=>e===n),a=r[l+e];null!=(t=i.current)&&t.loop&&(a=l+e<0?r[r.length-1]:l+e===r.length?r[0]:r[l+e]),a&&R.setState("value",a.getAttribute(e9))}function P(e){let t=_(),n=null==t?void 0:t.closest(eJ),r;for(;n&&!r;)r=null==(n=e>0?function(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}(n,eJ):function(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}(n,eJ))?void 0:n.querySelector(e1);r?R.setState("value",r.getAttribute(e9)):A(e)}let M=()=>I(D().length-1),F=e=>{e.preventDefault(),e.metaKey?M():e.altKey?P(1):A(1)},j=e=>{e.preventDefault(),e.metaKey?I(0):e.altKey?P(-1):A(-1)};return E.createElement($.div,{ref:t,tabIndex:-1,...g,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=g.onKeyDown)||t.call(g,e),!e.defaultPrevented)switch(e.key){case"n":case"j":h&&e.ctrlKey&&F(e);break;case"ArrowDown":F(e);break;case"p":case"k":h&&e.ctrlKey&&j(e);break;case"ArrowUp":j(e);break;case"Home":e.preventDefault(),I(0);break;case"End":e.preventDefault(),M();break;case"Enter":if(!e.nativeEvent.isComposing&&229!==e.keyCode){e.preventDefault();let t=_();if(t){let e=new Event(e2);t.dispatchEvent(e)}}}}},E.createElement("label",{"cmdk-label":"",htmlFor:S.inputId,id:S.labelId,style:th},u),tp(e,e=>E.createElement(e7.Provider,{value:R},E.createElement(e6.Provider,{value:S},e))))}),tt=E.forwardRef((e,t)=>{var n,r;let l=E.useId(),a=E.useRef(null),o=E.useContext(e8),i=e4(),u=tu(e),s=null!=(r=null==(n=u.current)?void 0:n.forceMount)?r:null==o?void 0:o.forceMount;ts(()=>{if(!s)return i.item(l,null==o?void 0:o.id)},[s]);let c=tm(l,a,[e.value,e.children,a],e.keywords),d=e5(),f=tf(e=>e.value&&e.value===c.current),m=tf(e=>!!s||!1===i.filter()||!e.search||e.filtered.items.get(l)>0);function v(){var e,t;p(),null==(t=(e=u.current).onSelect)||t.call(e,c.current)}function p(){d.setState("value",c.current,!0)}if(E.useEffect(()=>{let t=a.current;if(!(!t||e.disabled))return t.addEventListener(e2,v),()=>t.removeEventListener(e2,v)},[m,e.onSelect,e.disabled]),!m)return null;let{disabled:h,value:g,onSelect:y,forceMount:b,keywords:w,...x}=e;return E.createElement($.div,{ref:td([a,t]),...x,id:l,"cmdk-item":"",role:"option","aria-disabled":!!h,"aria-selected":!!f,"data-disabled":!!h,"data-selected":!!f,onPointerMove:h||i.disablePointerSelection?void 0:p,onClick:h?void 0:v},e.children)}),tn=E.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:l,...a}=e,o=E.useId(),i=E.useRef(null),u=E.useRef(null),s=E.useId(),c=e4(),d=tf(e=>!!l||!1===c.filter()||!e.search||e.filtered.groups.has(o));ts(()=>c.group(o),[]),tm(o,i,[e.value,e.heading,u]);let f=E.useMemo(()=>({id:o,forceMount:l}),[l]);return E.createElement($.div,{ref:td([i,t]),...a,"cmdk-group":"",role:"presentation",hidden:!d||void 0},n&&E.createElement("div",{ref:u,"cmdk-group-heading":"","aria-hidden":!0,id:s},n),tp(e,e=>E.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?s:void 0},E.createElement(e8.Provider,{value:f},e))))}),tr=E.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,l=E.useRef(null),a=tf(e=>!e.search);return n||a?E.createElement($.div,{ref:td([l,t]),...r,"cmdk-separator":"",role:"separator"}):null}),tl=E.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,l=null!=e.value,a=e5(),o=tf(e=>e.search),i=tf(e=>e.value),u=e4(),s=E.useMemo(()=>{var e;let t=null==(e=u.listInnerRef.current)?void 0:e.querySelector(`${e0}[${e9}="${encodeURIComponent(i)}"]`);return null==t?void 0:t.getAttribute("id")},[]);return E.useEffect(()=>{null!=e.value&&a.setState("search",e.value)},[e.value]),E.createElement($.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":u.listId,"aria-labelledby":u.labelId,"aria-activedescendant":s,id:u.inputId,type:"text",value:l?e.value:o,onChange:e=>{l||a.setState("search",e.target.value),null==n||n(e.target.value)}})}),ta=E.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...l}=e,a=E.useRef(null),o=E.useRef(null),i=e4();return E.useEffect(()=>{if(o.current&&a.current){let e=o.current,t=a.current,n,r=new ResizeObserver(()=>{n=requestAnimationFrame(()=>{let n=e.offsetHeight;t.style.setProperty("--cmdk-list-height",n.toFixed(1)+"px")})});return r.observe(e),()=>{cancelAnimationFrame(n),r.unobserve(e)}}},[]),E.createElement($.div,{ref:td([a,t]),...l,"cmdk-list":"",role:"listbox","aria-label":r,id:i.listId},tp(e,e=>E.createElement("div",{ref:td([o,i.listInnerRef]),"cmdk-list-sizer":""},e)))}),to=E.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:l,contentClassName:a,container:o,...i}=e;return E.createElement(eY,{open:n,onOpenChange:r},E.createElement(eG,{container:o},E.createElement(e$,{"cmdk-overlay":"",className:l}),E.createElement(ez,{"aria-label":e.label,"cmdk-dialog":"",className:a},E.createElement(te,{ref:t,...i}))))}),ti=Object.assign(te,{List:ta,Item:tt,Input:tl,Group:tn,Separator:tr,Dialog:to,Empty:E.forwardRef((e,t)=>tf(e=>0===e.filtered.count)?E.createElement($.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:E.forwardRef((e,t)=>{let{progress:n,children:r,label:l="Loading...",...a}=e;return E.createElement($.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":l},tp(e,e=>E.createElement("div",{"aria-hidden":!0},e)))})});function tu(e){let t=E.useRef(e);return ts(()=>{t.current=e}),t}var ts="undefined"==typeof window?E.useEffect:E.useLayoutEffect;function tc(e){let t=E.useRef();return void 0===t.current&&(t.current=e()),t}function td(e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}function tf(e){let t=e5(),n=()=>e(t.snapshot());return E.useSyncExternalStore(t.subscribe,n,n)}function tm(e,t,n,r=[]){let l=E.useRef(),a=e4();return ts(()=>{var o;let i=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():l.current}})(),u=r.map(e=>e.trim());a.value(e,i,u),null==(o=t.current)||o.setAttribute(e9,i),l.current=i}),l}var tv=()=>{let[e,t]=E.useState(),n=tc(()=>new Map);return ts(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}};function tp({asChild:e,children:t},n){let r;return e&&E.isValidElement(t)?E.cloneElement("function"==typeof(r=t.type)?r(t.props):"render"in r?r.render(t.props):t,{ref:t.ref},n(t.props.children)):n(t)}var th={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},tg=n(7516),tE=E.forwardRef(({className:e,onClose:t,children:n,...r},l)=>(0,tg.jsxs)("div",{className:"flex flex-row items-center gap-2 px-3",children:[n,(0,tg.jsx)(ti.Input,{ref:l,className:(0,c.m6)("w-0 flex-1 bg-transparent py-3 text-base placeholder:text-fd-muted-foreground focus-visible:outline-none",e),...r}),(0,tg.jsx)("button",{type:"button","aria-label":"Close Search",onClick:t,className:(0,c.m6)((0,s.d)({color:"outline",className:"text-xs p-1.5"})),children:"Esc"})]}));tE.displayName=ti.Input.displayName;var ty=E.forwardRef(({className:e,...t},n)=>(0,tg.jsx)(ti.List,{ref:n,className:(0,c.m6)("max-h-[460px] overflow-y-auto border-t p-2",e),...t}));ty.displayName=ti.List.displayName;var tb=E.forwardRef((e,t)=>(0,tg.jsx)(ti.Empty,{ref:t,className:"py-12 text-center text-sm",...e}));tb.displayName=ti.Empty.displayName;var tw=E.forwardRef(({className:e,heading:t,...n},r)=>(0,tg.jsx)(ti.Group,{ref:r,heading:t?(0,tg.jsx)("div",{className:"px-3 py-2 text-xs font-medium",children:t}):void 0,className:(0,c.m6)("overflow-hidden",e),...n}));tw.displayName=ti.Group.displayName,E.forwardRef(({className:e,...t},n)=>(0,tg.jsx)(ti.Separator,{ref:n,className:(0,c.m6)("h-px bg-fd-border",e),...t})).displayName=ti.Separator.displayName;var tx=E.forwardRef(({className:e,icon:t,nested:n=!1,children:r,...l},a)=>(0,tg.jsx)(ti.Item,{ref:a,className:(0,c.m6)("select-none rounded-lg px-2 text-sm aria-disabled:pointer-events-none aria-disabled:opacity-50 aria-selected:bg-fd-accent aria-selected:text-fd-accent-foreground",e),...l,children:(0,tg.jsxs)("div",{className:(0,c.m6)("flex min-h-10 flex-row items-center gap-3",n&&"ms-2 gap-2 border-s ps-4"),children:[(0,tg.jsx)("div",{className:"text-fd-muted-foreground [&_svg]:size-4",children:t}),(0,tg.jsx)("p",{className:"w-0 flex-1 truncate",children:r})]})}));tx.displayName=ti.Item.displayName;var tC=E.forwardRef(({children:e,...t},n)=>(0,tg.jsx)(ti.Dialog,{ref:n,shouldFilter:!1,loop:!0,contentClassName:"fixed left-1/2 top-[10vh] z-50 w-[98vw] max-w-screen-sm origin-left -translate-x-1/2 rounded-lg border bg-fd-popover text-fd-popover-foreground shadow-lg data-[state=closed]:animate-fd-dialog-out data-[state=open]:animate-fd-dialog-in",overlayClassName:"fixed inset-0 z-50 bg-fd-background/50 backdrop-blur-sm data-[state=closed]:animate-fd-fade-out data-[state=open]:animate-fd-fade-in",...t,children:e}));function tR({open:e,onOpenChange:t,footer:n,links:r=[],...l}){let a=(0,E.useMemo)(()=>r.map(([e,t])=>({type:"page",id:e,content:e,url:t})),[r]);return(0,tg.jsxs)(tC,{open:e,onOpenChange:t,children:[(0,tg.jsx)(tN,{...l,items:"empty"===l.results?a:l.results,hideResults:"empty"===l.results&&0===a.length}),n?(0,tg.jsx)("div",{className:"mt-auto flex flex-col border-t p-3",children:n}):null]})}tC.displayName=ti.Dialog.displayName;var tS={text:(0,tg.jsx)(d.Z,{}),heading:(0,tg.jsx)(m,{}),page:(0,tg.jsx)(v,{})};function tN({search:e,onSearchChange:t,items:n,isLoading:r,hideResults:l=!1}){let{text:a}=(0,u.Q)(),s=(0,g.useRouter)(),{setOpenSearch:d}=(0,o.A)(),f=(0,i.A)(),m=e=>{s.push(e),d(!1),location.pathname===e.split("#")[0]&&f.setOpen(!1)};return(0,tg.jsxs)(tg.Fragment,{children:[(0,tg.jsx)(tE,{value:e,onValueChange:t,onClose:(0,E.useCallback)(()=>{d(!1)},[d]),placeholder:a.search,children:(0,tg.jsxs)("div",{className:"relative size-4",children:[(0,tg.jsx)(p,{className:(0,c.m6)("absolute size-full animate-spin text-fd-primary transition-opacity",!r&&"opacity-0")}),(0,tg.jsx)(h.Z,{className:(0,c.m6)("absolute size-full text-fd-muted-foreground transition-opacity",r&&"opacity-0")})]})}),(0,tg.jsxs)(ty,{className:(0,c.m6)(l&&"hidden"),children:[(0,tg.jsx)(tb,{children:a.searchNoResult}),(0,tg.jsx)(tw,{value:"result",children:n.map(e=>(0,tg.jsx)(tx,{value:e.id,onSelect:()=>{m(e.url)},icon:tS[e.type],nested:"page"!==e.type,children:e.content},e.id))})]})]})}var tk=(0,b.j)("rounded-md border px-2 py-0.5 text-xs font-medium text-fd-muted-foreground transition-colors",{variants:{active:{true:"bg-fd-accent text-fd-accent-foreground"}}});function tT({tag:e,onTagChange:t,items:n,...r}){return(0,tg.jsxs)("div",{...r,className:(0,c.m6)("flex flex-row items-center gap-1",r.className),children:[n.map(n=>(0,tg.jsx)("button",{type:"button",className:(0,c.m6)(tk({active:e===n.value})),onClick:()=>{t(n.value)},tabIndex:-1,children:n.name},n.value)),r.children]})}n(6776),n(6384);var tO=n(965);let tL=()=>{},t_=tL(),tD=Object,tI=e=>e===t_,tA=e=>"function"==typeof e,tP=(e,t)=>({...e,...t}),tM=e=>tA(e.then),tF=new WeakMap,tj=0,tV=e=>{let t,n;let r=typeof e,l=e&&e.constructor,a=l==Date;if(tD(e)!==e||a||l==RegExp)t=a?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=tF.get(e))return t;if(t=++tj+"~",tF.set(e,t),l==Array){for(n=0,t="@";ntK&&typeof window.requestAnimationFrame!=tz,tZ=(e,t)=>{let n=t$.get(e);return[()=>!tI(t)&&e.get(t)||tU,r=>{if(!tI(t)){let l=e.get(t);t in tW||(tW[t]=l),n[5](t,tP(l,r),l||tU)}},n[6],()=>!tI(t)&&t in tW?tW[t]:!tI(t)&&e.get(t)||tU]},tH=!0,[tX,tY]=tK&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[tL,tL],tG={initFocus:e=>(tq&&document.addEventListener("visibilitychange",e),tX("focus",e),()=>{tq&&document.removeEventListener("visibilitychange",e),tY("focus",e)}),initReconnect:e=>{let t=()=>{tH=!0,e()},n=()=>{tH=!1};return tX("online",t),tX("offline",n),()=>{tY("online",t),tY("offline",n)}}},tJ=!E.useId,tQ=!tK||"Deno"in window,t0=e=>tB()?window.requestAnimationFrame(e):setTimeout(e,1),t1=tQ?E.useEffect:E.useLayoutEffect,t2="undefined"!=typeof navigator&&navigator.connection,t9=!tQ&&t2&&(["slow-2g","2g"].includes(t2.effectiveType)||t2.saveData),t3=e=>{if(tA(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?tV(e):"",t]},t6=0,t4=()=>++t6;var t7={ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:2,RECONNECT_EVENT:1};async function t5(...e){let[t,n,r,l]=e,a=tP({populateCache:!0,throwOnError:!0},"boolean"==typeof l?{revalidate:l}:l||{}),o=a.populateCache,i=a.rollbackOnError,u=a.optimisticData,s=e=>"function"==typeof i?i(e):!1!==i,c=a.throwOnError;if(tA(n)){let e=[];for(let r of t.keys())!/^\$(inf|sub)\$/.test(r)&&n(t.get(r)._k)&&e.push(r);return Promise.all(e.map(d))}return d(n);async function d(n){let l;let[i]=t3(n);if(!i)return;let[d,f]=tZ(t,i),[m,v,p,h]=t$.get(t),g=()=>{let e=m[i];return(tA(a.revalidate)?a.revalidate(d().data,n):!1!==a.revalidate)&&(delete p[i],delete h[i],e&&e[0])?e[0](2).then(()=>d().data):d().data};if(e.length<3)return g();let E=r,y=t4();v[i]=[y,0];let b=!tI(u),w=d(),x=w.data,C=w._c,R=tI(C)?x:C;if(b&&f({data:u=tA(u)?u(R,x):u,_c:R}),tA(E))try{E=E(R)}catch(e){l=e}if(E&&tM(E)){if(E=await E.catch(e=>{l=e}),y!==v[i][0]){if(l)throw l;return E}l&&b&&s(l)&&(o=!0,f({data:R,_c:t_}))}if(o&&!l&&(tA(o)?f({data:o(E,R),error:t_,_c:t_}):f({data:E,error:t_,_c:t_})),v[i][1]=t4(),Promise.resolve(g()).then(()=>{f({_c:t_})}),l){if(c)throw l;return}return E}}let t8=(e,t)=>{for(let n in e)e[n][0]&&e[n][0](t)},ne=(e,t)=>{if(!t$.has(e)){let n=tP(tG,t),r={},l=t5.bind(t_,e),a=tL,o={},i=(e,t)=>{let n=o[e]||[];return o[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},u=(t,n,r)=>{e.set(t,n);let l=o[t];if(l)for(let e of l)e(n,r)},s=()=>{if(!t$.has(e)&&(t$.set(e,[r,{},{},{},l,u,i]),!tQ)){let t=n.initFocus(setTimeout.bind(t_,t8.bind(t_,r,0))),l=n.initReconnect(setTimeout.bind(t_,t8.bind(t_,r,1)));a=()=>{t&&t(),l&&l(),t$.delete(e)}}};return s(),[e,l,s,a]}return[e,t$.get(e)[4]]},[nt,nn]=ne(new Map),nr=tP({onLoadingSlow:tL,onSuccess:tL,onError:tL,onErrorRetry:(e,t,n,r,l)=>{let a=n.errorRetryCount,o=l.retryCount,i=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;(tI(a)||!(o>a))&&setTimeout(r,i,l)},onDiscarded:tL,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:t9?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:t9?5e3:3e3,compare:(e,t)=>tV(e)==tV(t),isPaused:()=>!1,cache:nt,mutate:nn,fallback:{}},{isOnline:()=>tH,isVisible:()=>{let e=tq&&document.visibilityState;return tI(e)||"hidden"!==e}}),nl=(e,t)=>{let n=tP(e,t);if(t){let{use:r,fallback:l}=e,{use:a,fallback:o}=t;r&&a&&(n.use=r.concat(a)),l&&o&&(n.fallback=tP(l,o))}return n},na=(0,E.createContext)({}),no=tK&&window.__SWR_DEVTOOLS_USE__,ni=no?window.__SWR_DEVTOOLS_USE__:[],nu=e=>tA(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],ns=()=>tP(nr,(0,E.useContext)(na)),nc=ni.concat(e=>(t,n,r)=>{let l=n&&((...e)=>{let[r]=t3(t),[,,,l]=t$.get(nt);if(r.startsWith("$inf$"))return n(...e);let a=l[r];return tI(a)?n(...e):(delete l[r],a)});return e(t,l,r)}),nd=(e,t,n)=>{let r=t[e]||(t[e]=[]);return r.push(n),()=>{let e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}};no&&(window.__SWR_DEVTOOLS_REACT__=E);let nf=E.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}),nm={dedupe:!0};tD.defineProperty(e=>{let{value:t}=e,n=(0,E.useContext)(na),r=tA(t),l=(0,E.useMemo)(()=>r?t(n):t,[r,n,t]),a=(0,E.useMemo)(()=>r?l:nl(n,l),[r,n,l]),o=l&&l.provider,i=(0,E.useRef)(t_);o&&!i.current&&(i.current=ne(o(a.cache||nt),l));let u=i.current;return u&&(a.cache=u[0],a.mutate=u[1]),t1(()=>{if(u)return u[2]&&u[2](),u[3]},[]),(0,E.createElement)(na.Provider,tP(e,{value:a}))},"defaultValue",{value:nr});let nv=(l=(e,t,n)=>{let{cache:r,compare:l,suspense:a,fallbackData:o,revalidateOnMount:i,revalidateIfStale:u,refreshInterval:s,refreshWhenHidden:c,refreshWhenOffline:d,keepPreviousData:f}=n,[m,v,p,h]=t$.get(r),[g,y]=t3(e),b=(0,E.useRef)(!1),w=(0,E.useRef)(!1),x=(0,E.useRef)(g),C=(0,E.useRef)(t),R=(0,E.useRef)(n),S=()=>R.current,N=()=>S().isVisible()&&S().isOnline(),[k,T,O,L]=tZ(r,g),_=(0,E.useRef)({}).current,D=tI(o)?n.fallback[g]:o,I=(e,t)=>{for(let n in _)if("data"===n){if(!l(e[n],t[n])&&(!tI(e[n])||!l(W,t[n])))return!1}else if(t[n]!==e[n])return!1;return!0},A=(0,E.useMemo)(()=>{let e=!!g&&!!t&&(tI(i)?!S().isPaused()&&!a&&(!!tI(u)||u):i),n=t=>{let n=tP(t);return(delete n._k,e)?{isValidating:!0,isLoading:!0,...n}:n},r=k(),l=L(),o=n(r),s=r===l?o:n(l),c=o;return[()=>{let e=n(k());return I(e,c)?(c.data=e.data,c.isLoading=e.isLoading,c.isValidating=e.isValidating,c.error=e.error,c):(c=e,e)},()=>s]},[r,g]),P=(0,tO.useSyncExternalStore)((0,E.useCallback)(e=>O(g,(t,n)=>{I(n,t)||e()}),[r,g]),A[0],A[1]),M=!b.current,F=m[g]&&m[g].length>0,j=P.data,V=tI(j)?D:j,$=P.error,U=(0,E.useRef)(V),W=f?tI(j)?U.current:j:V,z=(!F||!!tI($))&&(M&&!tI(i)?i:!S().isPaused()&&(a?!tI(V)&&u:tI(V)||u)),K=!!(g&&t&&M&&z),q=tI(P.isValidating)?K:P.isValidating,B=tI(P.isLoading)?K:P.isLoading,Z=(0,E.useCallback)(async e=>{let t,r;let a=C.current;if(!g||!a||w.current||S().isPaused())return!1;let o=!0,i=e||{},u=!p[g]||!i.dedupe,s=()=>tJ?!w.current&&g===x.current&&b.current:g===x.current,c={isValidating:!1,isLoading:!1},d=()=>{T(c)},f=()=>{let e=p[g];e&&e[1]===r&&delete p[g]},h={isValidating:!0};tI(k().data)&&(h.isLoading=!0);try{if(u&&(T(h),n.loadingTimeout&&tI(k().data)&&setTimeout(()=>{o&&s()&&S().onLoadingSlow(g,n)},n.loadingTimeout),p[g]=[a(y),t4()]),[t,r]=p[g],t=await t,u&&setTimeout(f,n.dedupingInterval),!p[g]||p[g][1]!==r)return u&&s()&&S().onDiscarded(g),!1;c.error=t_;let e=v[g];if(!tI(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return d(),u&&s()&&S().onDiscarded(g),!1;let i=k().data;c.data=l(i,t)?i:t,u&&s()&&S().onSuccess(t,g,n)}catch(n){f();let e=S(),{shouldRetryOnError:t}=e;!e.isPaused()&&(c.error=n,u&&s()&&(e.onError(n,g,e),(!0===t||tA(t)&&t(n))&&(!S().revalidateOnFocus||!S().revalidateOnReconnect||N())&&e.onErrorRetry(n,g,e,e=>{let t=m[g];t&&t[0]&&t[0](t7.ERROR_REVALIDATE_EVENT,e)},{retryCount:(i.retryCount||0)+1,dedupe:!0})))}return o=!1,d(),!0},[g,r]),H=(0,E.useCallback)((...e)=>t5(r,x.current,...e),[]);if(t1(()=>{C.current=t,R.current=n,tI(j)||(U.current=j)}),t1(()=>{if(!g)return;let e=Z.bind(t_,nm),t=0,n=nd(g,m,(n,r={})=>{if(n==t7.FOCUS_EVENT){let n=Date.now();S().revalidateOnFocus&&n>t&&N()&&(t=n+S().focusThrottleInterval,e())}else if(n==t7.RECONNECT_EVENT)S().revalidateOnReconnect&&N()&&e();else if(n==t7.MUTATE_EVENT)return Z();else if(n==t7.ERROR_REVALIDATE_EVENT)return Z(r)});return w.current=!1,x.current=g,b.current=!0,T({_k:y}),z&&(tI(V)||tQ?e():t0(e)),()=>{w.current=!0,n()}},[g]),t1(()=>{let e;function t(){let t=tA(s)?s(k().data):s;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!k().error&&(c||S().isVisible())&&(d||S().isOnline())?Z(nm).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[s,c,d,g]),(0,E.useDebugValue)(W),a&&tI(V)&&g){if(!tJ&&tQ)throw Error("Fallback data is required when using suspense in SSR.");C.current=t,R.current=n,w.current=!1;let e=h[g];if(tI(e)||nf(H(e)),tI($)){let e=Z(nm);tI(W)||(e.status="fulfilled",e.value=!0),nf(e)}else throw $}return{mutate:H,get data(){return _.data=!0,W},get error(){return _.error=!0,$},get isValidating(){return _.isValidating=!0,q},get isLoading(){return _.isLoading=!0,B}}},function(...e){let t=ns(),[n,r,a]=nu(e),o=nl(t,a),i=l,{use:u}=o,s=(u||[]).concat(nc);for(let e=s.length;e--;)i=s[e](i);return i(n,r||o.fetcher||null,o)});async function np(e,t,n,r){if(0===t.length)return"empty";let l=new URLSearchParams;l.set("query",t),n&&l.set("locale",n),r&&l.set("tag",r);let a=await fetch(`${e}?${l.toString()}`);if(!a.ok)throw Error(await a.text());return await a.json()}var nh=n(1694);function ng(e){var t;let{defaultTag:n,tags:r,api:l,delayMs:a,...o}=e,{locale:i}=(0,u.Q)(),[s,c]=(0,E.useState)(n),{search:d,setSearch:f,query:m}=function(e,t,n="/api/search",r=100){let[l,a]=(0,E.useState)(""),o=nv([n,function(e,t=1e3){let[n,r]=(0,E.useState)(e),l=(0,E.useRef)();if(0===t)return e;if(e!==n&&l.current?.value!==e){l.current&&clearTimeout(l.current.handler);let n=window.setTimeout(()=>{r(e)},t);l.current={value:e,handler:n}}return n}(l,r),e,t],e=>np(...e),{keepPreviousData:!0});return{search:l,setSearch:a,query:o}}(i,s,l,a);return(0,nh.p)(n,e=>{c(e)}),(0,tg.jsx)(tR,{search:d,onSearchChange:f,isLoading:m.isLoading,results:null!==(t=m.data)&&void 0!==t?t:[],...o,footer:r?(0,tg.jsxs)(tg.Fragment,{children:[(0,tg.jsx)(tT,{tag:s,onTagChange:c,items:r}),o.footer]}):o.footer})}}}]); \ No newline at end of file diff --git a/_next/static/chunks/191-b80eeb6bedf94e04.js b/_next/static/chunks/387-5fba0961e28faa7c.js similarity index 72% rename from _next/static/chunks/191-b80eeb6bedf94e04.js rename to _next/static/chunks/387-5fba0961e28faa7c.js index c44420e6..a6c78fca 100644 --- a/_next/static/chunks/191-b80eeb6bedf94e04.js +++ b/_next/static/chunks/387-5fba0961e28faa7c.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[191],{342:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(193).Z)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},5758:function(e,t,n){"use strict";n.d(t,{default:function(){return o.a}});var r=n(5801),o=n.n(r)},1977:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return r}}),n(782);let r=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&o(!0),null==n?void 0:n.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,o=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>o,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{o=!0,t.stopPropagation()}})}(null==r?void 0:r.current)&&r.current(e)}}))}function g(e){return l.use?{fetchPriority:e}:{fetchpriority:e}}"undefined"==typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let v=(0,l.forwardRef)((e,t)=>{let{src:n,srcSet:r,sizes:o,height:a,width:s,decoding:u,className:c,style:d,fetchPriority:f,placeholder:h,loading:m,unoptimized:v,fill:x,onLoadRef:b,onLoadingCompleteRef:y,setBlurComplete:w,setShowAltText:E,sizesInput:j,onLoad:S,onError:N,...C}=e;return(0,i.jsx)("img",{...C,...g(f),loading:m,width:s,height:a,decoding:u,"data-nimg":x?"fill":"1",className:c,style:d,sizes:o,srcSet:r,src:n,ref:(0,l.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(N&&(e.src=e.src),e.complete&&p(e,h,b,y,w,v,j))},[n,h,b,y,w,N,v,j,t]),onLoad:e=>{p(e.currentTarget,h,b,y,w,v,j)},onError:e=>{E(!0),"empty"!==h&&w(!0),N&&N(e)}})});function x(e){let{isAppRouter:t,imgAttributes:n}=e,r={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...g(n.fetchPriority)};return t&&a.default.preload?(a.default.preload(n.src,r),null):(0,i.jsx)(s.default,{children:(0,i.jsx)("link",{rel:"preload",href:n.srcSet?void 0:n.src,...r},"__nimg-"+n.src+n.srcSet+n.sizes)})}let b=(0,l.forwardRef)((e,t)=>{let n=(0,l.useContext)(f.RouterContext),r=(0,l.useContext)(d.ImageConfigContext),o=(0,l.useMemo)(()=>{let e=m||r||c.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n}},[r]),{onLoad:a,onLoadingComplete:s}=e,p=(0,l.useRef)(a);(0,l.useEffect)(()=>{p.current=a},[a]);let g=(0,l.useRef)(s);(0,l.useEffect)(()=>{g.current=s},[s]);let[b,y]=(0,l.useState)(!1),[w,E]=(0,l.useState)(!1),{props:j,meta:S}=(0,u.getImgProps)(e,{defaultLoader:h.default,imgConf:o,blurComplete:b,showAltText:w});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(v,{...j,unoptimized:S.unoptimized,placeholder:S.placeholder,fill:S.fill,onLoadRef:p,onLoadingCompleteRef:g,setBlurComplete:y,setShowAltText:E,sizesInput:e.sizes,ref:t}),S.priority?(0,i.jsx)(x,{isAppRouter:!n,imgAttributes:j}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5801:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return y}});let r=n(9646),o=n(7516),i=r._(n(2374)),l=n(4368),a=n(4552),s=n(2352),u=n(9289),c=n(1977),d=n(2765),f=n(9700),h=n(3570),m=n(3130),p=n(686),g=n(9880),v=new Set;function x(e,t,n,r,o,i){if("undefined"!=typeof window&&(i||(0,a.isLocalURL)(t))){if(!r.bypassPrefetchedCheck){let o=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(v.has(o))return;v.add(o)}(async()=>i?e.prefetch(t,o):e.prefetch(t,n,r))().catch(e=>{})}}function b(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}let y=i.default.forwardRef(function(e,t){let n,r;let{href:s,as:v,children:y,prefetch:w=null,passHref:E,replace:j,shallow:S,scroll:N,locale:C,onClick:R,onMouseEnter:P,onTouchStart:L,legacyBehavior:T=!1,...M}=e;n=y,T&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let k=i.default.useContext(d.RouterContext),O=i.default.useContext(f.AppRouterContext),A=null!=k?k:O,I=!k,_=!1!==w,D=null===w?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:z,as:W}=i.default.useMemo(()=>{if(!k){let e=b(s);return{href:e,as:v?b(v):e}}let[e,t]=(0,l.resolveHref)(k,s,!0);return{href:e,as:v?(0,l.resolveHref)(k,v):t||e}},[k,s,v]),F=i.default.useRef(z),U=i.default.useRef(W);T&&(r=i.default.Children.only(n));let H=T?r&&"object"==typeof r&&r.ref:t,[B,V,Z]=(0,h.useIntersection)({rootMargin:"200px"}),Y=i.default.useCallback(e=>{(U.current!==W||F.current!==z)&&(Z(),U.current=W,F.current=z),B(e),H&&("function"==typeof H?H(e):"object"==typeof H&&(H.current=e))},[W,H,z,Z,B]);i.default.useEffect(()=>{A&&V&&_&&x(A,z,W,{locale:C},{kind:D},I)},[W,z,V,C,_,null==k?void 0:k.locale,A,I,D]);let $={ref:Y,onClick(e){T||"function"!=typeof R||R(e),T&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),A&&!e.defaultPrevented&&function(e,t,n,r,o,l,s,u,c){let{nodeName:d}=e.currentTarget;if("A"===d.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,a.isLocalURL)(n)))return;e.preventDefault();let f=()=>{let e=null==s||s;"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:l,locale:u,scroll:e}):t[o?"replace":"push"](r||n,{scroll:e})};c?i.default.startTransition(f):f()}(e,A,z,W,j,S,N,C,I)},onMouseEnter(e){T||"function"!=typeof P||P(e),T&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),A&&(_||!I)&&x(A,z,W,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:D},I)},onTouchStart:function(e){T||"function"!=typeof L||L(e),T&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),A&&(_||!I)&&x(A,z,W,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:D},I)}};if((0,u.isAbsoluteUrl)(W))$.href=W;else if(!T||E||"a"===r.type&&!("href"in r.props)){let e=void 0!==C?C:null==k?void 0:k.locale,t=(null==k?void 0:k.isLocaleDomain)&&(0,m.getDomainLocale)(W,e,null==k?void 0:k.locales,null==k?void 0:k.domainLocales);$.href=t||(0,p.addBasePath)((0,c.addLocale)(W,e,null==k?void 0:k.defaultLocale))}return T?i.default.cloneElement(r,$):(0,o.jsx)("a",{...M,...$,children:n})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1203:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{cancelIdleCallback:function(){return r},requestIdleCallback:function(){return n}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4368:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return d}});let r=n(639),o=n(2352),i=n(8554),l=n(9289),a=n(782),s=n(4552),u=n(992),c=n(5285);function d(e,t,n){let d;let f="string"==typeof t?t:(0,o.formatWithValidation)(t),h=f.match(/^[a-zA-Z]{1,}:\/\//),m=h?f.slice(h[0].length):f;if((m.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+f+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,l.normalizeRepeatedSlashes)(m);f=(h?h[0]:"")+t}if(!(0,s.isLocalURL)(f))return n?[f]:f;try{d=new URL(f.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){d=new URL("/","http://n")}try{let e=new URL(f,d);e.pathname=(0,a.normalizePathTrailingSlash)(e.pathname);let t="";if((0,u.isDynamicRoute)(e.pathname)&&e.searchParams&&n){let n=(0,r.searchParamsToUrlQuery)(e.searchParams),{result:l,params:a}=(0,c.interpolateAs)(e.pathname,e.pathname,n);l&&(t=(0,o.formatWithValidation)({pathname:l,hash:e.hash,query:(0,i.omit)(n,a)}))}let l=e.origin===d.origin?e.href.slice(e.origin.length):e.href;return n?[l,t||l]:l}catch(e){return n?[f]:f}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3570:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return s}});let r=n(2374),o=n(1203),i="function"==typeof IntersectionObserver,l=new Map,a=[];function s(e){let{rootRef:t,rootMargin:n,disabled:s}=e,u=s||!i,[c,d]=(0,r.useState)(!1),f=(0,r.useRef)(null),h=(0,r.useCallback)(e=>{f.current=e},[]);return(0,r.useEffect)(()=>{if(i){if(u||c)return;let e=f.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:o,elements:i}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=a.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=l.get(r)))return t;let o=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:o},a.push(n),l.set(n,t),t}(n);return i.set(e,t),o.observe(e),function(){if(i.delete(e),o.unobserve(e),0===i.size){o.disconnect(),l.delete(r);let e=a.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&a.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!c){let e=(0,o.requestIdleCallback)(()=>d(!0));return()=>(0,o.cancelIdleCallback)(e)}},[u,n,t,c,f.current]),[h,c,(0,r.useCallback)(()=>{d(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5453:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return r}});let r=n(9646)._(n(2374)).default.createContext({})},3536:function(e,t){"use strict";function n(e){let{ampFirst:t=!1,hybrid:n=!1,hasQuery:r=!1}=void 0===e?{}:e;return t||n&&r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return n}})},2038:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return o}});let n=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function o(e){return n.test(e)?e.replace(r,"\\$&"):e}},4697:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return a}}),n(3681);let r=n(1607),o=n(4173);function i(e){return void 0!==e.default}function l(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function a(e,t){var n;let a,s,u,{src:c,sizes:d,unoptimized:f=!1,priority:h=!1,loading:m,className:p,quality:g,width:v,height:x,fill:b=!1,style:y,overrideSrc:w,onLoad:E,onLoadingComplete:j,placeholder:S="empty",blurDataURL:N,fetchPriority:C,layout:R,objectFit:P,objectPosition:L,lazyBoundary:T,lazyRoot:M,...k}=e,{imgConf:O,showAltText:A,blurComplete:I,defaultLoader:_}=t,D=O||o.imageConfigDefault;if("allSizes"in D)a=D;else{let e=[...D.deviceSizes,...D.imageSizes].sort((e,t)=>e-t),t=D.deviceSizes.sort((e,t)=>e-t);a={...D,allSizes:e,deviceSizes:t}}if(void 0===_)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let z=k.loader||_;delete k.loader,delete k.srcSet;let W="__next_img_default"in z;if(W){if("custom"===a.loader)throw Error('Image with src "'+c+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=z;z=t=>{let{config:n,...r}=t;return e(r)}}if(R){"fill"===R&&(b=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[R];e&&(y={...y,...e});let t={responsive:"100vw",fill:"100vw"}[R];t&&!d&&(d=t)}let F="",U=l(v),H=l(x);if("object"==typeof(n=c)&&(i(n)||void 0!==n.src)){let e=i(c)?c.default:c;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(s=e.blurWidth,u=e.blurHeight,N=N||e.blurDataURL,F=e.src,!b){if(U||H){if(U&&!H){let t=U/e.width;H=Math.round(e.height*t)}else if(!U&&H){let t=H/e.height;U=Math.round(e.width*t)}}else U=e.width,H=e.height}}let B=!h&&("lazy"===m||void 0===m);(!(c="string"==typeof c?c:F)||c.startsWith("data:")||c.startsWith("blob:"))&&(f=!0,B=!1),a.unoptimized&&(f=!0),W&&c.endsWith(".svg")&&!a.dangerouslyAllowSVG&&(f=!0),h&&(C="high");let V=l(g),Z=Object.assign(b?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:P,objectPosition:L}:{},A?{}:{color:"transparent"},y),Y=I||"empty"===S?null:"blur"===S?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:U,heightInt:H,blurWidth:s,blurHeight:u,blurDataURL:N||"",objectFit:Z.objectFit})+'")':'url("'+S+'")',$=Y?{backgroundSize:Z.objectFit||"cover",backgroundPosition:Z.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:Y}:{},K=function(e){let{config:t,src:n,unoptimized:r,width:o,quality:i,sizes:l,loader:a}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:s,kind:u}=function(e,t,n){let{deviceSizes:r,allSizes:o}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:o.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:o,kind:"w"}}return"number"!=typeof t?{widths:r,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>o.find(t=>t>=e)||o[o.length-1]))],kind:"x"}}(t,o,l),c=s.length-1;return{sizes:l||"w"!==u?l:"100vw",srcSet:s.map((e,r)=>a({config:t,src:n,quality:i,width:e})+" "+("w"===u?e:r+1)+u).join(", "),src:a({config:t,src:n,quality:i,width:s[c]})}}({config:a,src:c,unoptimized:f,width:U,quality:V,sizes:d,loader:z});return{props:{...k,loading:B?"lazy":m,fetchPriority:C,width:U,height:H,decoding:"async",className:p,style:{...Z,...$},sizes:K.sizes,srcSet:K.srcSet,src:w||K.src},meta:{unoptimized:f,priority:h,placeholder:S,fill:b}}}},1862:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return p},defaultHead:function(){return d}});let r=n(9646),o=n(2279),i=n(7516),l=o._(n(2374)),a=r._(n(4632)),s=n(5453),u=n(2911),c=n(3536);function d(e){void 0===e&&(e=!1);let t=[(0,i.jsx)("meta",{charSet:"utf-8"})];return e||t.push((0,i.jsx)("meta",{name:"viewport",content:"width=device-width"})),t}function f(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===l.default.Fragment?e.concat(l.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}n(3681);let h=["name","httpEquiv","charSet","itemProp"];function m(e,t){let{inAmpMode:n}=t;return e.reduce(f,[]).reverse().concat(d(n).reverse()).filter(function(){let e=new Set,t=new Set,n=new Set,r={};return o=>{let i=!0,l=!1;if(o.key&&"number"!=typeof o.key&&o.key.indexOf("$")>0){l=!0;let t=o.key.slice(o.key.indexOf("$")+1);e.has(t)?i=!1:e.add(t)}switch(o.type){case"title":case"base":t.has(o.type)?i=!1:t.add(o.type);break;case"meta":for(let e=0,t=h.length;e{let r=e.key||t;if(!n&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,l.default.cloneElement(e,t)}return l.default.cloneElement(e,{key:r})})}let p=function(e){let{children:t}=e,n=(0,l.useContext)(s.AmpStateContext),r=(0,l.useContext)(u.HeadManagerContext);return(0,i.jsx)(a.default,{reduceComponentsToState:m,headManager:r,inAmpMode:(0,c.isInAmpMode)(n),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1607:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:o,blurDataURL:i,objectFit:l}=e,a=r?40*r:t,s=o?40*o:n,u=a&&s?"viewBox='0 0 "+a+" "+s+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===l?"xMidYMid":"cover"===l?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+i+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},8435:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return i}});let r=n(9646)._(n(2374)),o=n(4173),i=r.default.createContext(o.imageConfigDefault)},4173:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{VALID_LOADERS:function(){return n},imageConfigDefault:function(){return r}});let n=["default","imgix","cloudinary","akamai","custom"],r={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",remotePatterns:[],unoptimized:!1}},2313:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return s},getImageProps:function(){return a}});let r=n(9646),o=n(4697),i=n(8918),l=r._(n(8907));function a(e){let{props:t}=(0,o.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let s=i.Image},8907:function(e,t){"use strict";function n(e){let{config:t,src:n,width:r,quality:o}=e;return t.path+"?url="+encodeURIComponent(n)+"&w="+r+"&q="+(o||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},2765:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return r}});let r=n(9646)._(n(2374)).default.createContext(null)},2352:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{formatUrl:function(){return i},formatWithValidation:function(){return a},urlObjectKeys:function(){return l}});let r=n(2279)._(n(639)),o=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:n}=e,i=e.protocol||"",l=e.pathname||"",a=e.hash||"",s=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:n&&(u=t+(~n.indexOf(":")?"["+n+"]":n),e.port&&(u+=":"+e.port)),s&&"object"==typeof s&&(s=String(r.urlQueryToSearchParams(s)));let c=e.search||s&&"?"+s||"";return i&&!i.endsWith(":")&&(i+=":"),e.slashes||(!i||o.test(i))&&!1!==u?(u="//"+(u||""),l&&"/"!==l[0]&&(l="/"+l)):u||(u=""),a&&"#"!==a[0]&&(a="#"+a),c&&"?"!==c[0]&&(c="?"+c),""+i+u+(l=l.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+a}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function a(e){return i(e)}},992:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});let r=n(9224),o=n(6856)},5285:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return i}});let r=n(3511),o=n(7334);function i(e,t,n){let i="",l=(0,o.getRouteRegex)(e),a=l.groups,s=(t!==e?(0,r.getRouteMatcher)(l)(t):"")||n;i=e;let u=Object.keys(a);return u.every(e=>{let t=s[e]||"",{repeat:n,optional:r}=a[e],o="["+(n?"...":"")+e+"]";return r&&(o=(t?"":"/")+"["+o+"]"),n&&!Array.isArray(t)&&(t=[t]),(r||e in s)&&(i=i.replace(o,n?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(i=""),{params:u,result:i}}},6856:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return i}});let r=n(1923),o=/\/\[[^/]+?\](?=\/|$)/;function i(e){return(0,r.isInterceptionRouteAppPath)(e)&&(e=(0,r.extractInterceptionRouteInformation)(e).interceptedRoute),o.test(e)}},4552:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return i}});let r=n(9289),o=n(7752);function i(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,o.hasBasePath)(n.pathname)}catch(e){return!1}}},8554:function(e,t){"use strict";function n(e,t){let n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return n}})},639:function(e,t){"use strict";function n(e){let t={};return e.forEach((e,n)=>{void 0===t[n]?t[n]=e:Array.isArray(t[n])?t[n].push(e):t[n]=[t[n],e]}),t}function r(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[n,o]=e;Array.isArray(o)?o.forEach(e=>t.append(n,r(e))):t.set(n,r(o))}),t}function i(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,n)=>e.append(n,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{assign:function(){return i},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return o}})},3511:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return o}});let r=n(9289);function o(e){let{re:t,groups:n}=e;return e=>{let o=t.exec(e);if(!o)return!1;let i=e=>{try{return decodeURIComponent(e)}catch(e){throw new r.DecodeError("failed to decode param")}},l={};return Object.keys(n).forEach(e=>{let t=n[e],r=o[t.pos];void 0!==r&&(l[e]=~r.indexOf("/")?r.split("/").map(e=>i(e)):t.repeat?[i(r)]:i(r))}),l}}},7334:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getNamedMiddlewareRegex:function(){return f},getNamedRouteRegex:function(){return d},getRouteRegex:function(){return s}});let r=n(1923),o=n(2038),i=n(5921);function l(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let n=e.startsWith("...");return n&&(e=e.slice(3)),{key:e,repeat:n,optional:t}}function a(e){let t=(0,i.removeTrailingSlash)(e).slice(1).split("/"),n={},a=1;return{parameterizedRoute:t.map(e=>{let t=r.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),i=e.match(/\[((?:\[.*\])|.+)\]/);if(t&&i){let{key:e,optional:r,repeat:s}=l(i[1]);return n[e]={pos:a++,repeat:s,optional:r},"/"+(0,o.escapeStringRegexp)(t)+"([^/]+?)"}if(!i)return"/"+(0,o.escapeStringRegexp)(e);{let{key:e,repeat:t,optional:r}=l(i[1]);return n[e]={pos:a++,repeat:t,optional:r},t?r?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:n}}function s(e){let{parameterizedRoute:t,groups:n}=a(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:n}}function u(e){let{interceptionMarker:t,getSafeRouteKey:n,segment:r,routeKeys:i,keyPrefix:a}=e,{key:s,optional:u,repeat:c}=l(r),d=s.replace(/\W/g,"");a&&(d=""+a+d);let f=!1;(0===d.length||d.length>30)&&(f=!0),isNaN(parseInt(d.slice(0,1)))||(f=!0),f&&(d=n()),a?i[d]=""+a+s:i[d]=s;let h=t?(0,o.escapeStringRegexp)(t):"";return c?u?"(?:/"+h+"(?<"+d+">.+?))?":"/"+h+"(?<"+d+">.+?)":"/"+h+"(?<"+d+">[^/]+?)"}function c(e,t){let n;let l=(0,i.removeTrailingSlash)(e).slice(1).split("/"),a=(n=0,()=>{let e="",t=++n;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),s={};return{namedParameterizedRoute:l.map(e=>{let n=r.INTERCEPTION_ROUTE_MARKERS.some(t=>e.startsWith(t)),i=e.match(/\[((?:\[.*\])|.+)\]/);if(n&&i){let[n]=e.split(i[0]);return u({getSafeRouteKey:a,interceptionMarker:n,segment:i[1],routeKeys:s,keyPrefix:t?"nxtI":void 0})}return i?u({getSafeRouteKey:a,segment:i[1],routeKeys:s,keyPrefix:t?"nxtP":void 0}):"/"+(0,o.escapeStringRegexp)(e)}).join(""),routeKeys:s}}function d(e,t){let n=c(e,t);return{...s(e),namedRegex:"^"+n.namedParameterizedRoute+"(?:/)?$",routeKeys:n.routeKeys}}function f(e,t){let{parameterizedRoute:n}=a(e),{catchAll:r=!0}=t;if("/"===n)return{namedRegex:"^/"+(r?".*":"")+"$"};let{namedParameterizedRoute:o}=c(e,!1);return{namedRegex:"^"+o+(r?"(?:(/.*)?)":"")+"$"}}},9224:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class n{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let n=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&n.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');n.unshift(t)}return null!==this.restSlugName&&n.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&n.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),n}_insert(e,t,r){if(0===e.length){this.placeholder=!1;return}if(r)throw Error("Catch-all must be the last part of the URL.");let o=e[0];if(o.startsWith("[")&&o.endsWith("]")){let n=o.slice(1,-1),l=!1;if(n.startsWith("[")&&n.endsWith("]")&&(n=n.slice(1,-1),l=!0),n.startsWith("...")&&(n=n.substring(3),r=!0),n.startsWith("[")||n.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+n+"').");if(n.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+n+"').");function i(e,n){if(null!==e&&e!==n)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+n+"').");t.forEach(e=>{if(e===n)throw Error('You cannot have the same slug name "'+n+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===o.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+n+'" differ only by non-word symbols within a single dynamic path')}),t.push(n)}if(r){if(l){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');i(this.optionalRestSlugName,n),this.optionalRestSlugName=n,o="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');i(this.restSlugName,n),this.restSlugName=n,o="[...]"}}else{if(l)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');i(this.slugName,n),this.slugName=n,o="[]"}}this.children.has(o)||this.children.set(o,new n),this.children.get(o)._insert(e.slice(1),t,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(e){let t=new n;return e.forEach(e=>t.insert(e)),t.smoosh()}},4632:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=n(2374),o="undefined"==typeof window,i=o?()=>{}:r.useLayoutEffect,l=o?()=>{}:r.useEffect;function a(e){let{headManager:t,reduceComponentsToState:n}=e;function a(){if(t&&t.mountedInstances){let o=r.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(n(o,e))}}if(o){var s;null==t||null==(s=t.mountedInstances)||s.add(e.children),a()}return i(()=>{var n;return null==t||null==(n=t.mountedInstances)||n.add(e.children),()=>{var n;null==t||null==(n=t.mountedInstances)||n.delete(e.children)}}),i(()=>(t&&(t._pendingUpdate=a),()=>{t&&(t._pendingUpdate=a)})),l(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},9289:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DecodeError:function(){return m},MiddlewareNotFoundError:function(){return x},MissingStaticPage:function(){return v},NormalizeError:function(){return p},PageNotFoundError:function(){return g},SP:function(){return f},ST:function(){return h},WEB_VITALS:function(){return n},execOnce:function(){return r},getDisplayName:function(){return s},getLocationOrigin:function(){return l},getURL:function(){return a},isAbsoluteUrl:function(){return i},isResSent:function(){return u},loadGetInitialProps:function(){return d},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return b}});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(e){let t,n=!1;return function(){for(var r=arguments.length,o=Array(r),i=0;io.test(e);function l(){let{protocol:e,hostname:t,port:n}=window.location;return e+"//"+t+(n?":"+n:"")}function a(){let{href:e}=window.location,t=l();return e.substring(t.length)}function s(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function u(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function d(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await d(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&u(n))return r;if(!r)throw Error('"'+s(e)+'.getInitialProps()" should resolve to an object. But found "'+r+'" instead.');return r}let f="undefined"!=typeof performance,h=f&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class m extends Error{}class p extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class v extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class x extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function b(e){return JSON.stringify({message:e.message,stack:e.stack})}},3318:function(){},312:function(e,t,n){"use strict";function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}n.d(t,{M:function(){return r}})},6766:function(e,t,n){"use strict";n.d(t,{F:function(){return o},e:function(){return i}});var r=n(2374);function o(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function i(...e){return r.useCallback(o(...e),e)}},7706:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var r=n(2374),o=n(7516);function i(e,t=[]){let n=[],i=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return i.scopeName=e,[function(t,i){let l=r.createContext(i),a=n.length;function s(t){let{scope:n,children:i,...s}=t,u=n?.[e][a]||l,c=r.useMemo(()=>s,Object.values(s));return(0,o.jsx)(u.Provider,{value:c,children:i})}return n=[...n,i],s.displayName=t+"Provider",[s,function(n,o){let s=o?.[e][a]||l,u=r.useContext(s);if(u)return u;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(i,...t)]}},7840:function(e,t,n){"use strict";n.d(t,{M:function(){return s}});var r,o=n(2374),i=n(2656),l=(r||(r=n.t(o,2)))["useId".toString()]||(()=>void 0),a=0;function s(e){let[t,n]=o.useState(l());return(0,i.b)(()=>{e||n(e=>e??String(a++))},[e]),e||(t?`radix-${t}`:"")}},3301:function(e,t,n){"use strict";n.d(t,{z:function(){return a}});var r=n(2374),o=n(7372),i=n(6766),l=n(2656),a=e=>{var t,n;let a,u;let{present:c,children:d}=e,f=function(e){var t,n;let[i,a]=r.useState(),u=r.useRef({}),c=r.useRef(e),d=r.useRef("none"),[f,h]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=s(u.current);d.current="mounted"===f?e:"none"},[f]),(0,l.b)(()=>{let t=u.current,n=c.current;if(n!==e){let r=d.current,o=s(t);e?h("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?h("UNMOUNT"):n&&r!==o?h("ANIMATION_OUT"):h("UNMOUNT"),c.current=e}},[e,h]),(0,l.b)(()=>{if(i){let e=e=>{let t=s(u.current).includes(e.animationName);e.target===i&&t&&o.flushSync(()=>h("ANIMATION_END"))},t=e=>{e.target===i&&(d.current=s(u.current))};return i.addEventListener("animationstart",t),i.addEventListener("animationcancel",e),i.addEventListener("animationend",e),()=>{i.removeEventListener("animationstart",t),i.removeEventListener("animationcancel",e),i.removeEventListener("animationend",e)}}h("ANIMATION_END")},[i,h]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:r.useCallback(e=>{e&&(u.current=getComputedStyle(e)),a(e)},[])}}(c),h="function"==typeof d?d({present:f.isPresent}):r.Children.only(d),m=(0,i.e)(f.ref,(a=null===(t=Object.getOwnPropertyDescriptor(h.props,"ref"))||void 0===t?void 0:t.get)&&"isReactWarning"in a&&a.isReactWarning?h.ref:(a=null===(n=Object.getOwnPropertyDescriptor(h,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in a&&a.isReactWarning?h.props.ref:h.props.ref||h.ref);return"function"==typeof d||f.isPresent?r.cloneElement(h,{ref:m}):null};function s(e){return(null==e?void 0:e.animationName)||"none"}a.displayName="Presence"},4356:function(e,t,n){"use strict";n.d(t,{WV:function(){return a},jH:function(){return s}});var r=n(2374),o=n(7372),i=n(9984),l=n(7516),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=r.forwardRef((e,n)=>{let{asChild:r,...o}=e,a=r?i.g7:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(a,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function s(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},9984:function(e,t,n){"use strict";n.d(t,{g7:function(){return l}});var r=n(2374),o=n(6766),i=n(7516),l=r.forwardRef((e,t)=>{let{children:n,...o}=e,l=r.Children.toArray(n),s=l.find(u);if(s){let e=s.props.children,n=l.map(t=>t!==s?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,i.jsx)(a,{...o,ref:t,children:r.isValidElement(e)?r.cloneElement(e,void 0,n):null})}return(0,i.jsx)(a,{...o,ref:t,children:n})});l.displayName="Slot";var a=r.forwardRef((e,t)=>{let{children:n,...i}=e;if(r.isValidElement(n)){let e,l;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return r.cloneElement(n,{...function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(i,n.props),ref:t?(0,o.F)(t,a):a})}return r.Children.count(n)>1?r.Children.only(null):null});a.displayName="SlotClone";var s=({children:e})=>(0,i.jsx)(i.Fragment,{children:e});function u(e){return r.isValidElement(e)&&e.type===s}},931:function(e,t,n){"use strict";n.d(t,{W:function(){return o}});var r=n(2374);function o(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},5960:function(e,t,n){"use strict";n.d(t,{T:function(){return i}});var r=n(2374),o=n(931);function i({prop:e,defaultProp:t,onChange:n=()=>{}}){let[i,l]=function({defaultProp:e,onChange:t}){let n=r.useState(e),[i]=n,l=r.useRef(i),a=(0,o.W)(t);return r.useEffect(()=>{l.current!==i&&(a(i),l.current=i)},[i,l,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,s=a?e:i,u=(0,o.W)(n);return[s,r.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&u(n)}else l(t)},[a,e,l,u])]}},2656:function(e,t,n){"use strict";n.d(t,{b:function(){return o}});var r=n(2374),o=globalThis?.document?r.useLayoutEffect:()=>{}},8296:function(e,t,n){"use strict";n.d(t,{AnchorProvider:function(){return x},ID:function(){return v},FU:function(){return b},tD:function(){return p},_z:function(){return g}});var r=n(1453);n(6384);var o=n(2374);let i=e=>"object"==typeof e&&null!=e&&1===e.nodeType,l=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,a=(e,t)=>{if(e.clientHeight{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeightit||i>e&&l=t&&a>=n?i-e-r:l>t&&an?l-t+o:0,u=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},c=(e,t)=>{var n,r,o,l;if("undefined"==typeof document)return[];let{scrollMode:c,block:d,inline:f,boundary:h,skipOverflowHiddenElements:m}=t,p="function"==typeof h?h:e=>e!==h;if(!i(e))throw TypeError("Invalid target");let g=document.scrollingElement||document.documentElement,v=[],x=e;for(;i(x)&&p(x);){if((x=u(x))===g){v.push(x);break}null!=x&&x===document.body&&a(x)&&!a(document.documentElement)||null!=x&&a(x,m)&&v.push(x)}let b=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,y=null!=(l=null==(o=window.visualViewport)?void 0:o.height)?l:innerHeight,{scrollX:w,scrollY:E}=window,{height:j,width:S,top:N,right:C,bottom:R,left:P}=e.getBoundingClientRect(),{top:L,right:T,bottom:M,left:k}=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e),O="start"===d||"nearest"===d?N-L:"end"===d?R+M:N+j/2-L+M,A="center"===f?P+S/2-k+T:"end"===f?C+T:P-k,I=[];for(let e=0;e=0&&P>=0&&R<=y&&C<=b&&N>=o&&R<=l&&P>=a&&C<=i)break;let u=getComputedStyle(t),h=parseInt(u.borderLeftWidth,10),m=parseInt(u.borderTopWidth,10),p=parseInt(u.borderRightWidth,10),x=parseInt(u.borderBottomWidth,10),L=0,T=0,M="offsetWidth"in t?t.offsetWidth-t.clientWidth-h-p:0,k="offsetHeight"in t?t.offsetHeight-t.clientHeight-m-x:0,_="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,D="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(g===t)L="start"===d?O:"end"===d?O-y:"nearest"===d?s(E,E+y,y,m,x,E+O,E+O+j,j):O-y/2,T="start"===f?A:"center"===f?A-b/2:"end"===f?A-b:s(w,w+b,b,h,p,w+A,w+A+S,S),L=Math.max(0,L+E),T=Math.max(0,T+w);else{L="start"===d?O-o-m:"end"===d?O-l+x+k:"nearest"===d?s(o,l,n,m,x+k,O,O+j,j):O-(o+n/2)+k/2,T="start"===f?A-a-h:"center"===f?A-(a+r/2)+M/2:"end"===f?A-i+p+M:s(a,i,r,h,p+M,A,A+S,S);let{scrollLeft:e,scrollTop:u}=t;L=0===D?0:Math.max(0,Math.min(u+L/D,t.scrollHeight-n/D+k)),T=0===_?0:Math.max(0,Math.min(e+T/_,t.scrollWidth-r/_+M)),O+=u-L,A+=e-T}I.push({el:t,top:L,left:T})}return I},d=e=>!1===e?{block:"end",inline:"nearest"}:e===Object(e)&&0!==Object.keys(e).length?e:{block:"start",inline:"nearest"};var f=n(7516),h=(0,o.createContext)([]),m=(0,o.createContext)({current:null});function p(){return(0,o.useContext)(h).at(-1)}function g(){return(0,o.useContext)(h)}function v(e){let{containerRef:t,children:n}=e;return(0,f.jsx)(m.Provider,{value:t,children:n})}function x(e){let{toc:t,single:n=!0,children:r}=e,i=(0,o.useMemo)(()=>t.map(e=>e.url.split("#")[1]),[t]);return(0,f.jsx)(h.Provider,{value:function(e,t){let[n,r]=(0,o.useState)([]);return(0,o.useEffect)(()=>{let n=[],o=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&!n.includes(t.target.id)?n=[...n,t.target.id]:!t.isIntersecting&&n.includes(t.target.id)&&(n=n.filter(e=>e!==t.target.id));n.length>0&&r(n)},{rootMargin:t?"-80px 0% -70% 0%":"-20px 0% -40% 0%",threshold:1});function i(){let n=document.scrollingElement;n&&(0===n.scrollTop&&t?r(e.slice(0,1)):n.scrollTop+n.clientHeight>=n.scrollHeight-6&&r(n=>n.length>0&&!t?e.slice(e.indexOf(n[0])):e.slice(-1)))}for(let t of e){let e=document.getElementById(t);e&&o.observe(e)}return i(),window.addEventListener("scroll",i),()=>{window.removeEventListener("scroll",i),o.disconnect()}},[t,e]),t?n.slice(0,1):n}(i,n),children:r})}var b=(0,o.forwardRef)((e,t)=>{let{onActiveChange:n,...i}=e,l=(0,o.useContext)(m),a=g(),s=(0,o.useRef)(null),u=function(){for(var e=arguments.length,t=Array(e),n=0;n{t.forEach(t=>{"function"==typeof t?t(e):null!==t&&(t.current=e)})}}(s,t),h=a.includes(i.href.slice(1));return(0,r.p)(h,e=>{let t=s.current;t&&(e&&l.current&&function(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let n=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if("object"==typeof t&&"function"==typeof t.behavior)return t.behavior(c(e,t));let r="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:o,top:i,left:l}of c(e,d(t))){let e=i-n.top+n.bottom,t=l-n.left+n.right;o.scroll({top:e,left:t,behavior:r})}}(t,{behavior:"smooth",block:"center",inline:"center",scrollMode:"always",boundary:l.current}),null==n||n(e))}),(0,f.jsx)("a",{ref:u,"data-active":h,...i,children:i.children})});b.displayName="TOCItem"},2170:function(e,t,n){"use strict";n.d(t,{xr:function(){return $},Bl:function(){return q},fK:function(){return K}});var r=n(5487),o=n(2374),i=n(4356),l=n(3301),a=n(7706),s=n(6766),u=n(931),c=n(8454),d=n(2656),f=n(312),h=n(7516),m="ScrollArea",[p,g]=(0,a.b)(m),[v,x]=p(m),b=o.forwardRef((e,t)=>{let{__scopeScrollArea:n,type:r="hover",dir:l,scrollHideDelay:a=600,...u}=e,[d,f]=o.useState(null),[m,p]=o.useState(null),[g,x]=o.useState(null),[b,y]=o.useState(null),[w,E]=o.useState(null),[j,S]=o.useState(0),[N,C]=o.useState(0),[R,P]=o.useState(!1),[L,T]=o.useState(!1),M=(0,s.e)(t,e=>f(e)),k=(0,c.gm)(l);return(0,h.jsx)(v,{scope:n,type:r,dir:k,scrollHideDelay:a,scrollArea:d,viewport:m,onViewportChange:p,content:g,onContentChange:x,scrollbarX:b,onScrollbarXChange:y,scrollbarXEnabled:R,onScrollbarXEnabledChange:P,scrollbarY:w,onScrollbarYChange:E,scrollbarYEnabled:L,onScrollbarYEnabledChange:T,onCornerWidthChange:S,onCornerHeightChange:C,children:(0,h.jsx)(i.WV.div,{dir:k,...u,ref:M,style:{position:"relative","--radix-scroll-area-corner-width":j+"px","--radix-scroll-area-corner-height":N+"px",...e.style}})})});b.displayName=m;var y="ScrollAreaViewport",w=o.forwardRef((e,t)=>{let{__scopeScrollArea:n,children:r,nonce:l,...a}=e,u=x(y,n),c=o.useRef(null),d=(0,s.e)(t,c,u.onViewportChange);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:l}),(0,h.jsx)(i.WV.div,{"data-radix-scroll-area-viewport":"",...a,ref:d,style:{overflowX:u.scrollbarXEnabled?"scroll":"hidden",overflowY:u.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,h.jsx)("div",{ref:u.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});w.displayName=y;var E="ScrollAreaScrollbar",j=o.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=x(E,e.__scopeScrollArea),{onScrollbarXEnabledChange:l,onScrollbarYEnabledChange:a}=i,s="horizontal"===e.orientation;return o.useEffect(()=>(s?l(!0):a(!0),()=>{s?l(!1):a(!1)}),[s,l,a]),"hover"===i.type?(0,h.jsx)(S,{...r,ref:t,forceMount:n}):"scroll"===i.type?(0,h.jsx)(N,{...r,ref:t,forceMount:n}):"auto"===i.type?(0,h.jsx)(C,{...r,ref:t,forceMount:n}):"always"===i.type?(0,h.jsx)(R,{...r,ref:t}):null});j.displayName=E;var S=o.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=x(E,e.__scopeScrollArea),[a,s]=o.useState(!1);return o.useEffect(()=>{let e=i.scrollArea,t=0;if(e){let n=()=>{window.clearTimeout(t),s(!0)},r=()=>{t=window.setTimeout(()=>s(!1),i.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}},[i.scrollArea,i.scrollHideDelay]),(0,h.jsx)(l.z,{present:n||a,children:(0,h.jsx)(C,{"data-state":a?"visible":"hidden",...r,ref:t})})}),N=o.forwardRef((e,t)=>{var n,r;let{forceMount:i,...a}=e,s=x(E,e.__scopeScrollArea),u="horizontal"===e.orientation,c=Z(()=>m("SCROLL_END"),100),[d,m]=(n="hidden",r={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},o.useReducer((e,t)=>{let n=r[e][t];return null!=n?n:e},n));return o.useEffect(()=>{if("idle"===d){let e=window.setTimeout(()=>m("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(e)}},[d,s.scrollHideDelay,m]),o.useEffect(()=>{let e=s.viewport,t=u?"scrollLeft":"scrollTop";if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(m("SCROLL"),c()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[s.viewport,u,m,c]),(0,h.jsx)(l.z,{present:i||"hidden"!==d,children:(0,h.jsx)(R,{"data-state":"hidden"===d?"hidden":"visible",...a,ref:t,onPointerEnter:(0,f.M)(e.onPointerEnter,()=>m("POINTER_ENTER")),onPointerLeave:(0,f.M)(e.onPointerLeave,()=>m("POINTER_LEAVE"))})})}),C=o.forwardRef((e,t)=>{let n=x(E,e.__scopeScrollArea),{forceMount:r,...i}=e,[a,s]=o.useState(!1),u="horizontal"===e.orientation,c=Z(()=>{if(n.viewport){let e=n.viewport.offsetWidth{let{orientation:n="vertical",...r}=e,i=x(E,e.__scopeScrollArea),l=o.useRef(null),a=o.useRef(0),[s,u]=o.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=F(s.viewport,s.content),d={...r,sizes:s,onSizesChange:u,hasThumb:!!(c>0&&c<1),onThumbChange:e=>l.current=e,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:e=>a.current=e};function f(e,t){return function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ltr",o=U(n),i=t||o/2,l=n.scrollbar.paddingStart+i,a=n.scrollbar.size-n.scrollbar.paddingEnd-(o-i),s=n.content-n.viewport;return B([l,a],"ltr"===r?[0,s]:[-1*s,0])(e)}(e,a.current,s,t)}return"horizontal"===n?(0,h.jsx)(P,{...d,ref:t,onThumbPositionChange:()=>{if(i.viewport&&l.current){let e=H(i.viewport.scrollLeft,s,i.dir);l.current.style.transform="translate3d(".concat(e,"px, 0, 0)")}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=f(e,i.dir))}}):"vertical"===n?(0,h.jsx)(L,{...d,ref:t,onThumbPositionChange:()=>{if(i.viewport&&l.current){let e=H(i.viewport.scrollTop,s);l.current.style.transform="translate3d(0, ".concat(e,"px, 0)")}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=f(e))}}):null}),P=o.forwardRef((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,l=x(E,e.__scopeScrollArea),[a,u]=o.useState(),c=o.useRef(null),d=(0,s.e)(t,c,l.onScrollbarXChange);return o.useEffect(()=>{c.current&&u(getComputedStyle(c.current))},[c]),(0,h.jsx)(k,{"data-orientation":"horizontal",...i,ref:d,sizes:n,style:{bottom:0,left:"rtl"===l.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===l.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":U(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(l.viewport){let r=l.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),r>0&&r{c.current&&l.viewport&&a&&r({content:l.viewport.scrollWidth,viewport:l.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:W(a.paddingLeft),paddingEnd:W(a.paddingRight)}})}})}),L=o.forwardRef((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,l=x(E,e.__scopeScrollArea),[a,u]=o.useState(),c=o.useRef(null),d=(0,s.e)(t,c,l.onScrollbarYChange);return o.useEffect(()=>{c.current&&u(getComputedStyle(c.current))},[c]),(0,h.jsx)(k,{"data-orientation":"vertical",...i,ref:d,sizes:n,style:{top:0,right:"ltr"===l.dir?0:void 0,left:"rtl"===l.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":U(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(l.viewport){let r=l.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),r>0&&r{c.current&&l.viewport&&a&&r({content:l.viewport.scrollHeight,viewport:l.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:W(a.paddingTop),paddingEnd:W(a.paddingBottom)}})}})}),[T,M]=p(E),k=o.forwardRef((e,t)=>{let{__scopeScrollArea:n,sizes:r,hasThumb:l,onThumbChange:a,onThumbPointerUp:c,onThumbPointerDown:d,onThumbPositionChange:m,onDragScroll:p,onWheelScroll:g,onResize:v,...b}=e,y=x(E,n),[w,j]=o.useState(null),S=(0,s.e)(t,e=>j(e)),N=o.useRef(null),C=o.useRef(""),R=y.viewport,P=r.content-r.viewport,L=(0,u.W)(g),M=(0,u.W)(m),k=Z(v,10);function O(e){N.current&&p({x:e.clientX-N.current.left,y:e.clientY-N.current.top})}return o.useEffect(()=>{let e=e=>{let t=e.target;(null==w?void 0:w.contains(t))&&L(e,P)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[R,w,P,L]),o.useEffect(M,[r,M]),Y(w,k),Y(y.content,k),(0,h.jsx)(T,{scope:n,scrollbar:w,hasThumb:l,onThumbChange:(0,u.W)(a),onThumbPointerUp:(0,u.W)(c),onThumbPositionChange:M,onThumbPointerDown:(0,u.W)(d),children:(0,h.jsx)(i.WV.div,{...b,ref:S,style:{position:"absolute",...b.style},onPointerDown:(0,f.M)(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),N.current=w.getBoundingClientRect(),C.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",y.viewport&&(y.viewport.style.scrollBehavior="auto"),O(e))}),onPointerMove:(0,f.M)(e.onPointerMove,O),onPointerUp:(0,f.M)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=C.current,y.viewport&&(y.viewport.style.scrollBehavior=""),N.current=null})})})}),O="ScrollAreaThumb",A=o.forwardRef((e,t)=>{let{forceMount:n,...r}=e,o=M(O,e.__scopeScrollArea);return(0,h.jsx)(l.z,{present:n||o.hasThumb,children:(0,h.jsx)(I,{ref:t,...r})})}),I=o.forwardRef((e,t)=>{let{__scopeScrollArea:n,style:r,...l}=e,a=x(O,n),u=M(O,n),{onThumbPositionChange:c}=u,d=(0,s.e)(t,e=>u.onThumbChange(e)),m=o.useRef(),p=Z(()=>{m.current&&(m.current(),m.current=void 0)},100);return o.useEffect(()=>{let e=a.viewport;if(e){let t=()=>{if(p(),!m.current){let t=V(e,c);m.current=t,c()}};return c(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[a.viewport,p,c]),(0,h.jsx)(i.WV.div,{"data-state":u.hasThumb?"visible":"hidden",...l,ref:d,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:(0,f.M)(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;u.onThumbPointerDown({x:n,y:r})}),onPointerUp:(0,f.M)(e.onPointerUp,u.onThumbPointerUp)})});A.displayName=O;var _="ScrollAreaCorner",D=o.forwardRef((e,t)=>{let n=x(_,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&r?(0,h.jsx)(z,{...e,ref:t}):null});D.displayName=_;var z=o.forwardRef((e,t)=>{let{__scopeScrollArea:n,...r}=e,l=x(_,n),[a,s]=o.useState(0),[u,c]=o.useState(0),d=!!(a&&u);return Y(l.scrollbarX,()=>{var e;let t=(null===(e=l.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;l.onCornerHeightChange(t),c(t)}),Y(l.scrollbarY,()=>{var e;let t=(null===(e=l.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;l.onCornerWidthChange(t),s(t)}),d?(0,h.jsx)(i.WV.div,{...r,ref:t,style:{width:a,height:u,position:"absolute",right:"ltr"===l.dir?0:void 0,left:"rtl"===l.dir?0:void 0,bottom:0,...e.style}}):null});function W(e){return e?parseInt(e,10):0}function F(e,t){let n=e/t;return isNaN(n)?0:n}function U(e){let t=F(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-n)*t,18)}function H(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ltr",r=U(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-o,l=t.content-t.viewport,a=function(e,[t,n]){return Math.min(n,Math.max(t,e))}(e,"ltr"===n?[0,l]:[-1*l,0]);return B([0,l],[0,i-r])(a)}function B(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}var V=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n={left:e.scrollLeft,top:e.scrollTop},r=0;return!function o(){let i={left:e.scrollLeft,top:e.scrollTop},l=n.left!==i.left,a=n.top!==i.top;(l||a)&&t(),n=i,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)};function Z(e,t){let n=(0,u.W)(e),r=o.useRef(0);return o.useEffect(()=>()=>window.clearTimeout(r.current),[]),o.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function Y(e,t){let n=(0,u.W)(t);(0,d.b)(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}var $=o.forwardRef(({className:e,children:t,...n},o)=>(0,h.jsxs)(b,{ref:o,className:(0,r.m6)("overflow-hidden",e),...n,children:[t,(0,h.jsx)(D,{}),(0,h.jsx)(q,{orientation:"vertical"})]}));$.displayName=b.displayName;var K=o.forwardRef(({className:e,children:t,...n},o)=>(0,h.jsx)(w,{ref:o,className:(0,r.m6)("size-full rounded-[inherit]",e),...n,children:t}));K.displayName=w.displayName;var q=o.forwardRef(({className:e,orientation:t="vertical",...n},o)=>(0,h.jsx)(j,{ref:o,orientation:t,className:(0,r.m6)("flex select-none data-[state=hidden]:animate-fd-fade-out","vertical"===t&&"h-full w-1.5","horizontal"===t&&"h-1.5 flex-col",e),...n,children:(0,h.jsx)(A,{className:"relative flex-1 rounded-full bg-fd-border"})}));q.displayName=j.displayName},9226:function(e,t,n){"use strict";n.d(t,{v:function(){return o}});var r=n(2374);function o(e){let[t,n]=(0,r.useState)(!1),o=(0,r.useRef)(null),i=(0,r.useCallback)(()=>{o.current&&window.clearTimeout(o.current),o.current=window.setTimeout(()=>{n(!1)},1500),e(),n(!0)},[e]);return(0,r.useEffect)(()=>()=>{o.current&&window.clearTimeout(o.current)},[]),[t,i]}},7844:function(e,t,n){"use strict";n.d(t,{d:function(){return h},S:function(){return f}});var r=n(2170),o=n(9226),i=n(3504),l=n(5487),a=n(193);let s=(0,a.Z)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),u=(0,a.Z)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);var c=n(2374),d=n(7516),f=(0,c.forwardRef)(({className:e,...t},n)=>(0,d.jsx)("pre",{ref:n,className:(0,l.m6)("max-h-[400px] p-4",e),...t,children:t.children}));f.displayName="Pre";var h=(0,c.forwardRef)(({title:e,allowCopy:t=!0,keepBackground:n=!1,icon:o,className:i,...a},s)=>{let u=(0,c.useRef)(null),f=(0,c.useCallback)(()=>{let e=u.current?.getElementsByTagName("pre").item(0);if(!e)return;let t=e.cloneNode(!0);t.querySelectorAll(".nd-copy-ignore").forEach(e=>{e.remove()}),navigator.clipboard.writeText(t.textContent??"")},[]);return(0,d.jsxs)("figure",{ref:s,className:(0,l.m6)("not-prose group fd-codeblock relative my-6 overflow-hidden rounded-lg border bg-fd-secondary/50 text-sm",n&&"fd-codeblock-keep-bg",i),...a,children:[e?(0,d.jsxs)("div",{className:"flex flex-row items-center gap-2 border-b bg-fd-muted px-4 py-1.5",children:[o?(0,d.jsx)("div",{className:"text-fd-muted-foreground [&_svg]:size-3.5",..."string"==typeof o?{dangerouslySetInnerHTML:{__html:o}}:{children:o}}):null,(0,d.jsx)("figcaption",{className:"flex-1 truncate text-fd-muted-foreground",children:e}),t?(0,d.jsx)(m,{className:"-me-2",onCopy:f}):null]}):t&&(0,d.jsx)(m,{className:"absolute right-2 top-2 z-[2] backdrop-blur-sm",onCopy:f}),(0,d.jsxs)(r.xr,{ref:u,dir:"ltr",children:[(0,d.jsx)(r.fK,{children:a.children}),(0,d.jsx)(r.Bl,{orientation:"horizontal"})]})]})});function m({className:e,onCopy:t,...n}){let[r,a]=(0,o.v)(t);return(0,d.jsxs)("button",{type:"button",className:(0,l.m6)((0,i.d)({color:"ghost",className:"transition-all group-hover:opacity-100"}),!r&&"opacity-0",e),"aria-label":"Copy Text",onClick:a,...n,children:[(0,d.jsx)(s,{className:(0,l.m6)("size-3.5 transition-transform",!r&&"scale-0")}),(0,d.jsx)(u,{className:(0,l.m6)("absolute size-3.5 transition-transform",r&&"scale-0")})]})}h.displayName="CodeBlock"},7355:function(e,t,n){"use strict";let r;n.d(t,{J2:function(){return tQ},yk:function(){return t0},xo:function(){return tJ}});var o,i=n(5487),l=n(2374),a=n(312),s=n(6766),u=n(7706),c=n(4356),d=n(931),f=n(7516),h="dismissableLayer.update",m=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),p=l.forwardRef((e,t)=>{var n,r;let{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:u,onPointerDownOutside:p,onFocusOutside:x,onInteractOutside:b,onDismiss:y,...w}=e,E=l.useContext(m),[j,S]=l.useState(null),N=null!==(r=null==j?void 0:j.ownerDocument)&&void 0!==r?r:null===(n=globalThis)||void 0===n?void 0:n.document,[,C]=l.useState({}),R=(0,s.e)(t,e=>S(e)),P=Array.from(E.layers),[L]=[...E.layersWithOutsidePointerEventsDisabled].slice(-1),T=P.indexOf(L),M=j?P.indexOf(j):-1,k=E.layersWithOutsidePointerEventsDisabled.size>0,O=M>=T,A=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,d.W)(e),o=l.useRef(!1),i=l.useRef(()=>{});return l.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){v("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=t,n.addEventListener("click",i.current,{once:!0})):t()}else n.removeEventListener("click",i.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,n=[...E.branches].some(e=>e.contains(t));!O||n||(null==p||p(e),null==b||b(e),e.defaultPrevented||null==y||y())},N),I=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,d.W)(e),o=l.useRef(!1);return l.useEffect(()=>{let e=e=>{e.target&&!o.current&&v("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;[...E.branches].some(e=>e.contains(t))||(null==x||x(e),null==b||b(e),e.defaultPrevented||null==y||y())},N);return!function(e,t=globalThis?.document){let n=(0,d.W)(e);l.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{M!==E.layers.size-1||(null==u||u(e),!e.defaultPrevented&&y&&(e.preventDefault(),y()))},N),l.useEffect(()=>{if(j)return i&&(0===E.layersWithOutsidePointerEventsDisabled.size&&(o=N.body.style.pointerEvents,N.body.style.pointerEvents="none"),E.layersWithOutsidePointerEventsDisabled.add(j)),E.layers.add(j),g(),()=>{i&&1===E.layersWithOutsidePointerEventsDisabled.size&&(N.body.style.pointerEvents=o)}},[j,N,i,E]),l.useEffect(()=>()=>{j&&(E.layers.delete(j),E.layersWithOutsidePointerEventsDisabled.delete(j),g())},[j,E]),l.useEffect(()=>{let e=()=>C({});return document.addEventListener(h,e),()=>document.removeEventListener(h,e)},[]),(0,f.jsx)(c.WV.div,{...w,ref:R,style:{pointerEvents:k?O?"auto":"none":void 0,...e.style},onFocusCapture:(0,a.M)(e.onFocusCapture,I.onFocusCapture),onBlurCapture:(0,a.M)(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:(0,a.M)(e.onPointerDownCapture,A.onPointerDownCapture)})});function g(){let e=new CustomEvent(h);document.dispatchEvent(e)}function v(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?(0,c.jH)(i,l):i.dispatchEvent(l)}p.displayName="DismissableLayer",l.forwardRef((e,t)=>{let n=l.useContext(m),r=l.useRef(null),o=(0,s.e)(t,r);return l.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,f.jsx)(c.WV.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var x=0;function b(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var y="focusScope.autoFocusOnMount",w="focusScope.autoFocusOnUnmount",E={bubbles:!1,cancelable:!0},j=l.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[u,h]=l.useState(null),m=(0,d.W)(o),p=(0,d.W)(i),g=l.useRef(null),v=(0,s.e)(t,e=>h(e)),x=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let e=function(e){if(x.paused||!u)return;let t=e.target;u.contains(t)?g.current=t:C(g.current,{select:!0})},t=function(e){if(x.paused||!u)return;let t=e.relatedTarget;null===t||u.contains(t)||C(g.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&C(u)});return u&&n.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,u,x.paused]),l.useEffect(()=>{if(u){R.add(x);let e=document.activeElement;if(!u.contains(e)){let t=new CustomEvent(y,E);u.addEventListener(y,m),u.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(C(r,{select:t}),document.activeElement!==n)return}(S(u).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&C(u))}return()=>{u.removeEventListener(y,m),setTimeout(()=>{let t=new CustomEvent(w,E);u.addEventListener(w,p),u.dispatchEvent(t),t.defaultPrevented||C(null!=e?e:document.body,{select:!0}),u.removeEventListener(w,p),R.remove(x)},0)}}},[u,m,p,x]);let b=l.useCallback(e=>{if(!n&&!r||x.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,i]=function(e){let t=S(e);return[N(t,e),N(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&C(i,{select:!0})):(e.preventDefault(),n&&C(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,x.paused]);return(0,f.jsx)(c.WV.div,{tabIndex:-1,...a,ref:v,onKeyDown:b})});function S(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function N(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function C(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}j.displayName="FocusScope";var R=(r=[],{add(e){let t=r[0];e!==t&&(null==t||t.pause()),(r=P(r,e)).unshift(e)},remove(e){var t;null===(t=(r=P(r,e))[0])||void 0===t||t.resume()}});function P(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var L=n(7840);let T=["top","right","bottom","left"],M=Math.min,k=Math.max,O=Math.round,A=Math.floor,I=e=>({x:e,y:e}),_={left:"right",right:"left",bottom:"top",top:"bottom"},D={start:"end",end:"start"};function z(e,t){return"function"==typeof e?e(t):e}function W(e){return e.split("-")[0]}function F(e){return e.split("-")[1]}function U(e){return"x"===e?"y":"x"}function H(e){return"y"===e?"height":"width"}function B(e){return["top","bottom"].includes(W(e))?"y":"x"}function V(e){return e.replace(/start|end/g,e=>D[e])}function Z(e){return e.replace(/left|right|bottom|top/g,e=>_[e])}function Y(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function $(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function K(e,t,n){let r,{reference:o,floating:i}=e,l=B(t),a=U(B(t)),s=H(a),u=W(t),c="y"===l,d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,h=o[s]/2-i[s]/2;switch(u){case"top":r={x:d,y:o.y-i.height};break;case"bottom":r={x:d,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:f};break;case"left":r={x:o.x-i.width,y:f};break;default:r={x:o.x,y:o.y}}switch(F(t)){case"start":r[a]-=h*(n&&c?-1:1);break;case"end":r[a]+=h*(n&&c?-1:1)}return r}let q=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=i.filter(Boolean),s=await (null==l.isRTL?void 0:l.isRTL(t)),u=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=K(u,r,s),f=r,h={},m=0;for(let n=0;ne[t]>=0)}async function J(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=W(n),a=F(n),s="y"===B(n),u=["left","top"].includes(l)?-1:1,c=i&&s?-1:1,d=z(t,e),{mainAxis:f,crossAxis:h,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&"number"==typeof m&&(h="end"===a?-1*m:m),s?{x:h*c,y:f*u}:{x:f*u,y:h*c}}function ee(e){return er(e)?(e.nodeName||"").toLowerCase():"#document"}function et(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function en(e){var t;return null==(t=(er(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function er(e){return e instanceof Node||e instanceof et(e).Node}function eo(e){return e instanceof Element||e instanceof et(e).Element}function ei(e){return e instanceof HTMLElement||e instanceof et(e).HTMLElement}function el(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof et(e).ShadowRoot)}function ea(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=ef(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function es(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function eu(e){let t=ec(),n=eo(e)?ef(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function ec(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function ed(e){return["html","body","#document"].includes(ee(e))}function ef(e){return et(e).getComputedStyle(e)}function eh(e){return eo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function em(e){if("html"===ee(e))return e;let t=e.assignedSlot||e.parentNode||el(e)&&e.host||en(e);return el(t)?t.host:t}function ep(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=em(t);return ed(n)?t.ownerDocument?t.ownerDocument.body:t.body:ei(n)&&ea(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=et(o);if(i){let e=eg(l);return t.concat(l,l.visualViewport||[],ea(o)?o:[],e&&n?ep(e):[])}return t.concat(o,ep(o,[],n))}function eg(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ev(e){let t=ef(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=ei(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=O(n)!==i||O(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function ex(e){return eo(e)?e:e.contextElement}function eb(e){let t=ex(e);if(!ei(t))return I(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ev(t),l=(i?O(n.width):n.width)/r,a=(i?O(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let ey=I(0);function ew(e){let t=et(e);return ec()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ey}function eE(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=ex(e),a=I(1);t&&(r?eo(r)&&(a=eb(r)):a=eb(e));let s=(void 0===(o=n)&&(o=!1),r&&(!o||r===et(l))&&o)?ew(l):I(0),u=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,d=i.width/a.x,f=i.height/a.y;if(l){let e=et(l),t=r&&eo(r)?et(r):r,n=e,o=eg(n);for(;o&&r&&t!==n;){let e=eb(o),t=o.getBoundingClientRect(),r=ef(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,f*=e.y,u+=i,c+=l,o=eg(n=et(o))}}return $({width:d,height:f,x:u,y:c})}function ej(e){return eE(en(e)).left+eh(e).scrollLeft}function eS(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=et(e),r=en(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,s=0;if(o){i=o.width,l=o.height;let e=ec();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,s=o.offsetTop)}return{width:i,height:l,x:a,y:s}}(e,n);else if("document"===t)r=function(e){let t=en(e),n=eh(e),r=e.ownerDocument.body,o=k(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=k(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),l=-n.scrollLeft+ej(e),a=-n.scrollTop;return"rtl"===ef(r).direction&&(l+=k(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}(en(e));else if(eo(t))r=function(e,t){let n=eE(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ei(e)?eb(e):I(1),l=e.clientWidth*i.x;return{width:l,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{let n=ew(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return $(r)}function eN(e){return"static"===ef(e).position}function eC(e,t){return ei(e)&&"fixed"!==ef(e).position?t?t(e):e.offsetParent:null}function eR(e,t){let n=et(e);if(es(e))return n;if(!ei(e)){let t=em(e);for(;t&&!ed(t);){if(eo(t)&&!eN(t))return t;t=em(t)}return n}let r=eC(e,t);for(;r&&["table","td","th"].includes(ee(r))&&eN(r);)r=eC(r,t);return r&&ed(r)&&eN(r)&&!eu(r)?n:r||function(e){let t=em(e);for(;ei(t)&&!ed(t);){if(eu(t))return t;if(es(t))break;t=em(t)}return null}(e)||n}let eP=async function(e){let t=this.getOffsetParent||eR,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=ei(t),o=en(t),i="fixed"===n,l=eE(e,!0,i,t),a={scrollLeft:0,scrollTop:0},s=I(0);if(r||!r&&!i){if(("body"!==ee(t)||ea(o))&&(a=eh(t)),r){let e=eE(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=ej(o))}return{x:l.left+a.scrollLeft-s.x,y:l.top+a.scrollTop-s.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},eL={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=en(r),a=!!t&&es(t.floating);if(r===l||a&&i)return n;let s={scrollLeft:0,scrollTop:0},u=I(1),c=I(0),d=ei(r);if((d||!d&&!i)&&(("body"!==ee(r)||ea(l))&&(s=eh(r)),ei(r))){let e=eE(r);u=eb(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+c.x,y:n.y*u.y-s.scrollTop*u.y+c.y}},getDocumentElement:en,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?es(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=ep(e,[],!1).filter(e=>eo(e)&&"body"!==ee(e)),o=null,i="fixed"===ef(e).position,l=i?em(e):e;for(;eo(l)&&!ed(l);){let t=ef(l),n=eu(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||ea(l)&&!n&&function e(t,n){let r=em(t);return!(r===n||!eo(r)||ed(r))&&("fixed"===ef(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):o=t,l=em(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=i[0],a=i.reduce((e,n)=>{let r=eS(t,n,o);return e.top=k(r.top,e.top),e.right=M(r.right,e.right),e.bottom=M(r.bottom,e.bottom),e.left=k(r.left,e.left),e},eS(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:eR,getElementRects:eP,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=ev(e);return{width:t,height:n}},getScale:eb,isElement:eo,isRTL:function(e){return"rtl"===ef(e).direction}},eT=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:l,elements:a,middlewareData:s}=t,{element:u,padding:c=0}=z(e,t)||{};if(null==u)return{};let d=Y(c),f={x:n,y:r},h=U(B(o)),m=H(h),p=await l.getDimensions(u),g="y"===h,v=g?"clientHeight":"clientWidth",x=i.reference[m]+i.reference[h]-f[h]-i.floating[m],b=f[h]-i.reference[h],y=await (null==l.getOffsetParent?void 0:l.getOffsetParent(u)),w=y?y[v]:0;w&&await (null==l.isElement?void 0:l.isElement(y))||(w=a.floating[v]||i.floating[m]);let E=w/2-p[m]/2-1,j=M(d[g?"top":"left"],E),S=M(d[g?"bottom":"right"],E),N=w-p[m]-S,C=w/2-p[m]/2+(x/2-b/2),R=k(j,M(C,N)),P=!s.arrow&&null!=F(o)&&C!==R&&i.reference[m]/2-(C{let r=new Map,o={platform:eL,...n},i={...o.platform,_c:r};return q(e,t,{...o,platform:i})};var ek=n(7372),eO="undefined"!=typeof document?l.useLayoutEffect:l.useEffect;function eA(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!eA(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!eA(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eI(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function e_(e,t){let n=eI(e);return Math.round(t*n)/n}function eD(e){let t=l.useRef(e);return eO(()=>{t.current=e}),t}let ez=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?eT({element:n.current,padding:r}).fn(t):{}:n?eT({element:n,padding:r}).fn(t):{}}}),eW=(e,t)=>{var n;return{...(void 0===(n=e)&&(n=0),{name:"offset",options:n,async fn(e){var t,r;let{x:o,y:i,placement:l,middlewareData:a}=e,s=await J(e,n);return l===(null==(t=a.offset)?void 0:t.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:l}}}}),options:[e,t]}},eF=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:r,placement:o}=e,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=z(n,e),u={x:t,y:r},c=await G(e,s),d=B(W(o)),f=U(d),h=u[f],m=u[d];if(i){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=h+c[e],r=h-c[t];h=k(n,M(h,r))}if(l){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=m+c[e],r=m-c[t];m=k(n,M(m,r))}let p=a.fn({...e,[f]:h,[d]:m});return{...p,data:{x:p.x-t,y:p.y-r}}}}),options:[e,t]}},eU=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{options:n,fn(e){let{x:t,y:r,placement:o,rects:i,middlewareData:l}=e,{offset:a=0,mainAxis:s=!0,crossAxis:u=!0}=z(n,e),c={x:t,y:r},d=B(o),f=U(d),h=c[f],m=c[d],p=z(a,e),g="number"==typeof p?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(s){let e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+g.mainAxis,n=i.reference[f]+i.reference[e]-g.mainAxis;hn&&(h=n)}if(u){var v,x;let e="y"===f?"width":"height",t=["top","left"].includes(W(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(v=l.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(x=l.offset)?void 0:x[d])||0)-(t?g.crossAxis:0);mr&&(m=r)}return{[f]:h,[d]:m}}}),options:[e,t]}},eH=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"flip",options:n,async fn(e){var t,r,o,i,l;let{placement:a,middlewareData:s,rects:u,initialPlacement:c,platform:d,elements:f}=e,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:x=!0,...b}=z(n,e);if(null!=(t=s.arrow)&&t.alignmentOffset)return{};let y=W(a),w=B(c),E=W(c)===c,j=await (null==d.isRTL?void 0:d.isRTL(f.floating)),S=p||(E||!x?[Z(c)]:function(e){let t=Z(e);return[V(e),t,V(t)]}(c)),N="none"!==v;!p&&N&&S.push(...function(e,t,n,r){let o=F(e),i=function(e,t,n){let r=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":if(n)return t?o:r;return t?r:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(W(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(V)))),i}(c,x,v,j));let C=[c,...S],R=await G(e,b),P=[],L=(null==(r=s.flip)?void 0:r.overflows)||[];if(h&&P.push(R[y]),m){let e=function(e,t,n){void 0===n&&(n=!1);let r=F(e),o=U(B(e)),i=H(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Z(l)),[l,Z(l)]}(a,u,j);P.push(R[e[0]],R[e[1]])}if(L=[...L,{placement:a,overflows:P}],!P.every(e=>e<=0)){let e=((null==(o=s.flip)?void 0:o.index)||0)+1,t=C[e];if(t)return{data:{index:e,overflows:L},reset:{placement:t}};let n=null==(i=L.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(g){case"bestFit":{let e=null==(l=L.filter(e=>{if(N){let t=B(e.placement);return t===w||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:l[0];e&&(n=e);break}case"initialPlacement":n=c}if(a!==n)return{reset:{placement:n}}}return{}}}),options:[e,t]}},eB=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"size",options:n,async fn(e){let t,r;let{placement:o,rects:i,platform:l,elements:a}=e,{apply:s=()=>{},...u}=z(n,e),c=await G(e,u),d=W(o),f=F(o),h="y"===B(o),{width:m,height:p}=i.floating;"top"===d||"bottom"===d?(t=d,r=f===(await (null==l.isRTL?void 0:l.isRTL(a.floating))?"start":"end")?"left":"right"):(r=d,t="end"===f?"top":"bottom");let g=p-c.top-c.bottom,v=m-c.left-c.right,x=M(p-c[t],g),b=M(m-c[r],v),y=!e.middlewareData.shift,w=x,E=b;if(h?E=f||y?M(b,v):v:w=f||y?M(x,g):g,y&&!f){let e=k(c.left,0),t=k(c.right,0),n=k(c.top,0),r=k(c.bottom,0);h?E=m-2*(0!==e||0!==t?e+t:k(c.left,c.right)):w=p-2*(0!==n||0!==r?n+r:k(c.top,c.bottom))}await s({...e,availableWidth:E,availableHeight:w});let j=await l.getDimensions(a.floating);return m!==j.width||p!==j.height?{reset:{rects:!0}}:{}}}),options:[e,t]}},eV=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"hide",options:n,async fn(e){let{rects:t}=e,{strategy:r="referenceHidden",...o}=z(n,e);switch(r){case"referenceHidden":{let n=X(await G(e,{...o,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:Q(n)}}}case"escaped":{let n=X(await G(e,{...o,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:Q(n)}}}default:return{}}}}),options:[e,t]}},eZ=(e,t)=>({...ez(e),options:[e,t]});var eY=l.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,f.jsx)(c.WV.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,f.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eY.displayName="Arrow";var e$=n(2656),eK="Popper",[eq,eG]=(0,u.b)(eK),[eX,eQ]=eq(eK),eJ=e=>{let{__scopePopper:t,children:n}=e,[r,o]=l.useState(null);return(0,f.jsx)(eX,{scope:t,anchor:r,onAnchorChange:o,children:n})};eJ.displayName=eK;var e0="PopperAnchor",e1=l.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...o}=e,i=eQ(e0,n),a=l.useRef(null),u=(0,s.e)(t,a);return l.useEffect(()=>{i.onAnchorChange((null==r?void 0:r.current)||a.current)}),r?null:(0,f.jsx)(c.WV.div,{...o,ref:u})});e1.displayName=e0;var e2="PopperContent",[e6,e3]=eq(e2),e4=l.forwardRef((e,t)=>{var n,r,o,i,a,u,h,m;let{__scopePopper:p,side:g="bottom",sideOffset:v=0,align:x="center",alignOffset:b=0,arrowPadding:y=0,avoidCollisions:w=!0,collisionBoundary:E=[],collisionPadding:j=0,sticky:S="partial",hideWhenDetached:N=!1,updatePositionStrategy:C="optimized",onPlaced:R,...P}=e,L=eQ(e2,p),[T,O]=l.useState(null),I=(0,s.e)(t,e=>O(e)),[_,D]=l.useState(null),z=function(e){let[t,n]=l.useState(void 0);return(0,e$.b)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(_),W=null!==(h=null==z?void 0:z.width)&&void 0!==h?h:0,F=null!==(m=null==z?void 0:z.height)&&void 0!==m?m:0,U="number"==typeof j?j:{top:0,right:0,bottom:0,left:0,...j},H=Array.isArray(E)?E:[E],B=H.length>0,V={padding:U,boundary:H.filter(e9),altBoundary:B},{refs:Z,floatingStyles:Y,placement:$,isPositioned:K,middlewareData:q}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:u,open:c}=e,[d,f]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=l.useState(r);eA(h,r)||m(r);let[p,g]=l.useState(null),[v,x]=l.useState(null),b=l.useCallback(e=>{e!==j.current&&(j.current=e,g(e))},[]),y=l.useCallback(e=>{e!==S.current&&(S.current=e,x(e))},[]),w=i||p,E=a||v,j=l.useRef(null),S=l.useRef(null),N=l.useRef(d),C=null!=u,R=eD(u),P=eD(o),L=l.useCallback(()=>{if(!j.current||!S.current)return;let e={placement:t,strategy:n,middleware:h};P.current&&(e.platform=P.current),eM(j.current,S.current,e).then(e=>{let t={...e,isPositioned:!0};T.current&&!eA(N.current,t)&&(N.current=t,ek.flushSync(()=>{f(t)}))})},[h,t,n,P]);eO(()=>{!1===c&&N.current.isPositioned&&(N.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[c]);let T=l.useRef(!1);eO(()=>(T.current=!0,()=>{T.current=!1}),[]),eO(()=>{if(w&&(j.current=w),E&&(S.current=E),w&&E){if(R.current)return R.current(w,E,L);L()}},[w,E,L,R,C]);let M=l.useMemo(()=>({reference:j,floating:S,setReference:b,setFloating:y}),[b,y]),k=l.useMemo(()=>({reference:w,floating:E}),[w,E]),O=l.useMemo(()=>{let e={position:n,left:0,top:0};if(!k.floating)return e;let t=e_(k.floating,d.x),r=e_(k.floating,d.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...eI(k.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,k.floating,d.x,d.y]);return l.useMemo(()=>({...d,update:L,refs:M,elements:k,floatingStyles:O}),[d,L,M,k,O])}({strategy:"fixed",placement:g+("center"!==x?"-"+x:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n{i&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)});let f=c&&s?function(e,t){let n,r=null,o=en(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function l(a,s){void 0===a&&(a=!1),void 0===s&&(s=1),i();let{left:u,top:c,width:d,height:f}=e.getBoundingClientRect();if(a||t(),!d||!f)return;let h=A(c),m=A(o.clientWidth-(u+d)),p={rootMargin:-h+"px "+-m+"px "+-A(o.clientHeight-(c+f))+"px "+-A(u)+"px",threshold:k(0,M(1,s))||1},g=!0;function v(e){let t=e[0].intersectionRatio;if(t!==s){if(!g)return l();t?l(!1,t):n=setTimeout(()=>{l(!1,1e-7)},1e3)}g=!1}try{r=new IntersectionObserver(v,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(v,p)}r.observe(e)}(!0),i}(c,n):null,h=-1,m=null;a&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),c&&!u&&m.observe(c),m.observe(t));let p=u?eE(e):null;return u&&function t(){let r=eE(e);p&&(r.x!==p.x||r.y!==p.y||r.width!==p.width||r.height!==p.height)&&n(),p=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{i&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=m)||e.disconnect(),m=null,u&&cancelAnimationFrame(o)}}(...t,{animationFrame:"always"===C})},elements:{reference:L.anchor},middleware:[eW({mainAxis:v+F,alignmentAxis:b}),w&&eF({mainAxis:!0,crossAxis:!1,limiter:"partial"===S?eU():void 0,...V}),w&&eH({...V}),eB({...V,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:l}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(o,"px")),a.setProperty("--radix-popper-anchor-width","".concat(i,"px")),a.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),_&&eZ({element:_,padding:y}),te({arrowWidth:W,arrowHeight:F}),N&&eV({strategy:"referenceHidden",...V})]}),[G,X]=tt($),Q=(0,d.W)(R);(0,e$.b)(()=>{K&&(null==Q||Q())},[K,Q]);let J=null===(n=q.arrow)||void 0===n?void 0:n.x,ee=null===(r=q.arrow)||void 0===r?void 0:r.y,et=(null===(o=q.arrow)||void 0===o?void 0:o.centerOffset)!==0,[er,eo]=l.useState();return(0,e$.b)(()=>{T&&eo(window.getComputedStyle(T).zIndex)},[T]),(0,f.jsx)("div",{ref:Z.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:K?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:er,"--radix-popper-transform-origin":[null===(i=q.transformOrigin)||void 0===i?void 0:i.x,null===(a=q.transformOrigin)||void 0===a?void 0:a.y].join(" "),...(null===(u=q.hide)||void 0===u?void 0:u.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,f.jsx)(e6,{scope:p,placedSide:G,onArrowChange:D,arrowX:J,arrowY:ee,shouldHideArrow:et,children:(0,f.jsx)(c.WV.div,{"data-side":G,"data-align":X,...P,ref:I,style:{...P.style,animation:K?void 0:"none"}})})})});e4.displayName=e2;var e5="PopperArrow",e7={top:"bottom",right:"left",bottom:"top",left:"right"},e8=l.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=e3(e5,n),i=e7[o.placedSide];return(0,f.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,f.jsx)(eY,{...r,ref:t,style:{...r.style,display:"block"}})})});function e9(e){return null!==e}e8.displayName=e5;var te=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:s,middlewareData:u}=t,c=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,m]=tt(a),p={start:"0%",center:"50%",end:"100%"}[m],g=(null!==(i=null===(r=u.arrow)||void 0===r?void 0:r.x)&&void 0!==i?i:0)+d/2,v=(null!==(l=null===(o=u.arrow)||void 0===o?void 0:o.y)&&void 0!==l?l:0)+f/2,x="",b="";return"bottom"===h?(x=c?p:"".concat(g,"px"),b="".concat(-f,"px")):"top"===h?(x=c?p:"".concat(g,"px"),b="".concat(s.floating.height+f,"px")):"right"===h?(x="".concat(-f,"px"),b=c?p:"".concat(v,"px")):"left"===h&&(x="".concat(s.floating.width+f,"px"),b=c?p:"".concat(v,"px")),{data:{x,y:b}}}});function tt(e){let[t,n="center"]=e.split("-");return[t,n]}var tn=l.forwardRef((e,t)=>{var n,r;let{container:o,...i}=e,[a,s]=l.useState(!1);(0,e$.b)(()=>s(!0),[]);let u=o||a&&(null===(r=globalThis)||void 0===r?void 0:null===(n=r.document)||void 0===n?void 0:n.body);return u?ek.createPortal((0,f.jsx)(c.WV.div,{...i,ref:t}),u):null});tn.displayName="Portal";var tr=n(3301),to=n(9984),ti=n(5960),tl=n(922),ta=n(4539),ts=n(7118),tu=n(6622),tc=(0,n(679)._)(),td=function(){},tf=l.forwardRef(function(e,t){var n=l.useRef(null),r=l.useState({onScrollCapture:td,onWheelCapture:td,onTouchMoveCapture:td}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,h=e.sideCar,m=e.noIsolation,p=e.inert,g=e.allowPinchZoom,v=e.as,x=e.gapMode,b=(0,ta._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),y=(0,tu.q)([n,t]),w=(0,ta.pi)((0,ta.pi)({},b),o);return l.createElement(l.Fragment,null,d&&l.createElement(h,{sideCar:tc,removeScrollBar:c,shards:f,noIsolation:m,inert:p,setCallbacks:i,allowPinchZoom:!!g,lockRef:n,gapMode:x}),a?l.cloneElement(l.Children.only(s),(0,ta.pi)((0,ta.pi)({},w),{ref:y})):l.createElement(void 0===v?"div":v,(0,ta.pi)({},w,{className:u,ref:y}),s))});tf.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},tf.classNames={fullWidth:ts.zi,zeroRight:ts.pF};var th=n(9937),tm=n(9718),tp=n(7323),tg=!1;if("undefined"!=typeof window)try{var tv=Object.defineProperty({},"passive",{get:function(){return tg=!0,!0}});window.addEventListener("test",tv,tv),window.removeEventListener("test",tv,tv)}catch(e){tg=!1}var tx=!!tg&&{passive:!1},tb=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},ty=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),tw(e,r)){var o=tE(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},tw=function(e,t){return"v"===e?tb(t,"overflowY"):tb(t,"overflowX")},tE=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},tj=function(e,t,n,r,o){var i,l=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),a=l*r,s=n.target,u=t.contains(s),c=!1,d=a>0,f=0,h=0;do{var m=tE(e,s),p=m[0],g=m[1]-m[2]-l*p;(p||g)&&tw(e,s)&&(f+=g,h+=p),s instanceof ShadowRoot?s=s.host:s=s.parentNode}while(!u&&s!==document.body||u&&(t.contains(s)||t===s));return d&&(o&&1>Math.abs(f)||!o&&a>f)?c=!0:!d&&(o&&1>Math.abs(h)||!o&&-a>h)&&(c=!0),c},tS=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},tN=function(e){return[e.deltaX,e.deltaY]},tC=function(e){return e&&"current"in e?e.current:e},tR=0,tP=[],tL=(0,th.L)(tc,function(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),o=l.useState(tR++)[0],i=l.useState(tp.Ws)[0],a=l.useRef(e);l.useEffect(function(){a.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(0,ta.ev)([e.lockRef.current],(e.shards||[]).map(tC),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=l.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var o,i=tS(e),l=n.current,s="deltaX"in e?e.deltaX:l[0]-i[0],u="deltaY"in e?e.deltaY:l[1]-i[1],c=e.target,d=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=ty(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=ty(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(s||u)&&(r.current=o),!o)return!0;var h=r.current||o;return tj(h,t,e,"h"===h?s:u,!0)},[]),u=l.useCallback(function(e){if(tP.length&&tP[tP.length-1]===i){var n="deltaY"in e?tN(e):tS(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(a.current.shards||[]).map(tC).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?s(e,o[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=l.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=l.useCallback(function(e){n.current=tS(e),r.current=void 0},[]),f=l.useCallback(function(t){c(t.type,tN(t),t.target,s(t,e.lockRef.current))},[]),h=l.useCallback(function(t){c(t.type,tS(t),t.target,s(t,e.lockRef.current))},[]);l.useEffect(function(){return tP.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",u,tx),document.addEventListener("touchmove",u,tx),document.addEventListener("touchstart",d,tx),function(){tP=tP.filter(function(e){return e!==i}),document.removeEventListener("wheel",u,tx),document.removeEventListener("touchmove",u,tx),document.removeEventListener("touchstart",d,tx)}},[]);var m=e.removeScrollBar,p=e.inert;return l.createElement(l.Fragment,null,p?l.createElement(i,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,m?l.createElement(tm.jp,{gapMode:e.gapMode}):null)}),tT=l.forwardRef(function(e,t){return l.createElement(tf,(0,ta.pi)({},e,{ref:t,sideCar:tL}))});tT.classNames=tf.classNames;var tM="Popover",[tk,tO]=(0,u.b)(tM,[eG]),tA=eG(),[tI,t_]=tk(tM),tD=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,s=tA(t),u=l.useRef(null),[c,d]=l.useState(!1),[h=!1,m]=(0,ti.T)({prop:r,defaultProp:o,onChange:i});return(0,f.jsx)(eJ,{...s,children:(0,f.jsx)(tI,{scope:t,contentId:(0,L.M)(),triggerRef:u,open:h,onOpenChange:m,onOpenToggle:l.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:c,onCustomAnchorAdd:l.useCallback(()=>d(!0),[]),onCustomAnchorRemove:l.useCallback(()=>d(!1),[]),modal:a,children:n})})};tD.displayName=tM;var tz="PopoverAnchor";l.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=t_(tz,n),i=tA(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:s}=o;return l.useEffect(()=>(a(),()=>s()),[a,s]),(0,f.jsx)(e1,{...i,...r,ref:t})}).displayName=tz;var tW="PopoverTrigger",tF=l.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=t_(tW,n),i=tA(n),l=(0,s.e)(t,o.triggerRef),u=(0,f.jsx)(c.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":tX(o.open),...r,ref:l,onClick:(0,a.M)(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?u:(0,f.jsx)(e1,{asChild:!0,...i,children:u})});tF.displayName=tW;var tU="PopoverPortal",[tH,tB]=tk(tU,{forceMount:void 0}),tV=e=>{let{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=t_(tU,t);return(0,f.jsx)(tH,{scope:t,forceMount:n,children:(0,f.jsx)(tr.z,{present:n||i.open,children:(0,f.jsx)(tn,{asChild:!0,container:o,children:r})})})};tV.displayName=tU;var tZ="PopoverContent",tY=l.forwardRef((e,t)=>{let n=tB(tZ,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=t_(tZ,e.__scopePopover);return(0,f.jsx)(tr.z,{present:r||i.open,children:i.modal?(0,f.jsx)(t$,{...o,ref:t}):(0,f.jsx)(tK,{...o,ref:t})})});tY.displayName=tZ;var t$=l.forwardRef((e,t)=>{let n=t_(tZ,e.__scopePopover),r=l.useRef(null),o=(0,s.e)(t,r),i=l.useRef(!1);return l.useEffect(()=>{let e=r.current;if(e)return(0,tl.Ry)(e)},[]),(0,f.jsx)(tT,{as:to.g7,allowPinchZoom:!0,children:(0,f.jsx)(tq,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,a.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),i.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,a.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;i.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,a.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),tK=l.forwardRef((e,t)=>{let n=t_(tZ,e.__scopePopover),r=l.useRef(!1),o=l.useRef(!1);return(0,f.jsx)(tq,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,l;null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current||null===(l=n.triggerRef.current)||void 0===l||l.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{var i,l;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"!==t.detail.originalEvent.type||(o.current=!0));let a=t.target;(null===(l=n.triggerRef.current)||void 0===l?void 0:l.contains(a))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),tq=l.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,...h}=e,m=t_(tZ,n),g=tA(n);return l.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:b()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:b()),x++,()=>{1===x&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),x--}},[]),(0,f.jsx)(j,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,f.jsx)(p,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:d,onEscapeKeyDown:s,onPointerDownOutside:u,onFocusOutside:c,onDismiss:()=>m.onOpenChange(!1),children:(0,f.jsx)(e4,{"data-state":tX(m.open),role:"dialog",id:m.contentId,...g,...h,ref:t,style:{...h.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),tG="PopoverClose";function tX(e){return e?"open":"closed"}l.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=t_(tG,n);return(0,f.jsx)(c.WV.button,{type:"button",...r,ref:t,onClick:(0,a.M)(e.onClick,()=>o.onOpenChange(!1))})}).displayName=tG,l.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=tA(n);return(0,f.jsx)(e8,{...o,...r,ref:t})}).displayName="PopoverArrow";var tQ=tD,tJ=tF,t0=l.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>(0,f.jsx)(tV,{children:(0,f.jsx)(tY,{ref:o,align:t,sideOffset:n,side:"bottom",className:(0,i.m6)("z-50 min-w-[220px] max-w-[98vw] rounded-lg border bg-fd-popover p-2 text-sm text-fd-popover-foreground shadow-md data-[state=closed]:animate-fd-popover-out data-[state=open]:animate-fd-popover-in",e),...r})}));t0.displayName=tY.displayName},6919:function(e,t,n){"use strict";n.d(t,{K:function(){return i}});var r=n(2374),o=n(8296);function i(e){let t=o._z(),[n,i]=(0,r.useState)([0,0]);return(0,r.useLayoutEffect)(()=>{let n=e.current;if(0===t.length||!n||0===n.clientHeight){i([0,0]);return}let r=Number.MAX_VALUE,o=0;for(let e of t){let t=n.querySelector(`a[href="#${e}"]`);if(!t)continue;let i=getComputedStyle(t);r=Math.min(r,t.offsetTop+parseFloat(i.paddingTop)),o=Math.max(o,t.offsetTop+t.clientHeight-parseFloat(i.paddingBottom))}i([r,o-r])},[t,e]),n}},2722:function(e,t,n){"use strict";n.d(t,{zF:function(){return C},Fw:function(){return P},wy:function(){return R}});var r=n(5487),o=n(2374),i=n(312),l=n(7706),a=n(5960),s=n(2656),u=n(6766),c=n(4356),d=n(3301),f=n(7840),h=n(7516),m="Collapsible",[p,g]=(0,l.b)(m),[v,x]=p(m),b=o.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:l,onOpenChange:s,...u}=e,[d=!1,m]=(0,a.T)({prop:r,defaultProp:i,onChange:s});return(0,h.jsx)(v,{scope:n,disabled:l,contentId:(0,f.M)(),open:d,onOpenToggle:o.useCallback(()=>m(e=>!e),[m]),children:(0,h.jsx)(c.WV.div,{"data-state":N(d),"data-disabled":l?"":void 0,...u,ref:t})})});b.displayName=m;var y="CollapsibleTrigger",w=o.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,o=x(y,n);return(0,h.jsx)(c.WV.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":N(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:(0,i.M)(e.onClick,o.onOpenToggle)})});w.displayName=y;var E="CollapsibleContent",j=o.forwardRef((e,t)=>{let{forceMount:n,...r}=e,o=x(E,e.__scopeCollapsible);return(0,h.jsx)(d.z,{present:n||o.open,children:e=>{let{present:n}=e;return(0,h.jsx)(S,{...r,ref:t,present:n})}})});j.displayName=E;var S=o.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:r,children:i,...l}=e,a=x(E,n),[d,f]=o.useState(r),m=o.useRef(null),p=(0,u.e)(t,m),g=o.useRef(0),v=g.current,b=o.useRef(0),y=b.current,w=a.open||d,j=o.useRef(w),S=o.useRef();return o.useEffect(()=>{let e=requestAnimationFrame(()=>j.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,s.b)(()=>{let e=m.current;if(e){S.current=S.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();g.current=t.height,b.current=t.width,j.current||(e.style.transitionDuration=S.current.transitionDuration,e.style.animationName=S.current.animationName),f(r)}},[a.open,r]),(0,h.jsx)(c.WV.div,{"data-state":N(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!w,...l,ref:p,style:{"--radix-collapsible-content-height":v?"".concat(v,"px"):void 0,"--radix-collapsible-content-width":y?"".concat(y,"px"):void 0,...e.style},children:w&&i})});function N(e){return e?"open":"closed"}var C=b,R=w,P=(0,o.forwardRef)(({children:e,...t},n)=>(0,h.jsx)(j,{ref:n,...t,className:(0,r.m6)("overflow-hidden [--radix-collapsible-content-height:0px] data-[state=closed]:animate-fd-collapsible-up data-[state=open]:animate-fd-collapsible-down",t.className),children:e}));P.displayName=j.displayName},6230:function(e,t,n){"use strict";n.d(t,{CodeBlock:function(){return r.d},Pre:function(){return r.S}});var r=n(7844);n(2170),n(9226),n(3504),n(4918)},2186:function(e,t,n){"use strict";n.r(t),n.d(t,{File:function(){return m},Files:function(){return h},Folder:function(){return p}});var r=n(2722),o=n(5487);n(4918);var i=n(2771),l=n(193);let a=(0,l.Z)("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]),s=(0,l.Z)("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]),u=(0,l.Z)("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);var c=n(2374),d=n(7516),f=(0,i.j)("flex flex-row items-center gap-2 rounded-md px-2 py-1.5 text-sm hover:bg-fd-accent hover:text-fd-accent-foreground [&_svg]:size-4");function h(e){let{className:t,...n}=e;return(0,d.jsx)("div",{className:(0,o.m6)("not-prose rounded-md border bg-fd-card p-2",t),...n,children:n.children})}function m(e){let{name:t,icon:n=(0,d.jsx)(a,{}),className:r,...i}=e;return(0,d.jsxs)("div",{className:(0,o.m6)(f({className:r})),...i,children:[n,t]})}function p(e){let{name:t,defaultOpen:n=!1,...i}=e,[l,a]=(0,c.useState)(n);return(0,d.jsxs)(r.zF,{open:l,onOpenChange:a,...i,children:[(0,d.jsxs)(r.wy,{className:(0,o.m6)(f({className:"w-full"})),children:[l?(0,d.jsx)(s,{}):(0,d.jsx)(u,{}),t]}),(0,d.jsx)(r.Fw,{children:(0,d.jsx)("div",{className:"ms-2 flex flex-col border-l pl-2",children:i.children})})]})}},3197:function(e,t,n){"use strict";n.d(t,{ImageZoom:function(){return O}});var r=n(546);n(4918);var o=n(2313),i=n.n(o),l=n(2374),a=n(7372);let s=(e,t)=>e===t?.tagName?.toUpperCase?.(),u=e=>s("DIV",e)||s("SPAN",e),c=e=>s("IMG",e),d=e=>e.complete&&0!==e.naturalHeight,f=e=>s("SVG",e),h=({height:e,offset:t,width:n})=>Math.min((window.innerWidth-2*t)/n,(window.innerHeight-2*t)/e),m=({containerHeight:e,containerWidth:t,offset:n,targetHeight:r,targetWidth:o})=>{let i=h({height:r,offset:n,width:o}),l=o>r?o/t:r/e;return i>1?l:i*l},p=({containerHeight:e,containerWidth:t,hasScalableSrc:n,offset:r,targetHeight:o,targetWidth:i})=>e&&t?!n&&o&&i?m({containerHeight:e,containerWidth:t,offset:r,targetHeight:o,targetWidth:i}):h({height:e,offset:r,width:t}):1,g=/url(?:\(['"]?)(.*?)(?:['"]?\))/,v=e=>{if(e){if(c(e))return e.currentSrc;if(u(e)){let t=window.getComputedStyle(e).backgroundImage;if(t)return g.exec(t)?.[1]}}},x=e=>{if(e)return c(e)?e.alt??void 0:e.getAttribute("aria-label")??void 0},b=({containerHeight:e,containerLeft:t,containerTop:n,containerWidth:r,hasScalableSrc:o,offset:i,targetHeight:l,targetWidth:a})=>{let s=p({containerHeight:e,containerWidth:r,hasScalableSrc:o,offset:i,targetHeight:l,targetWidth:a});return{top:n,left:t,width:r*s,height:e*s,transform:`translate(0,0) scale(${1/s})`}},y=({position:e,relativeNum:t})=>{let n=parseFloat(e);return e.endsWith("%")?t*n/100:n},w=({containerHeight:e,containerLeft:t,containerTop:n,containerWidth:r,hasScalableSrc:o,objectFit:i,objectPosition:l,offset:a,targetHeight:s,targetWidth:u})=>{if("scale-down"===i&&(i=u<=r&&s<=e?"none":"contain"),"cover"===i||"contain"===i){let c=r/u,d=e/s,f="cover"===i?Math.max(c,d):Math.min(c,d),[h="50%",m="50%"]=l.split(" "),g=y({position:h,relativeNum:r-u*f}),v=y({position:m,relativeNum:e-s*f}),x=p({containerHeight:s*f,containerWidth:u*f,hasScalableSrc:o,offset:a,targetHeight:s,targetWidth:u});return{top:n+v,left:t+g,width:u*f*x,height:s*f*x,transform:`translate(0,0) scale(${1/x})`}}if("none"===i){let[i="50%",c="50%"]=l.split(" "),d=y({position:i,relativeNum:r-u}),f=y({position:c,relativeNum:e-s}),h=p({containerHeight:s,containerWidth:u,hasScalableSrc:o,offset:a,targetHeight:s,targetWidth:u});return{top:n+f,left:t+d,width:u*h,height:s*h,transform:`translate(0,0) scale(${1/h})`}}if("fill"!==i)return{};{let t=Math.max(r/u,e/s),n=p({containerHeight:s*t,containerWidth:u*t,hasScalableSrc:o,offset:a,targetHeight:s,targetWidth:u});return{width:r*n,height:e*n,transform:`translate(0,0) scale(${1/n})`}}},E=({backgroundPosition:e,backgroundSize:t,containerHeight:n,containerLeft:r,containerTop:o,containerWidth:i,hasScalableSrc:l,offset:a,targetHeight:s,targetWidth:u})=>{if("cover"===t||"contain"===t){let c=i/u,d=n/s,f="cover"===t?Math.max(c,d):Math.min(c,d),[h="50%",m="50%"]=e.split(" "),g=y({position:h,relativeNum:i-u*f}),v=y({position:m,relativeNum:n-s*f}),x=p({containerHeight:s*f,containerWidth:u*f,hasScalableSrc:l,offset:a,targetHeight:s,targetWidth:u});return{top:o+v,left:r+g,width:u*f*x,height:s*f*x,transform:`translate(0,0) scale(${1/x})`}}if("auto"===t){let[t="50%",c="50%"]=e.split(" "),d=y({position:t,relativeNum:i-u}),f=y({position:c,relativeNum:n-s}),h=p({containerHeight:s,containerWidth:u,hasScalableSrc:l,offset:a,targetHeight:s,targetWidth:u});return{top:o+f,left:r+d,width:u*h,height:s*h,transform:`translate(0,0) scale(${1/h})`}}{let[c="50%",d="50%"]=t.split(" "),f=Math.min(y({position:c,relativeNum:i})/u,y({position:d,relativeNum:n})/s),[h="50%",m="50%"]=e.split(" "),g=y({position:h,relativeNum:i-u*f}),v=y({position:m,relativeNum:n-s*f}),x=p({containerHeight:s*f,containerWidth:u*f,hasScalableSrc:l,offset:a,targetHeight:s,targetWidth:u});return{top:o+v,left:r+g,width:u*f*x,height:s*f*x,transform:`translate(0,0) scale(${1/x})`}}},j=/\.svg$/i,S=({hasZoomImg:e,imgSrc:t,isSvg:n,isZoomed:r,loadedImgEl:o,offset:i,shouldRefresh:l,targetEl:a})=>{let s=n||t?.slice?.(0,18)==="data:image/svg+xml"||e||!!(t&&j.test(t)),c=a.getBoundingClientRect(),d=window.getComputedStyle(a),f=null!=o&&u(a),h=Object.assign({},b({containerHeight:c.height,containerLeft:c.left,containerTop:c.top,containerWidth:c.width,hasScalableSrc:s,offset:i,targetHeight:o?.naturalHeight||c.height,targetWidth:o?.naturalWidth||c.width}),null==o||f?void 0:w({containerHeight:c.height,containerLeft:c.left,containerTop:c.top,containerWidth:c.width,hasScalableSrc:s,objectFit:d.objectFit,objectPosition:d.objectPosition,offset:i,targetHeight:o?.naturalHeight||c.height,targetWidth:o?.naturalWidth||c.width}),f?E({backgroundPosition:d.backgroundPosition,backgroundSize:d.backgroundSize,containerHeight:c.height,containerLeft:c.left,containerTop:c.top,containerWidth:c.width,hasScalableSrc:s,offset:i,targetHeight:o?.naturalHeight||c.height,targetWidth:o?.naturalWidth||c.width}):void 0);if(r){let e=window.innerWidth/2,t=window.innerHeight/2,n=parseFloat(String(h.left||0))+parseFloat(String(h.width||0))/2,r=parseFloat(String(h.top||0))+parseFloat(String(h.height||0))/2;l&&(h.transitionDuration="0.01ms"),h.transform=`translate(${e-n}px,${t-r}px) scale(1)`}return h},N=e=>{if(!e)return{};if(!f(e))return{height:e.offsetHeight,left:e.offsetLeft,width:e.offsetWidth,top:e.offsetTop};{let t=e.parentElement,n=e.getBoundingClientRect();if(!t)return{height:n.height,left:n.left,width:n.width,top:n.top};{let e=t.getBoundingClientRect();return{height:n.height,left:e.left-n.left,top:e.top-n.top,width:n.width}}}},C=e=>{let t="-zoom",n=["clip-path","fill","mask","marker-start","marker-mid","marker-end"],r=new Map;if(e.hasAttribute("id")){let n=e.id,o=n+t;r.set(n,o),e.id=o}e.querySelectorAll("[id]").forEach(e=>{let n=e.id,o=n+t;r.set(n,o),e.id=o}),r.forEach((t,r)=>{let o=`url(#${r})`,i=`url(#${t})`,l=n.map(e=>`[${e}="${o}"]`).join(", ");e.querySelectorAll(l).forEach(e=>{n.forEach(t=>{e.getAttribute(t)===o&&e.setAttribute(t,i)})})}),e.querySelectorAll("style").forEach(e=>{r.forEach((t,n)=>{e.textContent&&(e.textContent=e.textContent.replaceAll(`#${n}`,`#${t}`))})})},R=["img","svg",'[role="img"]',"[data-zoom]"].map(e=>`${e}:not([aria-hidden="true"])`).join(","),P={overflow:"",width:""};function L(e){return l.createElement(T,{...e})}class T extends l.Component{constructor(){super(...arguments),this.state={id:"",isZoomImgLoaded:!1,loadedImgEl:void 0,modalState:"UNLOADED",shouldRefresh:!1,styleGhost:{}},this.refContent=l.createRef(),this.refDialog=l.createRef(),this.refModalContent=l.createRef(),this.refModalImg=l.createRef(),this.refWrap=l.createRef(),this.imgEl=null,this.isScaling=!1,this.prevBodyAttrs=P,this.styleModalImg={},this.handleModalStateChange=e=>{let{modalState:t}=this.state;"LOADING"!==e&&"LOADING"===t?(this.loadZoomImg(),window.addEventListener("resize",this.handleResize,{passive:!0}),window.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),window.addEventListener("touchmove",this.handleTouchMove,{passive:!0}),window.addEventListener("touchend",this.handleTouchEnd,{passive:!0}),window.addEventListener("touchcancel",this.handleTouchCancel,{passive:!0}),document.addEventListener("keydown",this.handleKeyDown,!0)):"LOADED"!==e&&"LOADED"===t?window.addEventListener("wheel",this.handleWheel,{passive:!0}):"UNLOADING"!==e&&"UNLOADING"===t?(this.ensureImgTransitionEnd(),window.removeEventListener("wheel",this.handleWheel),window.removeEventListener("touchstart",this.handleTouchStart),window.removeEventListener("touchmove",this.handleTouchMove),window.removeEventListener("touchend",this.handleTouchEnd),window.removeEventListener("touchcancel",this.handleTouchCancel),document.removeEventListener("keydown",this.handleKeyDown,!0)):"UNLOADED"!==e&&"UNLOADED"===t&&(this.bodyScrollEnable(),window.removeEventListener("resize",this.handleResize),this.refModalImg.current?.removeEventListener?.("transitionend",this.handleImgTransitionEnd),this.refDialog.current?.close?.())},this.getDialogContainer=()=>{let e=document.querySelector("[data-rmiz-portal]");return null==e&&((e=document.createElement("div")).setAttribute("data-rmiz-portal",""),document.body.appendChild(e)),e},this.setId=()=>{let e=()=>Math.random().toString(16).slice(-4);this.setState({id:e()+e()+e()})},this.setAndTrackImg=()=>{let e=this.refContent.current;!e||(this.imgEl=e.querySelector(R),this.imgEl?(this.contentNotFoundChangeObserver?.disconnect?.(),this.imgEl.addEventListener("load",this.handleImgLoad),this.imgEl.addEventListener("click",this.handleZoom),this.state.loadedImgEl||this.handleImgLoad(),this.imgElResizeObserver=new ResizeObserver(e=>{let t=e[0];t?.target&&(this.imgEl=t.target,this.setState({styleGhost:N(this.imgEl)}))}),this.imgElResizeObserver.observe(this.imgEl),this.contentChangeObserver||(this.contentChangeObserver=new MutationObserver(()=>{this.setState({styleGhost:N(this.imgEl)})}),this.contentChangeObserver.observe(e,{attributes:!0,childList:!0,subtree:!0}))):this.contentNotFoundChangeObserver||(this.contentNotFoundChangeObserver=new MutationObserver(this.setAndTrackImg),this.contentNotFoundChangeObserver.observe(e,{childList:!0,subtree:!0})))},this.handleIfZoomChanged=e=>{let{isZoomed:t}=this.props;!e&&t?this.zoom():e&&!t&&this.unzoom()},this.handleImgLoad=()=>{let e=v(this.imgEl);if(!e)return;let t=new Image;c(this.imgEl)&&(t.sizes=this.imgEl.sizes,t.srcset=this.imgEl.srcset),t.src=e;let n=()=>{this.setState({loadedImgEl:t,styleGhost:N(this.imgEl)})};t.decode().then(n).catch(()=>{if(d(t)){n();return}t.onload=n})},this.handleZoom=()=>{this.hasImage()&&this.props.onZoomChange?.(!0)},this.handleUnzoom=()=>{this.props.onZoomChange?.(!1)},this.handleDialogCancel=e=>{e.preventDefault()},this.handleDialogClick=e=>{(e.target===this.refModalContent.current||e.target===this.refModalImg.current)&&this.handleUnzoom()},this.handleKeyDown=e=>{("Escape"===e.key||27===e.keyCode)&&(e.preventDefault(),e.stopPropagation(),this.handleUnzoom())},this.handleWheel=e=>{e.ctrlKey||(e.stopPropagation(),queueMicrotask(()=>{this.handleUnzoom()}))},this.handleTouchStart=e=>{if(e.touches.length>1){this.isScaling=!0;return}1===e.changedTouches.length&&e.changedTouches[0]&&(this.touchYStart=e.changedTouches[0].screenY)},this.handleTouchMove=e=>{let t=window.visualViewport?.scale??1;this.props.canSwipeToUnzoom&&!this.isScaling&&t<=1&&null!=this.touchYStart&&e.changedTouches[0]&&(this.touchYEnd=e.changedTouches[0].screenY,Math.abs(Math.max(this.touchYStart,this.touchYEnd)-Math.min(this.touchYStart,this.touchYEnd))>this.props.swipeToUnzoomThreshold&&(this.touchYStart=void 0,this.touchYEnd=void 0,this.handleUnzoom()))},this.handleTouchEnd=()=>{this.isScaling=!1,this.touchYStart=void 0,this.touchYEnd=void 0},this.handleTouchCancel=()=>{this.isScaling=!1,this.touchYStart=void 0,this.touchYEnd=void 0},this.handleResize=()=>{this.setState({shouldRefresh:!0})},this.hasImage=()=>this.imgEl&&(this.state.loadedImgEl||f(this.imgEl))&&"none"!==window.getComputedStyle(this.imgEl).display,this.zoom=()=>{this.bodyScrollDisable(),this.refDialog.current?.showModal?.(),this.refModalImg.current?.addEventListener?.("transitionend",this.handleImgTransitionEnd),this.setState({modalState:"LOADING"})},this.unzoom=()=>{this.setState({modalState:"UNLOADING"})},this.handleImgTransitionEnd=()=>{clearTimeout(this.timeoutTransitionEnd),"LOADING"===this.state.modalState?this.setState({modalState:"LOADED"}):"UNLOADING"===this.state.modalState&&this.setState({shouldRefresh:!1,modalState:"UNLOADED"})},this.ensureImgTransitionEnd=()=>{if(this.refModalImg.current){let e=window.getComputedStyle(this.refModalImg.current).transitionDuration,t=parseFloat(e);if(t){let n=t*(e.endsWith("ms")?1:1e3)+50;this.timeoutTransitionEnd=setTimeout(this.handleImgTransitionEnd,n)}}},this.bodyScrollDisable=()=>{this.prevBodyAttrs={overflow:document.body.style.overflow,width:document.body.style.width};let e=document.body.clientWidth;document.body.style.overflow="hidden",document.body.style.width=`${e}px`},this.bodyScrollEnable=()=>{document.body.style.width=this.prevBodyAttrs.width,document.body.style.overflow=this.prevBodyAttrs.overflow,this.prevBodyAttrs=P},this.loadZoomImg=()=>{let{props:{zoomImg:e}}=this,t=e?.src;if(t){let n=new Image;n.sizes=e?.sizes??"",n.srcset=e?.srcSet??"",n.src=t;let r=()=>{this.setState({isZoomImgLoaded:!0})};n.decode().then(r).catch(()=>{if(d(n)){r();return}n.onload=r})}},this.UNSAFE_handleSvg=()=>{let{imgEl:e,refModalImg:t,styleModalImg:n}=this;if(f(e)){let r=e.cloneNode(!0);C(r),r.style.width=`${n.width||0}px`,r.style.height=`${n.height||0}px`,r.addEventListener("click",this.handleUnzoom),t.current?.firstChild?.remove?.(),t.current?.appendChild?.(r)}}}render(){let{handleDialogCancel:e,handleDialogClick:t,handleUnzoom:n,handleZoom:r,imgEl:o,props:{a11yNameButtonUnzoom:i,a11yNameButtonZoom:s,children:d,classDialog:h,IconUnzoom:m,IconZoom:p,isZoomed:g,wrapElement:b,ZoomContent:y,zoomImg:w,zoomMargin:E},refContent:j,refDialog:N,refModalContent:C,refModalImg:R,refWrap:P,state:{id:L,isZoomImgLoaded:T,loadedImgEl:M,modalState:k,shouldRefresh:O,styleGhost:A}}=this,I=`rmiz-modal-${L}`,_=`rmiz-modal-img-${L}`,D=u(o),z=c(o),W=f(o),F=x(o),U=v(o),H=z?o.sizes:void 0,B=z?o.srcset:void 0,V=!!w?.src,Z=this.hasImage(),Y=F?`${s}: ${F}`:s,$="LOADING"===k||"LOADED"===k,K=Z?"found":"not-found",q="UNLOADED"===k||"UNLOADING"===k?"hidden":"visible";this.styleModalImg=Z?S({hasZoomImg:V,imgSrc:U,isSvg:W,isZoomed:g&&$,loadedImgEl:M,offset:E,shouldRefresh:O,targetEl:o}):{};let G=null;if(Z){let e=z||D?l.createElement("img",{alt:F,sizes:H,src:U,srcSet:B,...T&&"LOADED"===k?w:{},"data-rmiz-modal-img":"",height:this.styleModalImg.height||void 0,id:_,ref:R,style:this.styleModalImg,width:this.styleModalImg.width||void 0}):W?l.createElement("div",{"data-rmiz-modal-img":!0,ref:R,style:this.styleModalImg}):null,t=l.createElement("button",{"aria-label":i,"data-rmiz-btn-unzoom":"",onClick:n,type:"button"},l.createElement(m,null));G=y?l.createElement(y,{buttonUnzoom:t,modalState:k,img:e,onUnzoom:n}):l.createElement(l.Fragment,null,e,t)}return l.createElement(b,{"aria-owns":I,"data-rmiz":"",ref:P},l.createElement(b,{"data-rmiz-content":K,ref:j,style:{visibility:"UNLOADED"===k?"visible":"hidden"}},d),Z&&l.createElement(b,{"data-rmiz-ghost":"",style:A},l.createElement("button",{"aria-label":Y,"data-rmiz-btn-zoom":"",onClick:r,type:"button"},l.createElement(p,null))),Z&&a.createPortal(l.createElement("dialog",{"aria-labelledby":_,"aria-modal":"true",className:h,"data-rmiz-modal":"",id:I,onClick:t,onClose:n,onCancel:e,ref:N,role:"dialog"},l.createElement("div",{"data-rmiz-modal-overlay":q}),l.createElement("div",{"data-rmiz-modal-content":"",ref:C},G)),this.getDialogContainer()))}componentDidMount(){this.setId(),this.setAndTrackImg(),this.handleImgLoad(),this.UNSAFE_handleSvg()}componentWillUnmount(){"UNLOADED"!==this.state.modalState&&this.bodyScrollEnable(),this.contentChangeObserver?.disconnect?.(),this.contentNotFoundChangeObserver?.disconnect?.(),this.imgElResizeObserver?.disconnect?.(),this.imgEl?.removeEventListener?.("load",this.handleImgLoad),this.imgEl?.removeEventListener?.("click",this.handleZoom),this.refModalImg.current?.removeEventListener?.("transitionend",this.handleImgTransitionEnd),window.removeEventListener("wheel",this.handleWheel),window.removeEventListener("touchstart",this.handleTouchStart),window.removeEventListener("touchmove",this.handleTouchMove),window.removeEventListener("touchend",this.handleTouchEnd),window.removeEventListener("touchcancel",this.handleTouchCancel),window.removeEventListener("resize",this.handleResize),document.removeEventListener("keydown",this.handleKeyDown,!0)}componentDidUpdate(e,t){this.handleModalStateChange(t.modalState),this.UNSAFE_handleSvg(),this.handleIfZoomChanged(e.isZoomed)}}function M(e){let[t,n]=l.useState(!1);return l.createElement(L,{...e,isZoomed:t,onZoomChange:n})}T.defaultProps={a11yNameButtonUnzoom:"Minimize image",a11yNameButtonZoom:"Expand image",canSwipeToUnzoom:!0,IconUnzoom:function(){return l.createElement("svg",{"aria-hidden":"true","data-rmiz-btn-unzoom-icon":!0,fill:"currentColor",focusable:"false",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M 14.144531 1.148438 L 9 6.292969 L 9 3 L 8 3 L 8 8 L 13 8 L 13 7 L 9.707031 7 L 14.855469 1.851563 Z M 8 8 L 3 8 L 3 9 L 6.292969 9 L 1.148438 14.144531 L 1.851563 14.855469 L 7 9.707031 L 7 13 L 8 13 Z"}))},IconZoom:function(){return l.createElement("svg",{"aria-hidden":"true","data-rmiz-btn-zoom-icon":!0,fill:"currentColor",focusable:"false",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M 9 1 L 9 2 L 12.292969 2 L 2 12.292969 L 2 9 L 1 9 L 1 14 L 6 14 L 6 13 L 2.707031 13 L 13 2.707031 L 13 6 L 14 6 L 14 1 Z"}))},swipeToUnzoomThreshold:10,wrapElement:"div",zoomMargin:0},n(3318);var k=n(7516);function O(e){var t;let{zoomInProps:n,children:o,...l}=e;return(0,k.jsx)(M,{zoomMargin:20,wrapElement:"span",zoomImg:{src:"string"==typeof(t=l.src)?t:"default"in t?t.default.src:t.src,sizes:void 0,...n},children:null!=o?o:(0,k.jsx)(i(),{sizes:r.wW,...l})})}},289:function(e,t,n){"use strict";n.d(t,{RootToggle:function(){return f}});var r=n(7355),o=n(546),i=n(9602),l=n(5487);n(4918);var a=n(342),s=n(2374),u=n(5758),c=n(8302),d=n(7516);function f(e){var t;let{options:n,...f}=e,[m,p]=(0,s.useState)(!1),{closeOnRedirect:g}=(0,i.A)(),v=(0,c.usePathname)(),x=null!==(t=n.find(e=>(0,o.zh)(e.url,v,!0)))&&void 0!==t?t:n[0],b=(0,s.useCallback)(()=>{g.current=!1,p(!1)},[g]);return(0,d.jsxs)(r.J2,{open:m,onOpenChange:p,children:[(0,d.jsxs)(r.xo,{...f,className:(0,l.m6)("-mx-2 flex flex-row items-center gap-2.5 rounded-lg p-2 hover:bg-fd-accent/50 hover:text-fd-accent-foreground",f.className),children:[(0,d.jsx)(h,{...x}),(0,d.jsx)(a.Z,{className:"size-4 text-fd-muted-foreground md:me-1.5"})]}),(0,d.jsx)(r.yk,{className:"w-[var(--radix-popover-trigger-width)] overflow-hidden p-0",children:n.map(e=>{var t;return(0,d.jsx)(u.default,{href:e.url,onClick:b,...e.props,className:(0,l.m6)("flex w-full flex-row items-center gap-2.5 p-2",x===e?"bg-fd-accent text-fd-accent-foreground":"hover:bg-fd-accent/50",null===(t=e.props)||void 0===t?void 0:t.className),children:(0,d.jsx)(h,{...e})},e.url)})})]})}function h(e){let{title:t,icon:n,description:r}=e;return(0,d.jsxs)(d.Fragment,{children:[n,(0,d.jsxs)("div",{className:"flex-1 text-left",children:[(0,d.jsx)("p",{className:"text-sm font-medium",children:t}),(0,d.jsx)("p",{className:"text-xs text-fd-muted-foreground",children:r})]})]})}},6511:function(e,t,n){"use strict";n.d(t,{Tab:function(){return et},Tabs:function(){return J}});var r=n(5487),o=n(4918),i=n(2374),l=n(312),a=n(7706),s=n(6766),u=n(9984),c=n(7516),d=n(7840),f=n(4356),h=n(931),m=n(5960),p=n(8454),g="rovingFocusGroup.onEntryFocus",v={bubbles:!1,cancelable:!0},x="RovingFocusGroup",[b,y,w]=function(e){let t=e+"CollectionProvider",[n,r]=(0,a.b)(t),[o,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:n}=e,r=i.useRef(null),l=i.useRef(new Map).current;return(0,c.jsx)(o,{scope:t,itemMap:l,collectionRef:r,children:n})};d.displayName=t;let f=e+"CollectionSlot",h=i.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=l(f,n),i=(0,s.e)(t,o.collectionRef);return(0,c.jsx)(u.g7,{ref:i,children:r})});h.displayName=f;let m=e+"CollectionItemSlot",p="data-radix-collection-item",g=i.forwardRef((e,t)=>{let{scope:n,children:r,...o}=e,a=i.useRef(null),d=(0,s.e)(t,a),f=l(m,n);return i.useEffect(()=>(f.itemMap.set(a,{ref:a,...o}),()=>void f.itemMap.delete(a))),(0,c.jsx)(u.g7,{[p]:"",ref:d,children:r})});return g.displayName=m,[{Provider:d,Slot:h,ItemSlot:g},function(t){let n=l(e+"CollectionConsumer",t);return i.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(p,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}(x),[E,j]=(0,a.b)(x,[w]),[S,N]=E(x),C=i.forwardRef((e,t)=>(0,c.jsx)(b.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,c.jsx)(b.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,c.jsx)(R,{...e,ref:t})})}));C.displayName=x;var R=i.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:u,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:x,onEntryFocus:b,preventScrollOnEntryFocus:w=!1,...E}=e,j=i.useRef(null),N=(0,s.e)(t,j),C=(0,p.gm)(a),[R=null,P]=(0,m.T)({prop:u,defaultProp:d,onChange:x}),[L,T]=i.useState(!1),k=(0,h.W)(b),O=y(n),A=i.useRef(!1),[I,_]=i.useState(0);return i.useEffect(()=>{let e=j.current;if(e)return e.addEventListener(g,k),()=>e.removeEventListener(g,k)},[k]),(0,c.jsx)(S,{scope:n,orientation:r,dir:C,loop:o,currentTabStopId:R,onItemFocus:i.useCallback(e=>P(e),[P]),onItemShiftTab:i.useCallback(()=>T(!0),[]),onFocusableItemAdd:i.useCallback(()=>_(e=>e+1),[]),onFocusableItemRemove:i.useCallback(()=>_(e=>e-1),[]),children:(0,c.jsx)(f.WV.div,{tabIndex:L||0===I?-1:0,"data-orientation":r,...E,ref:N,style:{outline:"none",...e.style},onMouseDown:(0,l.M)(e.onMouseDown,()=>{A.current=!0}),onFocus:(0,l.M)(e.onFocus,e=>{let t=!A.current;if(e.target===e.currentTarget&&t&&!L){let t=new CustomEvent(g,v);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=O().filter(e=>e.focusable);M([e.find(e=>e.active),e.find(e=>e.id===R),...e].filter(Boolean).map(e=>e.ref.current),w)}}A.current=!1}),onBlur:(0,l.M)(e.onBlur,()=>T(!1))})})}),P="RovingFocusGroupItem",L=i.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...s}=e,u=(0,d.M)(),h=a||u,m=N(P,n),p=m.currentTabStopId===h,g=y(n),{onFocusableItemAdd:v,onFocusableItemRemove:x}=m;return i.useEffect(()=>{if(r)return v(),()=>x()},[r,v,x]),(0,c.jsx)(b.ItemSlot,{scope:n,id:h,focusable:r,active:o,children:(0,c.jsx)(f.WV.span,{tabIndex:p?0:-1,"data-orientation":m.orientation,...s,ref:t,onMouseDown:(0,l.M)(e.onMouseDown,e=>{r?m.onItemFocus(h):e.preventDefault()}),onFocus:(0,l.M)(e.onFocus,()=>m.onItemFocus(h)),onKeyDown:(0,l.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){m.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let o=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return T[o]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=g().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&o.reverse();let i=o.indexOf(e.currentTarget);o=m.loop?(n=o,r=i+1,n.map((e,t)=>n[(r+t)%n.length])):o.slice(i+1)}setTimeout(()=>M(o))}})})})});L.displayName=P;var T={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function M(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var k=n(3301),O="Tabs",[A,I]=(0,a.b)(O,[j]),_=j(),[D,z]=A(O),W=i.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:l="horizontal",dir:a,activationMode:s="automatic",...u}=e,h=(0,p.gm)(a),[g,v]=(0,m.T)({prop:r,onChange:o,defaultProp:i});return(0,c.jsx)(D,{scope:n,baseId:(0,d.M)(),value:g,onValueChange:v,orientation:l,dir:h,activationMode:s,children:(0,c.jsx)(f.WV.div,{dir:h,"data-orientation":l,...u,ref:t})})});W.displayName=O;var F="TabsList",U=i.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...o}=e,i=z(F,n),l=_(n);return(0,c.jsx)(C,{asChild:!0,...l,orientation:i.orientation,dir:i.dir,loop:r,children:(0,c.jsx)(f.WV.div,{role:"tablist","aria-orientation":i.orientation,...o,ref:t})})});U.displayName=F;var H="TabsTrigger",B=i.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,a=z(H,n),s=_(n),u=Y(a.baseId,r),d=$(a.baseId,r),h=r===a.value;return(0,c.jsx)(L,{asChild:!0,...s,focusable:!o,active:h,children:(0,c.jsx)(f.WV.button,{type:"button",role:"tab","aria-selected":h,"aria-controls":d,"data-state":h?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:u,...i,ref:t,onMouseDown:(0,l.M)(e.onMouseDown,e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():a.onValueChange(r)}),onKeyDown:(0,l.M)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&a.onValueChange(r)}),onFocus:(0,l.M)(e.onFocus,()=>{let e="manual"!==a.activationMode;h||o||!e||a.onValueChange(r)})})})});B.displayName=H;var V="TabsContent",Z=i.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,forceMount:o,children:l,...a}=e,s=z(V,n),u=Y(s.baseId,r),d=$(s.baseId,r),h=r===s.value,m=i.useRef(h);return i.useEffect(()=>{let e=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,c.jsx)(k.z,{present:o||h,children:n=>{let{present:r}=n;return(0,c.jsx)(f.WV.div,{"data-state":h?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":u,hidden:!r,id:d,tabIndex:0,...a,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:r&&l})}})});function Y(e,t){return"".concat(e,"-trigger-").concat(t)}function $(e,t){return"".concat(e,"-content-").concat(t)}Z.displayName=V,(0,o.r)({},{Tabs:()=>K,TabsContent:()=>X,TabsList:()=>q,TabsTrigger:()=>G});var K=i.forwardRef((e,t)=>(0,c.jsx)(W,{ref:t,...e,className:(0,r.m6)("flex flex-col overflow-hidden rounded-xl border bg-fd-card",e.className)}));K.displayName="Tabs";var q=i.forwardRef((e,t)=>(0,c.jsx)(U,{ref:t,...e,className:(0,r.m6)("flex flex-row items-end gap-4 overflow-x-auto bg-fd-secondary px-4 text-fd-muted-foreground",e.className)}));q.displayName="TabsList";var G=i.forwardRef((e,t)=>(0,c.jsx)(B,{ref:t,...e,className:(0,r.m6)("whitespace-nowrap border-b border-transparent py-2 text-sm font-medium transition-colors hover:text-fd-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=active]:border-fd-primary data-[state=active]:text-fd-primary",e.className)}));G.displayName="TabsTrigger";var X=i.forwardRef((e,t)=>(0,c.jsx)(Z,{ref:t,...e,className:(0,r.m6)("p-4",e.className)}));X.displayName="TabsContent";var Q=new Map;function J(e){let{groupId:t,items:n=[],persist:o=!1,defaultIndex:l=0,...a}=e,s=(0,i.useMemo)(()=>n.map(e=>ee(e)),[n]),[u,d]=(0,i.useState)(s[l]);(0,i.useLayoutEffect)(()=>{if(!t)return;let e=e=>{s.includes(e)&&d(e)},n=o?localStorage.getItem(t):sessionStorage.getItem(t);return n&&e(n),!function(e,t){var n;let r=null!==(n=Q.get(e))&&void 0!==n?n:[];r.push(t),Q.set(e,r)}(t,e),()=>{!function(e,t){var n;let r=null!==(n=Q.get(e))&&void 0!==n?n:[];Q.set(e,r.filter(e=>e!==t))}(t,e)}},[t,o,s]);let f=(0,i.useCallback)(e=>{if(t){var n;null===(n=Q.get(t))||void 0===n||n.forEach(t=>{t(e)}),o?localStorage.setItem(t,e):sessionStorage.setItem(t,e)}else d(e)},[t,o]);return(0,c.jsxs)(K,{value:u,onValueChange:f,...a,className:(0,r.m6)("my-4",a.className),children:[(0,c.jsx)(q,{children:s.map((e,t)=>(0,c.jsx)(G,{value:e,children:n[t]},e))}),a.children]})}function ee(e){return e.toLowerCase().replace(/\s/,"-")}function et(e){let{value:t,className:n,...o}=e;return(0,c.jsx)(X,{value:ee(t),className:(0,r.m6)("prose-no-margin [&>figure:only-child]:-m-4 [&>figure:only-child]:rounded-none [&>figure:only-child]:border-none",n),...o})}},5749:function(e,t,n){"use strict";n.d(t,{DynamicSidebar:function(){return $},LanguageToggle:function(){return O},LinksMenu:function(){return L},Sidebar:function(){return V},SidebarCollapseTrigger:function(){return q},SubNav:function(){return K},ThemeToggle:function(){return M},TreeContextProvider:function(){return A.G}});var r=n(7355),o=n(546),i=n(8212),l=n(5558),a=n(2722),s=n(3504),u=n(5487),c=n(2374),d=n(6402),f=n(7516),h=n(5758),m=(0,c.forwardRef)(({href:e="#",external:t=!(e.startsWith("/")||e.startsWith("#")||e.startsWith(".")),prefetch:n,replace:r,...o},i)=>t?(0,f.jsx)("a",{ref:i,href:e,rel:"noreferrer noopener",target:"_blank",...o,children:o.children}):(0,f.jsx)(h.default,{ref:i,href:e,prefetch:n,replace:r,...o}));m.displayName="Link",n(6384);var p=n(342),g=n(8302),v=n(2771),x=n(1694),b=n(193);let y=(0,b.Z)("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),w=(0,b.Z)("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);var E=n(3358);function j(e){let{setOpenSearch:t}=(0,i.A)();return(0,f.jsx)("button",{type:"button",className:(0,u.m6)((0,s.d)({size:"icon",color:"ghost",className:e.className})),"data-search":"","aria-label":"Open Search",onClick:(0,c.useCallback)(()=>{t(!0)},[t]),children:(0,f.jsx)(d.Z,{})})}function S(e){let{hotKey:t,setOpenSearch:n}=(0,i.A)(),{text:r}=(0,l.Q)();return(0,f.jsxs)("button",{type:"button","data-search-full":"",...e,className:(0,u.m6)("inline-flex items-center gap-2 rounded-full border bg-fd-secondary/50 p-1.5 text-sm text-fd-muted-foreground transition-colors hover:bg-fd-accent hover:text-fd-accent-foreground",e.className),onClick:(0,c.useCallback)(()=>{n(!0)},[n]),children:[(0,f.jsx)(d.Z,{className:"ms-1 size-4"}),r.search,(0,f.jsx)("div",{className:"ms-auto inline-flex gap-0.5",children:t.map((e,t)=>(0,f.jsx)("kbd",{className:"rounded-md border bg-fd-background px-1.5",children:e.display},t))})]})}function N({transparentMode:e="none",...t}){let[n,r]=(0,c.useState)("none"!==e);return(0,c.useEffect)(()=>{if("top"!==e)return;let t=()=>{r(window.scrollY<10)};return t(),window.addEventListener("scroll",t),()=>{window.removeEventListener("scroll",t)}},[e]),(0,f.jsx)("header",{...t,className:(0,u.m6)("sticky top-0 z-40 border-b transition-colors",n?"border-transparent":"border-fd-foreground/10 bg-fd-background/60 backdrop-blur-md",t.className)})}function C({title:e,url:t="/"}){return(0,f.jsx)(m,{href:t,className:"inline-flex items-center gap-2 font-semibold",children:e})}var R=(0,v.j)("-m-2 inline-flex items-center gap-1 p-2 text-fd-muted-foreground transition-colors [&_svg]:size-4",{variants:{active:{true:"text-fd-primary",false:"hover:text-fd-accent-foreground"}},defaultVariants:{active:!1}});function P({item:e,on:t="nav",className:n,...r}){let i=(0,g.usePathname)();if(e.on&&"all"!==e.on&&e.on!==t)return null;if("custom"===e.type)return e.children;if("menu"===e.type&&"nav"===t)return(0,f.jsxs)(L,{items:e.items,className:(0,u.m6)(R({className:n})),...r,children:[e.icon,e.text,(0,f.jsx)(p.Z,{className:"ms-auto !size-3.5"})]});if("menu"===e.type)return(0,f.jsxs)(a.zF,{className:"flex flex-col",children:[(0,f.jsxs)(a.wy,{className:(0,u.m6)((0,s.D)({className:n}),"group/link"),...r,children:[e.icon,e.text,(0,f.jsx)(p.Z,{className:"ms-auto transition-transform group-data-[state=closed]/link:-rotate-90"})]}),(0,f.jsx)(a.Fw,{children:(0,f.jsx)("div",{className:"ms-2 flex flex-col border-s py-2 ps-2",children:e.items.map((e,t)=>(0,f.jsx)(P,{item:e,on:"menu"},t))})})]});if("button"===e.type)return(0,f.jsxs)(m,{href:e.url,external:e.external,className:(0,u.m6)((0,s.d)({color:"secondary"}),"gap-1.5 [&_svg]:size-4",n),children:[e.icon,e.text]});let l=e.active??"url",c="none"!==l&&(0,o.zh)(e.url,i,"nested-url"===l);return"icon"===e.type&&"nav"===t?(0,f.jsx)(m,{"aria-label":e.label,href:e.url,external:e.external,className:(0,u.m6)((0,s.d)({size:"icon",color:"ghost",className:n})),...r,children:e.icon}):(0,f.jsxs)(m,{href:e.url,external:e.external,className:(0,u.m6)("nav"===t?R({active:c}):(0,s.D)({active:c}),n),...r,children:["menu"===t?e.icon:null,e.text]})}function L({items:e,footer:t,...n}){let[o,i]=(0,c.useState)(!1),l=(0,g.usePathname)();return(0,x.p)(l,()=>{i(!1)}),(0,f.jsxs)(r.J2,{open:o,onOpenChange:i,children:[(0,f.jsx)(r.xo,{...n}),(0,f.jsxs)(r.yk,{className:"flex flex-col",children:[e.map((e,t)=>(0,f.jsx)(P,{item:e,on:"menu"},t)),t]})]})}var T=(0,v.j)("size-6 rounded-full p-1 text-fd-muted-foreground",{variants:{dark:{true:"dark:bg-fd-accent dark:text-fd-accent-foreground",false:"bg-fd-accent text-fd-accent-foreground dark:bg-transparent dark:text-fd-muted-foreground"}}});function M({className:e,...t}){let{setTheme:n,resolvedTheme:r}=(0,E.F)(),o=(0,c.useCallback)(()=>{n("dark"===r?"light":"dark")},[n,r]);return(0,f.jsxs)("button",{type:"button",className:(0,u.m6)("inline-flex items-center rounded-full border p-0.5",e),"data-theme-toggle":"","aria-label":"Toggle Theme",onClick:o,...t,children:[(0,f.jsx)(y,{className:(0,u.m6)(T({dark:!1}))}),(0,f.jsx)(w,{className:(0,u.m6)(T({dark:!0}))})]})}let k=(0,b.Z)("Languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);function O(e){let t=(0,l.Q)(),[n,o]=(0,c.useState)(!1);if(!t.locales)throw Error("Missing ``");return(0,f.jsxs)(r.J2,{open:n,onOpenChange:o,...e,children:[(0,f.jsx)(r.xo,{"aria-label":t.text.chooseLanguage,className:(0,u.m6)((0,s.d)({size:"icon",color:"ghost"})),children:(0,f.jsx)(k,{})}),(0,f.jsxs)(r.yk,{className:"flex flex-col p-1",children:[(0,f.jsx)("p",{className:"mb-1 p-2 text-xs font-medium text-fd-muted-foreground",children:t.text.chooseLanguage}),t.locales.map(e=>(0,f.jsx)("button",{type:"button",className:(0,u.m6)("rounded-md p-2 text-left text-sm transition-colors duration-100",e.locale===t.locale?"bg-fd-primary/10 font-medium text-fd-primary":"hover:bg-fd-accent hover:text-fd-accent-foreground"),onClick:()=>{t.onChange?.(e.locale)},children:e.name},e.locale))]})]})}var A=n(3880),I=n(2170),_=n(9602);n(4918);var D=n(4557);let z=(0,b.Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),W=(0,b.Z)("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]),F=(0,b.Z)("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]),U=(0,b.Z)("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);var H={Folder:function(e){var t;let{item:n,level:r}=e,{defaultOpenLevel:i,prefetch:l}=(0,c.useContext)(B),d=(0,g.usePathname)(),h=void 0!==n.index&&(0,o.zh)(n.index.url,d,!1),v=(0,c.useMemo)(()=>(0,o.$M)(n.children,d),[n.children,d]),b=h||v||(null!==(t=n.defaultOpen)&&void 0!==t?t:i>=r),[y,w]=(0,c.useState)(b);(0,x.p)(b,e=>{e&&w(e)});let E=(0,c.useCallback)(e=>{(e.target.hasAttribute("data-icon")||h)&&(w(e=>!e),e.preventDefault())},[h]),j=(0,f.jsxs)(f.Fragment,{children:[n.icon,n.name,(0,f.jsx)(p.Z,{"data-icon":!0,className:(0,u.m6)("ms-auto transition-transform",!y&&"-rotate-90")})]});return(0,f.jsxs)(a.zF,{open:y,onOpenChange:w,children:[n.index?(0,f.jsx)(m,{className:(0,u.m6)((0,s.D)({active:h})),href:n.index.url,onClick:E,prefetch:l,children:j}):(0,f.jsx)(a.wy,{className:(0,u.m6)((0,s.D)({active:h})),children:j}),(0,f.jsx)(a.Fw,{children:(0,f.jsx)(Y,{className:"ms-2 flex flex-col border-s py-2 ps-2",items:n.children,level:r})})]})},Separator:function(e){let{item:t}=e;return(0,f.jsx)("p",{className:"mb-2 mt-8 px-2 font-medium first:mt-0",children:t.name})},Item:function(e){let{item:{icon:t,external:n=!1,url:r,name:i}}=e,l=(0,g.usePathname)(),a=(0,o.zh)(r,l,!1),{prefetch:d}=(0,c.useContext)(B);return(0,f.jsxs)(m,{href:r,external:n,className:(0,u.m6)((0,s.D)({active:a})),prefetch:d,children:[null!=t?t:n?(0,f.jsx)(U,{}):null,i]})}},B=(0,c.createContext)({defaultOpenLevel:0,components:H,prefetch:!0});function V(e){var t,n,r;let{components:o,defaultOpenLevel:l=0,items:a,prefetch:s=!0,...d}=e,h=(0,i.A)().enabled&&!d.hideSearch,m=(0,c.useMemo)(()=>({defaultOpenLevel:l,components:{...H,...o},prefetch:s}),[o,l,s]);return(0,f.jsx)(B.Provider,{value:m,children:(0,f.jsxs)(D.wb,{id:"nd-sidebar",blockScrollingWidth:768,...d.aside,className:(0,u.m6)("fixed z-30 flex flex-col bg-fd-card text-sm md:sticky md:top-0 md:h-dvh md:w-[var(--fd-c-sidebar)] md:min-w-[var(--fd-sidebar-width)] md:border-e md:ps-[calc(var(--fd-c-sidebar)-var(--fd-sidebar-width))]","max-md:inset-0 max-md:bg-fd-background/80 max-md:pt-14 max-md:text-[15px] max-md:backdrop-blur-md max-md:data-[open=false]:hidden",null===(t=d.aside)||void 0===t?void 0:t.className),children:[h||d.banner?(0,f.jsxs)("div",{...d.bannerProps,className:(0,u.m6)("flex flex-col gap-1 px-4 pt-2 md:px-3 md:pt-4",null===(n=d.bannerProps)||void 0===n?void 0:n.className),children:[d.banner,h?(0,f.jsx)(S,{className:"rounded-lg max-md:hidden"}):null]}):null,(0,f.jsx)(Z,{items:a}),d.footer?(0,f.jsx)("div",{...d.footerProps,className:(0,u.m6)("flex flex-row items-center border-t py-1 max-md:px-4 md:mx-3",null===(r=d.footerProps)||void 0===r?void 0:r.className),children:d.footer}):null]})})}function Z(e){let{items:t}=e,{root:n}=(0,A.W)();return(0,f.jsx)(I.xr,{className:"flex-1",children:(0,f.jsxs)(I.fK,{style:{maskImage:"linear-gradient(to bottom, transparent 2px, white 24px)"},children:[t.length>0?(0,f.jsx)("div",{className:"flex flex-col px-4 pt-6 md:hidden",children:t.map((e,t)=>(0,f.jsx)(P,{item:e,on:"menu"},t))}):null,(0,f.jsx)(Y,{items:n.children,className:"px-4 py-6 md:px-3"})]})})}function Y(e){let{items:t,level:n=0,...r}=e,{components:o}=(0,c.useContext)(B);return(0,f.jsx)("div",{...r,children:t.map((e,t)=>{let r="".concat(e.type,"_").concat(t.toString());switch(e.type){case"separator":return(0,f.jsx)(o.Separator,{item:e},r);case"folder":return(0,f.jsx)(o.Folder,{item:e,level:n+1},r);default:return(0,f.jsx)(o.Item,{item:e},e.url)}})})}function $(e){let{collapsed:t,setCollapsed:n}=(0,_.A)(),[r,o]=(0,c.useState)(!1),i=(0,c.useRef)(0),l=(0,c.useRef)(0),a=(0,c.useCallback)(()=>{n(e=>!e)},[n]);(0,x.p)(t,()=>{o(!1),l.current=Date.now()+150});let d=(0,c.useCallback)(e=>{"touch"===e.pointerType||l.current>Date.now()||(window.clearTimeout(i.current),o(!0))},[]),h=(0,c.useCallback)(e=>{"touch"!==e.pointerType&&(window.clearTimeout(i.current),i.current=window.setTimeout(()=>{o(!1),l.current=Date.now()+150},Math.min(e.clientX,document.body.clientWidth-e.clientX)>100?0:500))},[]);return(0,f.jsxs)(f.Fragment,{children:[t?(0,f.jsx)("div",{className:"fixed inset-y-0 start-0 w-6 max-md:hidden xl:w-[50px]",onPointerEnter:d,onPointerLeave:h}):null,t?(0,f.jsx)("button",{type:"button","aria-label":"Collapse Sidebar",className:(0,u.m6)((0,s.d)({color:"secondary",size:"icon",className:"fixed start-4 bottom-2 z-10 max-md:hidden"})),onClick:a,children:(0,f.jsx)(F,{})}):null,(0,f.jsx)(V,{...e,aside:{"data-collapse":t,"data-hover":r,onPointerEnter:d,onPointerLeave:h,"aria-hidden":!!(t&&!r),className:(0,u.m6)("md:transition-[transform,padding,width,margin]",t&&["md:top-1 md:me-fd-sidebar-offset md:h-[calc(100dvh-4px)] md:w-[var(--fd-sidebar-width)] md:animate-fd-sidebar-collapse md:rounded-xl md:border md:ps-0 md:shadow-md",r?"md:translate-x-1 rtl:md:-translate-x-1":"md:translate-x-[calc(var(--fd-sidebar-width)*-1)] rtl:md:translate-x-[var(--fd-sidebar-width)]"])}})]})}function K(e){let{title:t,url:n,transparentMode:r,children:o,enableSearch:l=!0}=e,{open:a}=(0,_.A)(),{enabled:c}=(0,i.A)();return(0,f.jsxs)(N,{id:"nd-subnav",className:"flex h-14 flex-row items-center px-4 md:hidden",transparentMode:r,children:[(0,f.jsx)(C,{url:n,title:t}),(0,f.jsx)("div",{className:"flex flex-1 flex-row items-center",children:o}),c&&l?(0,f.jsx)(j,{}):null,(0,f.jsx)(D.vP,{className:(0,u.m6)((0,s.d)({color:"ghost",size:"icon",className:"-me-2"})),children:a?(0,f.jsx)(z,{}):(0,f.jsx)(W,{})})]})}function q(){let{setCollapsed:e}=(0,_.A)();return(0,f.jsx)("button",{type:"button","aria-label":"Collapse Sidebar",className:(0,u.m6)((0,s.d)({color:"ghost",size:"icon",className:"ms-auto max-md:hidden"})),onClick:(0,c.useCallback)(()=>{e(e=>!e)},[e]),children:(0,f.jsx)(F,{})})}},5377:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var r=n(5558),o=n(3504),i=n(5487);n(4918);var l=n(2374);let a=(0,n(193).Z)("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);var s=n(7516),u=(0,l.forwardRef)((e,t)=>{let{owner:n,repo:l,sha:u="main",path:c,...d}=e,{text:f}=(0,r.Q)();return(0,s.jsxs)("a",{ref:t,href:"https://github.com/".concat(n,"/").concat(l,"/blob/").concat(u,"/").concat(c.startsWith("/")?c.slice(1):c),target:"_blank",rel:"noreferrer noopener",...d,className:(0,i.m6)((0,o.d)({color:"outline",className:"text-fd-muted-foreground text-xs p-1.5 gap-2"}),d.className),children:[(0,s.jsx)(a,{className:"size-3.5"}),f.editOnGithub]})});u.displayName="EditOnGitHub";var c=u},5430:function(e,t,n){"use strict";n.d(t,{Pre:function(){return i}});var r=n(7844);n(2170),n(9226),n(3504),n(4918);var o=n(7516);function i(e){return(0,o.jsx)(r.d,{...e,children:(0,o.jsx)(r.S,{children:e.children})})}},6169:function(e,t,n){"use strict";n.d(t,{Breadcrumb:function(){return j},Footer:function(){return R},LastUpdate:function(){return S},TOCItems:function(){return w},Toc:function(){return b},TocPopover:function(){return y}});var r=n(6919),o=n(3880),i=n(2170),l=n(7355),a=n(5558),s=n(5487);n(4918);var u=n(2374),c=n(193);let d=(0,c.Z)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),f=(0,c.Z)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);var h=n(5758),m=n(8302),p=n(2771),g=n(4421),v=n(8296),x=n(7516);function b(e){let{header:t,footer:n,children:r}=e,{text:o}=(0,a.Q)();return(0,x.jsxs)("div",{"data-toc":"",className:"sticky top-0 flex h-dvh w-[var(--fd-c-toc)] min-w-[var(--fd-toc-width)] flex-col gap-4 pe-[max(calc(var(--fd-c-toc)-var(--fd-toc-width)),0.75rem)] pt-12 max-lg:hidden",children:[t,(0,x.jsxs)("h3",{className:"-mb-1 -ms-0.5 inline-flex items-center gap-1.5 text-sm text-fd-muted-foreground",children:[(0,x.jsx)(g.Z,{className:"size-4"}),o.toc]}),r,n]})}function y(e){let{header:t,footer:n,items:r,children:o}=e,{text:i}=(0,a.Q)(),s=v.tD(),c=(0,u.useMemo)(()=>{var e;return null===(e=r.find(e=>s===e.url.slice(1)))||void 0===e?void 0:e.title},[r,s]);return(0,x.jsxs)(l.J2,{children:[(0,x.jsxs)(l.xo,{className:"inline-flex size-full items-center gap-2 text-nowrap px-4 py-2 text-left md:px-3",children:[(0,x.jsx)(g.Z,{className:"size-4 shrink-0"}),i.toc,c?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(f,{className:"-mx-1.5 size-4 shrink-0 text-fd-muted-foreground"}),(0,x.jsx)("span",{className:"truncate text-fd-muted-foreground",children:c})]}):null]}),(0,x.jsxs)(l.yk,{hideWhenDetached:!0,alignOffset:16,align:"start",side:"bottom",className:"flex max-h-[var(--radix-popover-content-available-height)] w-[260px] flex-col gap-4 p-3","data-toc-popover":"",children:[t,o,n]})]})}function w(e){let{items:t,isMenu:n=!1}=e,{text:o}=(0,a.Q)(),l=(0,u.useRef)(null),c=(0,r.K)(l);return 0===t.length?(0,x.jsx)("div",{className:"rounded-lg border bg-fd-card p-3 text-xs text-fd-muted-foreground",children:o.tocNoHeadings}):(0,x.jsx)(i.xr,{className:(0,s.m6)("flex flex-col",n&&"-ms-3"),children:(0,x.jsxs)(i.fK,{className:"relative min-h-0 text-sm",ref:l,children:[(0,x.jsx)("div",{role:"none",className:"absolute start-0 w-px bg-fd-primary transition-all",style:{top:c[0],height:c[1]}}),(0,x.jsx)(v.ID,{containerRef:l,children:(0,x.jsx)("div",{className:(0,s.m6)("flex flex-col text-fd-muted-foreground",!n&&"border-s border-fd-foreground/10"),children:t.map(e=>(0,x.jsx)(E,{item:e},e.url))})})]})})}function E(e){let{item:t}=e;return(0,x.jsx)(v.FU,{href:t.url,className:(0,s.m6)("py-1.5 transition-colors [overflow-wrap:anywhere] first:pt-0 last:pb-0 data-[active=true]:text-fd-primary",t.depth<=2&&"ps-3.5",3===t.depth&&"ps-6",t.depth>=4&&"ps-8"),children:t.title})}function j(e){var t,n;let{full:r=!1,...i}=e,{root:l}=(0,o.W)(),a=(t=(0,m.usePathname)(),n={includePage:r,...i},(0,u.useMemo)(()=>(function(e,t,n={}){let{includeRoot:r,...o}=n,i=function e(t,n,r){let o;let{includePage:i=!0,includeSeparator:l=!1}=r;for(let a of t){if(l&&"separator"===a.type&&(o=a.name),"folder"===a.type){if(a.index?.url===n){let e=[];return o&&e.push({name:o}),r.includePage&&e.push({name:a.index.name,url:a.index.url}),e}let t=e(a.children,n,r);if(t)return t.unshift({name:a.name,url:a.index?.url}),o&&t.unshift({name:o}),t}if("page"===a.type&&a.url===n){let e=[];return o&&e.push({name:o}),i&&e.push({name:a.name,url:a.url}),e}}return null}(t.children,e,o)??[];return r&&i.unshift({name:t.name,url:"object"==typeof r?r.url:void 0}),i})(t,l,n),[l,t,n]));return 0===a.length?null:(0,x.jsx)("div",{className:"-mb-3 flex flex-row items-center gap-1 text-sm font-medium text-fd-muted-foreground",children:a.map((e,t)=>(0,x.jsxs)(u.Fragment,{children:[0!==t&&(0,x.jsx)(f,{className:"size-4 shrink-0 rtl:rotate-180"}),e.url?(0,x.jsx)(h.default,{href:e.url,className:"truncate hover:text-fd-accent-foreground",children:e.name}):(0,x.jsx)("span",{className:"truncate",children:e.name})]},t))})}function S(e){let{text:t}=(0,a.Q)(),[n,r]=(0,u.useState)("");return(0,u.useEffect)(()=>{r(e.date.toLocaleDateString())},[e.date]),(0,x.jsxs)("p",{className:"text-xs text-fd-muted-foreground",children:[t.lastUpdate," ",n]})}n(6384);var N=(0,p.j)("flex w-full flex-col gap-2 rounded-lg border bg-fd-card p-4 text-sm transition-colors hover:bg-fd-accent/80 hover:text-fd-accent-foreground"),C=(0,p.j)("inline-flex items-center gap-0.5 text-fd-muted-foreground");function R(e){let{items:t}=e,n=(0,o.W)(),r=(0,m.usePathname)(),{text:i}=(0,a.Q)(),{previous:l=null==t?void 0:t.previous,next:c=null==t?void 0:t.next}=(0,u.useMemo)(()=>{let e=n.navigation.findIndex(e=>e.url===r);return{previous:n.navigation[e-1],next:n.navigation[e+1]}},[r,n.navigation]);return(0,x.jsxs)("div",{className:"grid grid-cols-2 gap-4 pb-6",children:[l?(0,x.jsxs)(h.default,{href:l.url,className:(0,s.m6)(N()),children:[(0,x.jsxs)("div",{className:(0,s.m6)(C()),children:[(0,x.jsx)(d,{className:"-ms-1 size-4 shrink-0 rtl:rotate-180"}),(0,x.jsx)("p",{children:i.previousPage})]}),(0,x.jsx)("p",{className:"font-medium",children:l.name})]}):null,c?(0,x.jsxs)(h.default,{href:c.url,className:(0,s.m6)(N({className:"col-start-2 text-end"})),children:[(0,x.jsxs)("div",{className:(0,s.m6)(C({className:"flex-row-reverse"})),children:[(0,x.jsx)(f,{className:"-me-1 size-4 shrink-0 rtl:rotate-180"}),(0,x.jsx)("p",{children:i.nextPage})]}),(0,x.jsx)("p",{className:"font-medium",children:c.name})]}):null]})}},6050:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var r=n(6919),o=n(2170),i=n(5558),l=n(5487);n(4918);var a=n(8296),s=n(2374),u=n(7516);function c(e){let{items:t,isMenu:n=!1}=e,{text:c}=(0,i.Q)(),h=(0,s.useRef)(null),m=(0,r.K)(h),[p,g]=(0,s.useState)();return((0,s.useLayoutEffect)(()=>{if(!h.current)return;let e=h.current;function n(){if(0===e.clientHeight)return;let n=0,r=0,o=[];for(let i=0;i{r.disconnect()}},[t]),0===t.length)?(0,u.jsx)("div",{className:"rounded-lg border bg-fd-card p-3 text-xs text-fd-muted-foreground",children:c.tocNoHeadings}):(0,u.jsx)(o.xr,{className:(0,l.m6)("flex flex-col",n&&"-ms-3"),children:(0,u.jsxs)(o.fK,{className:"relative min-h-0 text-sm text-fd-muted-foreground",ref:h,children:[p?(0,u.jsx)("div",{className:"absolute start-0 top-0 rtl:-scale-x-100",style:{width:p.width,height:p.height,maskImage:'url("data:image/svg+xml,'.concat(encodeURIComponent('')),'")')},children:(0,u.jsx)("div",{className:"bg-fd-primary transition-all",style:{marginTop:m[0],height:m[1]}})}):null,(0,u.jsx)(a.ID,{containerRef:h,children:(0,u.jsx)("div",{className:"flex flex-col",children:t.map((e,n)=>{var r,o;return(0,u.jsx)(f,{item:e,upper:null===(r=t[n-1])||void 0===r?void 0:r.depth,lower:null===(o=t[n+1])||void 0===o?void 0:o.depth},e.url)})})})]})})}function d(e){return e>=3?12:0}function f(e){var t;let{item:n,upper:r=n.depth,lower:o=n.depth}=e,i=d(n.depth),s=d(r),c=d(o);return(0,u.jsxs)(a.FU,{href:n.url,style:{paddingInlineStart:"".concat((t=n.depth)<=2?16:3===t?32:48,"px")},className:"relative py-2 transition-colors [overflow-wrap:anywhere] first:pt-0 last:pb-0 data-[active=true]:text-fd-primary",children:[i!==s?(0,u.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",className:"absolute -top-2 start-0 size-4 rtl:-scale-x-100",children:(0,u.jsx)("line",{x1:s,y1:"0",x2:i,y2:"16",className:"stroke-fd-foreground/10",strokeWidth:"1"})}):null,(0,u.jsx)("div",{className:(0,l.m6)("absolute inset-y-0 w-px bg-fd-foreground/10",i!==s&&"top-2",i!==c&&"bottom-2"),style:{insetInlineStart:i}}),n.title]})}}}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[387],{342:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(193).Z)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},5758:function(e,t,n){"use strict";n.d(t,{default:function(){return o.a}});var r=n(5801),o=n.n(r)},1977:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return r}}),n(782);let r=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&o(!0),null==n?void 0:n.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,o=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>o,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{o=!0,t.stopPropagation()}})}(null==r?void 0:r.current)&&r.current(e)}}))}function g(e){return l.use?{fetchPriority:e}:{fetchpriority:e}}"undefined"==typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let v=(0,l.forwardRef)((e,t)=>{let{src:n,srcSet:r,sizes:o,height:a,width:s,decoding:u,className:c,style:d,fetchPriority:f,placeholder:h,loading:m,unoptimized:v,fill:x,onLoadRef:b,onLoadingCompleteRef:y,setBlurComplete:w,setShowAltText:E,sizesInput:j,onLoad:S,onError:N,...C}=e;return(0,i.jsx)("img",{...C,...g(f),loading:m,width:s,height:a,decoding:u,"data-nimg":x?"fill":"1",className:c,style:d,sizes:o,srcSet:r,src:n,ref:(0,l.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(N&&(e.src=e.src),e.complete&&p(e,h,b,y,w,v,j))},[n,h,b,y,w,N,v,j,t]),onLoad:e=>{p(e.currentTarget,h,b,y,w,v,j)},onError:e=>{E(!0),"empty"!==h&&w(!0),N&&N(e)}})});function x(e){let{isAppRouter:t,imgAttributes:n}=e,r={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...g(n.fetchPriority)};return t&&a.default.preload?(a.default.preload(n.src,r),null):(0,i.jsx)(s.default,{children:(0,i.jsx)("link",{rel:"preload",href:n.srcSet?void 0:n.src,...r},"__nimg-"+n.src+n.srcSet+n.sizes)})}let b=(0,l.forwardRef)((e,t)=>{let n=(0,l.useContext)(f.RouterContext),r=(0,l.useContext)(d.ImageConfigContext),o=(0,l.useMemo)(()=>{let e=m||r||c.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n}},[r]),{onLoad:a,onLoadingComplete:s}=e,p=(0,l.useRef)(a);(0,l.useEffect)(()=>{p.current=a},[a]);let g=(0,l.useRef)(s);(0,l.useEffect)(()=>{g.current=s},[s]);let[b,y]=(0,l.useState)(!1),[w,E]=(0,l.useState)(!1),{props:j,meta:S}=(0,u.getImgProps)(e,{defaultLoader:h.default,imgConf:o,blurComplete:b,showAltText:w});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(v,{...j,unoptimized:S.unoptimized,placeholder:S.placeholder,fill:S.fill,onLoadRef:p,onLoadingCompleteRef:g,setBlurComplete:y,setShowAltText:E,sizesInput:e.sizes,ref:t}),S.priority?(0,i.jsx)(x,{isAppRouter:!n,imgAttributes:j}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5801:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return y}});let r=n(9646),o=n(7516),i=r._(n(2374)),l=n(4368),a=n(4552),s=n(2352),u=n(9289),c=n(1977),d=n(2765),f=n(9700),h=n(3570),m=n(3130),p=n(686),g=n(9880),v=new Set;function x(e,t,n,r,o,i){if("undefined"!=typeof window&&(i||(0,a.isLocalURL)(t))){if(!r.bypassPrefetchedCheck){let o=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(v.has(o))return;v.add(o)}(async()=>i?e.prefetch(t,o):e.prefetch(t,n,r))().catch(e=>{})}}function b(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}let y=i.default.forwardRef(function(e,t){let n,r;let{href:s,as:v,children:y,prefetch:w=null,passHref:E,replace:j,shallow:S,scroll:N,locale:C,onClick:R,onMouseEnter:P,onTouchStart:L,legacyBehavior:T=!1,...M}=e;n=y,T&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let k=i.default.useContext(d.RouterContext),O=i.default.useContext(f.AppRouterContext),A=null!=k?k:O,I=!k,_=!1!==w,D=null===w?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:z,as:W}=i.default.useMemo(()=>{if(!k){let e=b(s);return{href:e,as:v?b(v):e}}let[e,t]=(0,l.resolveHref)(k,s,!0);return{href:e,as:v?(0,l.resolveHref)(k,v):t||e}},[k,s,v]),F=i.default.useRef(z),U=i.default.useRef(W);T&&(r=i.default.Children.only(n));let H=T?r&&"object"==typeof r&&r.ref:t,[B,V,Z]=(0,h.useIntersection)({rootMargin:"200px"}),Y=i.default.useCallback(e=>{(U.current!==W||F.current!==z)&&(Z(),U.current=W,F.current=z),B(e),H&&("function"==typeof H?H(e):"object"==typeof H&&(H.current=e))},[W,H,z,Z,B]);i.default.useEffect(()=>{A&&V&&_&&x(A,z,W,{locale:C},{kind:D},I)},[W,z,V,C,_,null==k?void 0:k.locale,A,I,D]);let $={ref:Y,onClick(e){T||"function"!=typeof R||R(e),T&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),A&&!e.defaultPrevented&&function(e,t,n,r,o,l,s,u,c){let{nodeName:d}=e.currentTarget;if("A"===d.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,a.isLocalURL)(n)))return;e.preventDefault();let f=()=>{let e=null==s||s;"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:l,locale:u,scroll:e}):t[o?"replace":"push"](r||n,{scroll:e})};c?i.default.startTransition(f):f()}(e,A,z,W,j,S,N,C,I)},onMouseEnter(e){T||"function"!=typeof P||P(e),T&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),A&&(_||!I)&&x(A,z,W,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:D},I)},onTouchStart:function(e){T||"function"!=typeof L||L(e),T&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),A&&(_||!I)&&x(A,z,W,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:D},I)}};if((0,u.isAbsoluteUrl)(W))$.href=W;else if(!T||E||"a"===r.type&&!("href"in r.props)){let e=void 0!==C?C:null==k?void 0:k.locale,t=(null==k?void 0:k.isLocaleDomain)&&(0,m.getDomainLocale)(W,e,null==k?void 0:k.locales,null==k?void 0:k.domainLocales);$.href=t||(0,p.addBasePath)((0,c.addLocale)(W,e,null==k?void 0:k.defaultLocale))}return T?i.default.cloneElement(r,$):(0,o.jsx)("a",{...M,...$,children:n})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1203:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{cancelIdleCallback:function(){return r},requestIdleCallback:function(){return n}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4368:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return d}});let r=n(639),o=n(2352),i=n(8554),l=n(9289),a=n(782),s=n(4552),u=n(992),c=n(5285);function d(e,t,n){let d;let f="string"==typeof t?t:(0,o.formatWithValidation)(t),h=f.match(/^[a-zA-Z]{1,}:\/\//),m=h?f.slice(h[0].length):f;if((m.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+f+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,l.normalizeRepeatedSlashes)(m);f=(h?h[0]:"")+t}if(!(0,s.isLocalURL)(f))return n?[f]:f;try{d=new URL(f.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){d=new URL("/","http://n")}try{let e=new URL(f,d);e.pathname=(0,a.normalizePathTrailingSlash)(e.pathname);let t="";if((0,u.isDynamicRoute)(e.pathname)&&e.searchParams&&n){let n=(0,r.searchParamsToUrlQuery)(e.searchParams),{result:l,params:a}=(0,c.interpolateAs)(e.pathname,e.pathname,n);l&&(t=(0,o.formatWithValidation)({pathname:l,hash:e.hash,query:(0,i.omit)(n,a)}))}let l=e.origin===d.origin?e.href.slice(e.origin.length):e.href;return n?[l,t||l]:l}catch(e){return n?[f]:f}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3570:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return s}});let r=n(2374),o=n(1203),i="function"==typeof IntersectionObserver,l=new Map,a=[];function s(e){let{rootRef:t,rootMargin:n,disabled:s}=e,u=s||!i,[c,d]=(0,r.useState)(!1),f=(0,r.useRef)(null),h=(0,r.useCallback)(e=>{f.current=e},[]);return(0,r.useEffect)(()=>{if(i){if(u||c)return;let e=f.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:o,elements:i}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=a.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=l.get(r)))return t;let o=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:o},a.push(n),l.set(n,t),t}(n);return i.set(e,t),o.observe(e),function(){if(i.delete(e),o.unobserve(e),0===i.size){o.disconnect(),l.delete(r);let e=a.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&a.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!c){let e=(0,o.requestIdleCallback)(()=>d(!0));return()=>(0,o.cancelIdleCallback)(e)}},[u,n,t,c,f.current]),[h,c,(0,r.useCallback)(()=>{d(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5453:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return r}});let r=n(9646)._(n(2374)).default.createContext({})},3536:function(e,t){"use strict";function n(e){let{ampFirst:t=!1,hybrid:n=!1,hasQuery:r=!1}=void 0===e?{}:e;return t||n&&r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return n}})},2038:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return o}});let n=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function o(e){return n.test(e)?e.replace(r,"\\$&"):e}},4697:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return a}}),n(3681);let r=n(1607),o=n(4173);function i(e){return void 0!==e.default}function l(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function a(e,t){var n;let a,s,u,{src:c,sizes:d,unoptimized:f=!1,priority:h=!1,loading:m,className:p,quality:g,width:v,height:x,fill:b=!1,style:y,overrideSrc:w,onLoad:E,onLoadingComplete:j,placeholder:S="empty",blurDataURL:N,fetchPriority:C,layout:R,objectFit:P,objectPosition:L,lazyBoundary:T,lazyRoot:M,...k}=e,{imgConf:O,showAltText:A,blurComplete:I,defaultLoader:_}=t,D=O||o.imageConfigDefault;if("allSizes"in D)a=D;else{let e=[...D.deviceSizes,...D.imageSizes].sort((e,t)=>e-t),t=D.deviceSizes.sort((e,t)=>e-t);a={...D,allSizes:e,deviceSizes:t}}if(void 0===_)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let z=k.loader||_;delete k.loader,delete k.srcSet;let W="__next_img_default"in z;if(W){if("custom"===a.loader)throw Error('Image with src "'+c+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=z;z=t=>{let{config:n,...r}=t;return e(r)}}if(R){"fill"===R&&(b=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[R];e&&(y={...y,...e});let t={responsive:"100vw",fill:"100vw"}[R];t&&!d&&(d=t)}let F="",U=l(v),H=l(x);if("object"==typeof(n=c)&&(i(n)||void 0!==n.src)){let e=i(c)?c.default:c;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(s=e.blurWidth,u=e.blurHeight,N=N||e.blurDataURL,F=e.src,!b){if(U||H){if(U&&!H){let t=U/e.width;H=Math.round(e.height*t)}else if(!U&&H){let t=H/e.height;U=Math.round(e.width*t)}}else U=e.width,H=e.height}}let B=!h&&("lazy"===m||void 0===m);(!(c="string"==typeof c?c:F)||c.startsWith("data:")||c.startsWith("blob:"))&&(f=!0,B=!1),a.unoptimized&&(f=!0),W&&c.endsWith(".svg")&&!a.dangerouslyAllowSVG&&(f=!0),h&&(C="high");let V=l(g),Z=Object.assign(b?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:P,objectPosition:L}:{},A?{}:{color:"transparent"},y),Y=I||"empty"===S?null:"blur"===S?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:U,heightInt:H,blurWidth:s,blurHeight:u,blurDataURL:N||"",objectFit:Z.objectFit})+'")':'url("'+S+'")',$=Y?{backgroundSize:Z.objectFit||"cover",backgroundPosition:Z.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:Y}:{},K=function(e){let{config:t,src:n,unoptimized:r,width:o,quality:i,sizes:l,loader:a}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:s,kind:u}=function(e,t,n){let{deviceSizes:r,allSizes:o}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:o.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:o,kind:"w"}}return"number"!=typeof t?{widths:r,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>o.find(t=>t>=e)||o[o.length-1]))],kind:"x"}}(t,o,l),c=s.length-1;return{sizes:l||"w"!==u?l:"100vw",srcSet:s.map((e,r)=>a({config:t,src:n,quality:i,width:e})+" "+("w"===u?e:r+1)+u).join(", "),src:a({config:t,src:n,quality:i,width:s[c]})}}({config:a,src:c,unoptimized:f,width:U,quality:V,sizes:d,loader:z});return{props:{...k,loading:B?"lazy":m,fetchPriority:C,width:U,height:H,decoding:"async",className:p,style:{...Z,...$},sizes:K.sizes,srcSet:K.srcSet,src:w||K.src},meta:{unoptimized:f,priority:h,placeholder:S,fill:b}}}},1862:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return p},defaultHead:function(){return d}});let r=n(9646),o=n(2279),i=n(7516),l=o._(n(2374)),a=r._(n(4632)),s=n(5453),u=n(2911),c=n(3536);function d(e){void 0===e&&(e=!1);let t=[(0,i.jsx)("meta",{charSet:"utf-8"})];return e||t.push((0,i.jsx)("meta",{name:"viewport",content:"width=device-width"})),t}function f(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===l.default.Fragment?e.concat(l.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}n(3681);let h=["name","httpEquiv","charSet","itemProp"];function m(e,t){let{inAmpMode:n}=t;return e.reduce(f,[]).reverse().concat(d(n).reverse()).filter(function(){let e=new Set,t=new Set,n=new Set,r={};return o=>{let i=!0,l=!1;if(o.key&&"number"!=typeof o.key&&o.key.indexOf("$")>0){l=!0;let t=o.key.slice(o.key.indexOf("$")+1);e.has(t)?i=!1:e.add(t)}switch(o.type){case"title":case"base":t.has(o.type)?i=!1:t.add(o.type);break;case"meta":for(let e=0,t=h.length;e{let r=e.key||t;if(!n&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,l.default.cloneElement(e,t)}return l.default.cloneElement(e,{key:r})})}let p=function(e){let{children:t}=e,n=(0,l.useContext)(s.AmpStateContext),r=(0,l.useContext)(u.HeadManagerContext);return(0,i.jsx)(a.default,{reduceComponentsToState:m,headManager:r,inAmpMode:(0,c.isInAmpMode)(n),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1607:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:o,blurDataURL:i,objectFit:l}=e,a=r?40*r:t,s=o?40*o:n,u=a&&s?"viewBox='0 0 "+a+" "+s+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===l?"xMidYMid":"cover"===l?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+i+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},8435:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return i}});let r=n(9646)._(n(2374)),o=n(4173),i=r.default.createContext(o.imageConfigDefault)},4173:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{VALID_LOADERS:function(){return n},imageConfigDefault:function(){return r}});let n=["default","imgix","cloudinary","akamai","custom"],r={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",remotePatterns:[],unoptimized:!1}},2313:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return s},getImageProps:function(){return a}});let r=n(9646),o=n(4697),i=n(8918),l=r._(n(8907));function a(e){let{props:t}=(0,o.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let s=i.Image},8907:function(e,t){"use strict";function n(e){let{config:t,src:n,width:r,quality:o}=e;return t.path+"?url="+encodeURIComponent(n)+"&w="+r+"&q="+(o||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},2765:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return r}});let r=n(9646)._(n(2374)).default.createContext(null)},2352:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{formatUrl:function(){return i},formatWithValidation:function(){return a},urlObjectKeys:function(){return l}});let r=n(2279)._(n(639)),o=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:n}=e,i=e.protocol||"",l=e.pathname||"",a=e.hash||"",s=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:n&&(u=t+(~n.indexOf(":")?"["+n+"]":n),e.port&&(u+=":"+e.port)),s&&"object"==typeof s&&(s=String(r.urlQueryToSearchParams(s)));let c=e.search||s&&"?"+s||"";return i&&!i.endsWith(":")&&(i+=":"),e.slashes||(!i||o.test(i))&&!1!==u?(u="//"+(u||""),l&&"/"!==l[0]&&(l="/"+l)):u||(u=""),a&&"#"!==a[0]&&(a="#"+a),c&&"?"!==c[0]&&(c="?"+c),""+i+u+(l=l.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+a}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function a(e){return i(e)}},992:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});let r=n(9224),o=n(6856)},5285:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return i}});let r=n(3511),o=n(7334);function i(e,t,n){let i="",l=(0,o.getRouteRegex)(e),a=l.groups,s=(t!==e?(0,r.getRouteMatcher)(l)(t):"")||n;i=e;let u=Object.keys(a);return u.every(e=>{let t=s[e]||"",{repeat:n,optional:r}=a[e],o="["+(n?"...":"")+e+"]";return r&&(o=(t?"":"/")+"["+o+"]"),n&&!Array.isArray(t)&&(t=[t]),(r||e in s)&&(i=i.replace(o,n?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(i=""),{params:u,result:i}}},6856:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return i}});let r=n(1923),o=/\/\[[^/]+?\](?=\/|$)/;function i(e){return(0,r.isInterceptionRouteAppPath)(e)&&(e=(0,r.extractInterceptionRouteInformation)(e).interceptedRoute),o.test(e)}},4552:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return i}});let r=n(9289),o=n(7752);function i(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,o.hasBasePath)(n.pathname)}catch(e){return!1}}},8554:function(e,t){"use strict";function n(e,t){let n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return n}})},639:function(e,t){"use strict";function n(e){let t={};return e.forEach((e,n)=>{void 0===t[n]?t[n]=e:Array.isArray(t[n])?t[n].push(e):t[n]=[t[n],e]}),t}function r(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[n,o]=e;Array.isArray(o)?o.forEach(e=>t.append(n,r(e))):t.set(n,r(o))}),t}function i(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,n)=>e.append(n,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{assign:function(){return i},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return o}})},3511:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return o}});let r=n(9289);function o(e){let{re:t,groups:n}=e;return e=>{let o=t.exec(e);if(!o)return!1;let i=e=>{try{return decodeURIComponent(e)}catch(e){throw new r.DecodeError("failed to decode param")}},l={};return Object.keys(n).forEach(e=>{let t=n[e],r=o[t.pos];void 0!==r&&(l[e]=~r.indexOf("/")?r.split("/").map(e=>i(e)):t.repeat?[i(r)]:i(r))}),l}}},7334:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getNamedMiddlewareRegex:function(){return f},getNamedRouteRegex:function(){return d},getRouteRegex:function(){return s}});let r=n(1923),o=n(2038),i=n(5921);function l(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let n=e.startsWith("...");return n&&(e=e.slice(3)),{key:e,repeat:n,optional:t}}function a(e){let t=(0,i.removeTrailingSlash)(e).slice(1).split("/"),n={},a=1;return{parameterizedRoute:t.map(e=>{let t=r.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),i=e.match(/\[((?:\[.*\])|.+)\]/);if(t&&i){let{key:e,optional:r,repeat:s}=l(i[1]);return n[e]={pos:a++,repeat:s,optional:r},"/"+(0,o.escapeStringRegexp)(t)+"([^/]+?)"}if(!i)return"/"+(0,o.escapeStringRegexp)(e);{let{key:e,repeat:t,optional:r}=l(i[1]);return n[e]={pos:a++,repeat:t,optional:r},t?r?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:n}}function s(e){let{parameterizedRoute:t,groups:n}=a(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:n}}function u(e){let{interceptionMarker:t,getSafeRouteKey:n,segment:r,routeKeys:i,keyPrefix:a}=e,{key:s,optional:u,repeat:c}=l(r),d=s.replace(/\W/g,"");a&&(d=""+a+d);let f=!1;(0===d.length||d.length>30)&&(f=!0),isNaN(parseInt(d.slice(0,1)))||(f=!0),f&&(d=n()),a?i[d]=""+a+s:i[d]=s;let h=t?(0,o.escapeStringRegexp)(t):"";return c?u?"(?:/"+h+"(?<"+d+">.+?))?":"/"+h+"(?<"+d+">.+?)":"/"+h+"(?<"+d+">[^/]+?)"}function c(e,t){let n;let l=(0,i.removeTrailingSlash)(e).slice(1).split("/"),a=(n=0,()=>{let e="",t=++n;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),s={};return{namedParameterizedRoute:l.map(e=>{let n=r.INTERCEPTION_ROUTE_MARKERS.some(t=>e.startsWith(t)),i=e.match(/\[((?:\[.*\])|.+)\]/);if(n&&i){let[n]=e.split(i[0]);return u({getSafeRouteKey:a,interceptionMarker:n,segment:i[1],routeKeys:s,keyPrefix:t?"nxtI":void 0})}return i?u({getSafeRouteKey:a,segment:i[1],routeKeys:s,keyPrefix:t?"nxtP":void 0}):"/"+(0,o.escapeStringRegexp)(e)}).join(""),routeKeys:s}}function d(e,t){let n=c(e,t);return{...s(e),namedRegex:"^"+n.namedParameterizedRoute+"(?:/)?$",routeKeys:n.routeKeys}}function f(e,t){let{parameterizedRoute:n}=a(e),{catchAll:r=!0}=t;if("/"===n)return{namedRegex:"^/"+(r?".*":"")+"$"};let{namedParameterizedRoute:o}=c(e,!1);return{namedRegex:"^"+o+(r?"(?:(/.*)?)":"")+"$"}}},9224:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class n{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let n=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&n.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');n.unshift(t)}return null!==this.restSlugName&&n.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&n.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),n}_insert(e,t,r){if(0===e.length){this.placeholder=!1;return}if(r)throw Error("Catch-all must be the last part of the URL.");let o=e[0];if(o.startsWith("[")&&o.endsWith("]")){let n=o.slice(1,-1),l=!1;if(n.startsWith("[")&&n.endsWith("]")&&(n=n.slice(1,-1),l=!0),n.startsWith("...")&&(n=n.substring(3),r=!0),n.startsWith("[")||n.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+n+"').");if(n.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+n+"').");function i(e,n){if(null!==e&&e!==n)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+n+"').");t.forEach(e=>{if(e===n)throw Error('You cannot have the same slug name "'+n+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===o.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+n+'" differ only by non-word symbols within a single dynamic path')}),t.push(n)}if(r){if(l){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');i(this.optionalRestSlugName,n),this.optionalRestSlugName=n,o="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');i(this.restSlugName,n),this.restSlugName=n,o="[...]"}}else{if(l)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');i(this.slugName,n),this.slugName=n,o="[]"}}this.children.has(o)||this.children.set(o,new n),this.children.get(o)._insert(e.slice(1),t,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(e){let t=new n;return e.forEach(e=>t.insert(e)),t.smoosh()}},4632:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=n(2374),o="undefined"==typeof window,i=o?()=>{}:r.useLayoutEffect,l=o?()=>{}:r.useEffect;function a(e){let{headManager:t,reduceComponentsToState:n}=e;function a(){if(t&&t.mountedInstances){let o=r.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(n(o,e))}}if(o){var s;null==t||null==(s=t.mountedInstances)||s.add(e.children),a()}return i(()=>{var n;return null==t||null==(n=t.mountedInstances)||n.add(e.children),()=>{var n;null==t||null==(n=t.mountedInstances)||n.delete(e.children)}}),i(()=>(t&&(t._pendingUpdate=a),()=>{t&&(t._pendingUpdate=a)})),l(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},9289:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DecodeError:function(){return m},MiddlewareNotFoundError:function(){return x},MissingStaticPage:function(){return v},NormalizeError:function(){return p},PageNotFoundError:function(){return g},SP:function(){return f},ST:function(){return h},WEB_VITALS:function(){return n},execOnce:function(){return r},getDisplayName:function(){return s},getLocationOrigin:function(){return l},getURL:function(){return a},isAbsoluteUrl:function(){return i},isResSent:function(){return u},loadGetInitialProps:function(){return d},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return b}});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(e){let t,n=!1;return function(){for(var r=arguments.length,o=Array(r),i=0;io.test(e);function l(){let{protocol:e,hostname:t,port:n}=window.location;return e+"//"+t+(n?":"+n:"")}function a(){let{href:e}=window.location,t=l();return e.substring(t.length)}function s(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function u(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function d(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await d(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&u(n))return r;if(!r)throw Error('"'+s(e)+'.getInitialProps()" should resolve to an object. But found "'+r+'" instead.');return r}let f="undefined"!=typeof performance,h=f&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class m extends Error{}class p extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class v extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class x extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function b(e){return JSON.stringify({message:e.message,stack:e.stack})}},6701:function(){},312:function(e,t,n){"use strict";function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}n.d(t,{M:function(){return r}})},6766:function(e,t,n){"use strict";n.d(t,{F:function(){return o},e:function(){return i}});var r=n(2374);function o(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function i(...e){return r.useCallback(o(...e),e)}},7706:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var r=n(2374),o=n(7516);function i(e,t=[]){let n=[],i=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return i.scopeName=e,[function(t,i){let l=r.createContext(i),a=n.length;function s(t){let{scope:n,children:i,...s}=t,u=n?.[e][a]||l,c=r.useMemo(()=>s,Object.values(s));return(0,o.jsx)(u.Provider,{value:c,children:i})}return n=[...n,i],s.displayName=t+"Provider",[s,function(n,o){let s=o?.[e][a]||l,u=r.useContext(s);if(u)return u;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(i,...t)]}},7840:function(e,t,n){"use strict";n.d(t,{M:function(){return s}});var r,o=n(2374),i=n(2656),l=(r||(r=n.t(o,2)))["useId".toString()]||(()=>void 0),a=0;function s(e){let[t,n]=o.useState(l());return(0,i.b)(()=>{e||n(e=>e??String(a++))},[e]),e||(t?`radix-${t}`:"")}},3301:function(e,t,n){"use strict";n.d(t,{z:function(){return a}});var r=n(2374),o=n(7372),i=n(6766),l=n(2656),a=e=>{var t,n;let a,u;let{present:c,children:d}=e,f=function(e){var t,n;let[i,a]=r.useState(),u=r.useRef({}),c=r.useRef(e),d=r.useRef("none"),[f,h]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=s(u.current);d.current="mounted"===f?e:"none"},[f]),(0,l.b)(()=>{let t=u.current,n=c.current;if(n!==e){let r=d.current,o=s(t);e?h("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?h("UNMOUNT"):n&&r!==o?h("ANIMATION_OUT"):h("UNMOUNT"),c.current=e}},[e,h]),(0,l.b)(()=>{if(i){let e=e=>{let t=s(u.current).includes(e.animationName);e.target===i&&t&&o.flushSync(()=>h("ANIMATION_END"))},t=e=>{e.target===i&&(d.current=s(u.current))};return i.addEventListener("animationstart",t),i.addEventListener("animationcancel",e),i.addEventListener("animationend",e),()=>{i.removeEventListener("animationstart",t),i.removeEventListener("animationcancel",e),i.removeEventListener("animationend",e)}}h("ANIMATION_END")},[i,h]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:r.useCallback(e=>{e&&(u.current=getComputedStyle(e)),a(e)},[])}}(c),h="function"==typeof d?d({present:f.isPresent}):r.Children.only(d),m=(0,i.e)(f.ref,(a=null===(t=Object.getOwnPropertyDescriptor(h.props,"ref"))||void 0===t?void 0:t.get)&&"isReactWarning"in a&&a.isReactWarning?h.ref:(a=null===(n=Object.getOwnPropertyDescriptor(h,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in a&&a.isReactWarning?h.props.ref:h.props.ref||h.ref);return"function"==typeof d||f.isPresent?r.cloneElement(h,{ref:m}):null};function s(e){return(null==e?void 0:e.animationName)||"none"}a.displayName="Presence"},4356:function(e,t,n){"use strict";n.d(t,{WV:function(){return a},jH:function(){return s}});var r=n(2374),o=n(7372),i=n(9984),l=n(7516),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=r.forwardRef((e,n)=>{let{asChild:r,...o}=e,a=r?i.g7:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(a,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function s(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},9984:function(e,t,n){"use strict";n.d(t,{g7:function(){return l}});var r=n(2374),o=n(6766),i=n(7516),l=r.forwardRef((e,t)=>{let{children:n,...o}=e,l=r.Children.toArray(n),s=l.find(u);if(s){let e=s.props.children,n=l.map(t=>t!==s?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,i.jsx)(a,{...o,ref:t,children:r.isValidElement(e)?r.cloneElement(e,void 0,n):null})}return(0,i.jsx)(a,{...o,ref:t,children:n})});l.displayName="Slot";var a=r.forwardRef((e,t)=>{let{children:n,...i}=e;if(r.isValidElement(n)){let e,l;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return r.cloneElement(n,{...function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(i,n.props),ref:t?(0,o.F)(t,a):a})}return r.Children.count(n)>1?r.Children.only(null):null});a.displayName="SlotClone";var s=({children:e})=>(0,i.jsx)(i.Fragment,{children:e});function u(e){return r.isValidElement(e)&&e.type===s}},931:function(e,t,n){"use strict";n.d(t,{W:function(){return o}});var r=n(2374);function o(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},5960:function(e,t,n){"use strict";n.d(t,{T:function(){return i}});var r=n(2374),o=n(931);function i({prop:e,defaultProp:t,onChange:n=()=>{}}){let[i,l]=function({defaultProp:e,onChange:t}){let n=r.useState(e),[i]=n,l=r.useRef(i),a=(0,o.W)(t);return r.useEffect(()=>{l.current!==i&&(a(i),l.current=i)},[i,l,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,s=a?e:i,u=(0,o.W)(n);return[s,r.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&u(n)}else l(t)},[a,e,l,u])]}},2656:function(e,t,n){"use strict";n.d(t,{b:function(){return o}});var r=n(2374),o=globalThis?.document?r.useLayoutEffect:()=>{}},8296:function(e,t,n){"use strict";n.d(t,{AnchorProvider:function(){return x},ID:function(){return v},FU:function(){return b},tD:function(){return p},_z:function(){return g}});var r=n(1453);n(6384);var o=n(2374);let i=e=>"object"==typeof e&&null!=e&&1===e.nodeType,l=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,a=(e,t)=>{if(e.clientHeight{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeightit||i>e&&l=t&&a>=n?i-e-r:l>t&&an?l-t+o:0,u=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},c=(e,t)=>{var n,r,o,l;if("undefined"==typeof document)return[];let{scrollMode:c,block:d,inline:f,boundary:h,skipOverflowHiddenElements:m}=t,p="function"==typeof h?h:e=>e!==h;if(!i(e))throw TypeError("Invalid target");let g=document.scrollingElement||document.documentElement,v=[],x=e;for(;i(x)&&p(x);){if((x=u(x))===g){v.push(x);break}null!=x&&x===document.body&&a(x)&&!a(document.documentElement)||null!=x&&a(x,m)&&v.push(x)}let b=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,y=null!=(l=null==(o=window.visualViewport)?void 0:o.height)?l:innerHeight,{scrollX:w,scrollY:E}=window,{height:j,width:S,top:N,right:C,bottom:R,left:P}=e.getBoundingClientRect(),{top:L,right:T,bottom:M,left:k}=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e),O="start"===d||"nearest"===d?N-L:"end"===d?R+M:N+j/2-L+M,A="center"===f?P+S/2-k+T:"end"===f?C+T:P-k,I=[];for(let e=0;e=0&&P>=0&&R<=y&&C<=b&&N>=o&&R<=l&&P>=a&&C<=i)break;let u=getComputedStyle(t),h=parseInt(u.borderLeftWidth,10),m=parseInt(u.borderTopWidth,10),p=parseInt(u.borderRightWidth,10),x=parseInt(u.borderBottomWidth,10),L=0,T=0,M="offsetWidth"in t?t.offsetWidth-t.clientWidth-h-p:0,k="offsetHeight"in t?t.offsetHeight-t.clientHeight-m-x:0,_="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,D="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(g===t)L="start"===d?O:"end"===d?O-y:"nearest"===d?s(E,E+y,y,m,x,E+O,E+O+j,j):O-y/2,T="start"===f?A:"center"===f?A-b/2:"end"===f?A-b:s(w,w+b,b,h,p,w+A,w+A+S,S),L=Math.max(0,L+E),T=Math.max(0,T+w);else{L="start"===d?O-o-m:"end"===d?O-l+x+k:"nearest"===d?s(o,l,n,m,x+k,O,O+j,j):O-(o+n/2)+k/2,T="start"===f?A-a-h:"center"===f?A-(a+r/2)+M/2:"end"===f?A-i+p+M:s(a,i,r,h,p+M,A,A+S,S);let{scrollLeft:e,scrollTop:u}=t;L=0===D?0:Math.max(0,Math.min(u+L/D,t.scrollHeight-n/D+k)),T=0===_?0:Math.max(0,Math.min(e+T/_,t.scrollWidth-r/_+M)),O+=u-L,A+=e-T}I.push({el:t,top:L,left:T})}return I},d=e=>!1===e?{block:"end",inline:"nearest"}:e===Object(e)&&0!==Object.keys(e).length?e:{block:"start",inline:"nearest"};var f=n(7516),h=(0,o.createContext)([]),m=(0,o.createContext)({current:null});function p(){return(0,o.useContext)(h).at(-1)}function g(){return(0,o.useContext)(h)}function v(e){let{containerRef:t,children:n}=e;return(0,f.jsx)(m.Provider,{value:t,children:n})}function x(e){let{toc:t,single:n=!0,children:r}=e,i=(0,o.useMemo)(()=>t.map(e=>e.url.split("#")[1]),[t]);return(0,f.jsx)(h.Provider,{value:function(e,t){let[n,r]=(0,o.useState)([]);return(0,o.useEffect)(()=>{let n=[],o=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&!n.includes(t.target.id)?n=[...n,t.target.id]:!t.isIntersecting&&n.includes(t.target.id)&&(n=n.filter(e=>e!==t.target.id));n.length>0&&r(n)},{rootMargin:t?"-80px 0% -70% 0%":"-20px 0% -40% 0%",threshold:1});function i(){let n=document.scrollingElement;n&&(0===n.scrollTop&&t?r(e.slice(0,1)):n.scrollTop+n.clientHeight>=n.scrollHeight-6&&r(n=>n.length>0&&!t?e.slice(e.indexOf(n[0])):e.slice(-1)))}for(let t of e){let e=document.getElementById(t);e&&o.observe(e)}return i(),window.addEventListener("scroll",i),()=>{window.removeEventListener("scroll",i),o.disconnect()}},[t,e]),t?n.slice(0,1):n}(i,n),children:r})}var b=(0,o.forwardRef)((e,t)=>{let{onActiveChange:n,...i}=e,l=(0,o.useContext)(m),a=g(),s=(0,o.useRef)(null),u=function(){for(var e=arguments.length,t=Array(e),n=0;n{t.forEach(t=>{"function"==typeof t?t(e):null!==t&&(t.current=e)})}}(s,t),h=a.includes(i.href.slice(1));return(0,r.p)(h,e=>{let t=s.current;t&&(e&&l.current&&function(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let n=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if("object"==typeof t&&"function"==typeof t.behavior)return t.behavior(c(e,t));let r="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:o,top:i,left:l}of c(e,d(t))){let e=i-n.top+n.bottom,t=l-n.left+n.right;o.scroll({top:e,left:t,behavior:r})}}(t,{behavior:"smooth",block:"center",inline:"center",scrollMode:"always",boundary:l.current}),null==n||n(e))}),(0,f.jsx)("a",{ref:u,"data-active":h,...i,children:i.children})});b.displayName="TOCItem"},7933:function(e,t,n){"use strict";n.d(t,{xr:function(){return $},Bl:function(){return q},fK:function(){return K}});var r=n(5487),o=n(2374),i=n(4356),l=n(3301),a=n(7706),s=n(6766),u=n(931),c=n(8454),d=n(2656),f=n(312),h=n(7516),m="ScrollArea",[p,g]=(0,a.b)(m),[v,x]=p(m),b=o.forwardRef((e,t)=>{let{__scopeScrollArea:n,type:r="hover",dir:l,scrollHideDelay:a=600,...u}=e,[d,f]=o.useState(null),[m,p]=o.useState(null),[g,x]=o.useState(null),[b,y]=o.useState(null),[w,E]=o.useState(null),[j,S]=o.useState(0),[N,C]=o.useState(0),[R,P]=o.useState(!1),[L,T]=o.useState(!1),M=(0,s.e)(t,e=>f(e)),k=(0,c.gm)(l);return(0,h.jsx)(v,{scope:n,type:r,dir:k,scrollHideDelay:a,scrollArea:d,viewport:m,onViewportChange:p,content:g,onContentChange:x,scrollbarX:b,onScrollbarXChange:y,scrollbarXEnabled:R,onScrollbarXEnabledChange:P,scrollbarY:w,onScrollbarYChange:E,scrollbarYEnabled:L,onScrollbarYEnabledChange:T,onCornerWidthChange:S,onCornerHeightChange:C,children:(0,h.jsx)(i.WV.div,{dir:k,...u,ref:M,style:{position:"relative","--radix-scroll-area-corner-width":j+"px","--radix-scroll-area-corner-height":N+"px",...e.style}})})});b.displayName=m;var y="ScrollAreaViewport",w=o.forwardRef((e,t)=>{let{__scopeScrollArea:n,children:r,nonce:l,...a}=e,u=x(y,n),c=o.useRef(null),d=(0,s.e)(t,c,u.onViewportChange);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:l}),(0,h.jsx)(i.WV.div,{"data-radix-scroll-area-viewport":"",...a,ref:d,style:{overflowX:u.scrollbarXEnabled?"scroll":"hidden",overflowY:u.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,h.jsx)("div",{ref:u.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});w.displayName=y;var E="ScrollAreaScrollbar",j=o.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=x(E,e.__scopeScrollArea),{onScrollbarXEnabledChange:l,onScrollbarYEnabledChange:a}=i,s="horizontal"===e.orientation;return o.useEffect(()=>(s?l(!0):a(!0),()=>{s?l(!1):a(!1)}),[s,l,a]),"hover"===i.type?(0,h.jsx)(S,{...r,ref:t,forceMount:n}):"scroll"===i.type?(0,h.jsx)(N,{...r,ref:t,forceMount:n}):"auto"===i.type?(0,h.jsx)(C,{...r,ref:t,forceMount:n}):"always"===i.type?(0,h.jsx)(R,{...r,ref:t}):null});j.displayName=E;var S=o.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=x(E,e.__scopeScrollArea),[a,s]=o.useState(!1);return o.useEffect(()=>{let e=i.scrollArea,t=0;if(e){let n=()=>{window.clearTimeout(t),s(!0)},r=()=>{t=window.setTimeout(()=>s(!1),i.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}},[i.scrollArea,i.scrollHideDelay]),(0,h.jsx)(l.z,{present:n||a,children:(0,h.jsx)(C,{"data-state":a?"visible":"hidden",...r,ref:t})})}),N=o.forwardRef((e,t)=>{var n,r;let{forceMount:i,...a}=e,s=x(E,e.__scopeScrollArea),u="horizontal"===e.orientation,c=Z(()=>m("SCROLL_END"),100),[d,m]=(n="hidden",r={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},o.useReducer((e,t)=>{let n=r[e][t];return null!=n?n:e},n));return o.useEffect(()=>{if("idle"===d){let e=window.setTimeout(()=>m("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(e)}},[d,s.scrollHideDelay,m]),o.useEffect(()=>{let e=s.viewport,t=u?"scrollLeft":"scrollTop";if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(m("SCROLL"),c()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[s.viewport,u,m,c]),(0,h.jsx)(l.z,{present:i||"hidden"!==d,children:(0,h.jsx)(R,{"data-state":"hidden"===d?"hidden":"visible",...a,ref:t,onPointerEnter:(0,f.M)(e.onPointerEnter,()=>m("POINTER_ENTER")),onPointerLeave:(0,f.M)(e.onPointerLeave,()=>m("POINTER_LEAVE"))})})}),C=o.forwardRef((e,t)=>{let n=x(E,e.__scopeScrollArea),{forceMount:r,...i}=e,[a,s]=o.useState(!1),u="horizontal"===e.orientation,c=Z(()=>{if(n.viewport){let e=n.viewport.offsetWidth{let{orientation:n="vertical",...r}=e,i=x(E,e.__scopeScrollArea),l=o.useRef(null),a=o.useRef(0),[s,u]=o.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=F(s.viewport,s.content),d={...r,sizes:s,onSizesChange:u,hasThumb:!!(c>0&&c<1),onThumbChange:e=>l.current=e,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:e=>a.current=e};function f(e,t){return function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ltr",o=U(n),i=t||o/2,l=n.scrollbar.paddingStart+i,a=n.scrollbar.size-n.scrollbar.paddingEnd-(o-i),s=n.content-n.viewport;return B([l,a],"ltr"===r?[0,s]:[-1*s,0])(e)}(e,a.current,s,t)}return"horizontal"===n?(0,h.jsx)(P,{...d,ref:t,onThumbPositionChange:()=>{if(i.viewport&&l.current){let e=H(i.viewport.scrollLeft,s,i.dir);l.current.style.transform="translate3d(".concat(e,"px, 0, 0)")}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=f(e,i.dir))}}):"vertical"===n?(0,h.jsx)(L,{...d,ref:t,onThumbPositionChange:()=>{if(i.viewport&&l.current){let e=H(i.viewport.scrollTop,s);l.current.style.transform="translate3d(0, ".concat(e,"px, 0)")}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=f(e))}}):null}),P=o.forwardRef((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,l=x(E,e.__scopeScrollArea),[a,u]=o.useState(),c=o.useRef(null),d=(0,s.e)(t,c,l.onScrollbarXChange);return o.useEffect(()=>{c.current&&u(getComputedStyle(c.current))},[c]),(0,h.jsx)(k,{"data-orientation":"horizontal",...i,ref:d,sizes:n,style:{bottom:0,left:"rtl"===l.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===l.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":U(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(l.viewport){let r=l.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),r>0&&r{c.current&&l.viewport&&a&&r({content:l.viewport.scrollWidth,viewport:l.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:W(a.paddingLeft),paddingEnd:W(a.paddingRight)}})}})}),L=o.forwardRef((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,l=x(E,e.__scopeScrollArea),[a,u]=o.useState(),c=o.useRef(null),d=(0,s.e)(t,c,l.onScrollbarYChange);return o.useEffect(()=>{c.current&&u(getComputedStyle(c.current))},[c]),(0,h.jsx)(k,{"data-orientation":"vertical",...i,ref:d,sizes:n,style:{top:0,right:"ltr"===l.dir?0:void 0,left:"rtl"===l.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":U(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(l.viewport){let r=l.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),r>0&&r{c.current&&l.viewport&&a&&r({content:l.viewport.scrollHeight,viewport:l.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:W(a.paddingTop),paddingEnd:W(a.paddingBottom)}})}})}),[T,M]=p(E),k=o.forwardRef((e,t)=>{let{__scopeScrollArea:n,sizes:r,hasThumb:l,onThumbChange:a,onThumbPointerUp:c,onThumbPointerDown:d,onThumbPositionChange:m,onDragScroll:p,onWheelScroll:g,onResize:v,...b}=e,y=x(E,n),[w,j]=o.useState(null),S=(0,s.e)(t,e=>j(e)),N=o.useRef(null),C=o.useRef(""),R=y.viewport,P=r.content-r.viewport,L=(0,u.W)(g),M=(0,u.W)(m),k=Z(v,10);function O(e){N.current&&p({x:e.clientX-N.current.left,y:e.clientY-N.current.top})}return o.useEffect(()=>{let e=e=>{let t=e.target;(null==w?void 0:w.contains(t))&&L(e,P)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[R,w,P,L]),o.useEffect(M,[r,M]),Y(w,k),Y(y.content,k),(0,h.jsx)(T,{scope:n,scrollbar:w,hasThumb:l,onThumbChange:(0,u.W)(a),onThumbPointerUp:(0,u.W)(c),onThumbPositionChange:M,onThumbPointerDown:(0,u.W)(d),children:(0,h.jsx)(i.WV.div,{...b,ref:S,style:{position:"absolute",...b.style},onPointerDown:(0,f.M)(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),N.current=w.getBoundingClientRect(),C.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",y.viewport&&(y.viewport.style.scrollBehavior="auto"),O(e))}),onPointerMove:(0,f.M)(e.onPointerMove,O),onPointerUp:(0,f.M)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=C.current,y.viewport&&(y.viewport.style.scrollBehavior=""),N.current=null})})})}),O="ScrollAreaThumb",A=o.forwardRef((e,t)=>{let{forceMount:n,...r}=e,o=M(O,e.__scopeScrollArea);return(0,h.jsx)(l.z,{present:n||o.hasThumb,children:(0,h.jsx)(I,{ref:t,...r})})}),I=o.forwardRef((e,t)=>{let{__scopeScrollArea:n,style:r,...l}=e,a=x(O,n),u=M(O,n),{onThumbPositionChange:c}=u,d=(0,s.e)(t,e=>u.onThumbChange(e)),m=o.useRef(),p=Z(()=>{m.current&&(m.current(),m.current=void 0)},100);return o.useEffect(()=>{let e=a.viewport;if(e){let t=()=>{if(p(),!m.current){let t=V(e,c);m.current=t,c()}};return c(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[a.viewport,p,c]),(0,h.jsx)(i.WV.div,{"data-state":u.hasThumb?"visible":"hidden",...l,ref:d,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:(0,f.M)(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;u.onThumbPointerDown({x:n,y:r})}),onPointerUp:(0,f.M)(e.onPointerUp,u.onThumbPointerUp)})});A.displayName=O;var _="ScrollAreaCorner",D=o.forwardRef((e,t)=>{let n=x(_,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&r?(0,h.jsx)(z,{...e,ref:t}):null});D.displayName=_;var z=o.forwardRef((e,t)=>{let{__scopeScrollArea:n,...r}=e,l=x(_,n),[a,s]=o.useState(0),[u,c]=o.useState(0),d=!!(a&&u);return Y(l.scrollbarX,()=>{var e;let t=(null===(e=l.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;l.onCornerHeightChange(t),c(t)}),Y(l.scrollbarY,()=>{var e;let t=(null===(e=l.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;l.onCornerWidthChange(t),s(t)}),d?(0,h.jsx)(i.WV.div,{...r,ref:t,style:{width:a,height:u,position:"absolute",right:"ltr"===l.dir?0:void 0,left:"rtl"===l.dir?0:void 0,bottom:0,...e.style}}):null});function W(e){return e?parseInt(e,10):0}function F(e,t){let n=e/t;return isNaN(n)?0:n}function U(e){let t=F(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-n)*t,18)}function H(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ltr",r=U(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-o,l=t.content-t.viewport,a=function(e,[t,n]){return Math.min(n,Math.max(t,e))}(e,"ltr"===n?[0,l]:[-1*l,0]);return B([0,l],[0,i-r])(a)}function B(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}var V=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n={left:e.scrollLeft,top:e.scrollTop},r=0;return!function o(){let i={left:e.scrollLeft,top:e.scrollTop},l=n.left!==i.left,a=n.top!==i.top;(l||a)&&t(),n=i,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)};function Z(e,t){let n=(0,u.W)(e),r=o.useRef(0);return o.useEffect(()=>()=>window.clearTimeout(r.current),[]),o.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function Y(e,t){let n=(0,u.W)(t);(0,d.b)(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}var $=o.forwardRef(({className:e,children:t,...n},o)=>(0,h.jsxs)(b,{ref:o,className:(0,r.m6)("overflow-hidden",e),...n,children:[t,(0,h.jsx)(D,{}),(0,h.jsx)(q,{orientation:"vertical"})]}));$.displayName=b.displayName;var K=o.forwardRef(({className:e,children:t,...n},o)=>(0,h.jsx)(w,{ref:o,className:(0,r.m6)("size-full rounded-[inherit]",e),...n,children:t}));K.displayName=w.displayName;var q=o.forwardRef(({className:e,orientation:t="vertical",...n},o)=>(0,h.jsx)(j,{ref:o,orientation:t,className:(0,r.m6)("flex select-none data-[state=hidden]:animate-fd-fade-out","vertical"===t&&"h-full w-1.5","horizontal"===t&&"h-1.5 flex-col",e),...n,children:(0,h.jsx)(A,{className:"relative flex-1 rounded-full bg-fd-border"})}));q.displayName=j.displayName},2918:function(e,t,n){"use strict";n.d(t,{v:function(){return o}});var r=n(2374);function o(e){let[t,n]=(0,r.useState)(!1),o=(0,r.useRef)(null),i=(0,r.useCallback)(()=>{o.current&&window.clearTimeout(o.current),o.current=window.setTimeout(()=>{n(!1)},1500),e(),n(!0)},[e]);return(0,r.useEffect)(()=>()=>{o.current&&window.clearTimeout(o.current)},[]),[t,i]}},2013:function(e,t,n){"use strict";n.d(t,{d:function(){return h},S:function(){return f}});var r=n(7933),o=n(2918),i=n(4183),l=n(5487),a=n(193);let s=(0,a.Z)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),u=(0,a.Z)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);var c=n(2374),d=n(7516),f=(0,c.forwardRef)(({className:e,...t},n)=>(0,d.jsx)("pre",{ref:n,className:(0,l.m6)("max-h-[400px] p-4",e),...t,children:t.children}));f.displayName="Pre";var h=(0,c.forwardRef)(({title:e,allowCopy:t=!0,keepBackground:n=!1,icon:o,className:i,...a},s)=>{let u=(0,c.useRef)(null),f=(0,c.useCallback)(()=>{let e=u.current?.getElementsByTagName("pre").item(0);if(!e)return;let t=e.cloneNode(!0);t.querySelectorAll(".nd-copy-ignore").forEach(e=>{e.remove()}),navigator.clipboard.writeText(t.textContent??"")},[]);return(0,d.jsxs)("figure",{ref:s,className:(0,l.m6)("not-prose group fd-codeblock relative my-6 overflow-hidden rounded-lg border bg-fd-secondary/50 text-sm",n&&"fd-codeblock-keep-bg",i),...a,children:[e?(0,d.jsxs)("div",{className:"flex flex-row items-center gap-2 border-b bg-fd-muted px-4 py-1.5",children:[o?(0,d.jsx)("div",{className:"text-fd-muted-foreground [&_svg]:size-3.5",..."string"==typeof o?{dangerouslySetInnerHTML:{__html:o}}:{children:o}}):null,(0,d.jsx)("figcaption",{className:"flex-1 truncate text-fd-muted-foreground",children:e}),t?(0,d.jsx)(m,{className:"-me-2",onCopy:f}):null]}):t&&(0,d.jsx)(m,{className:"absolute right-2 top-2 z-[2] backdrop-blur-sm",onCopy:f}),(0,d.jsxs)(r.xr,{ref:u,dir:"ltr",children:[(0,d.jsx)(r.fK,{children:a.children}),(0,d.jsx)(r.Bl,{orientation:"horizontal"})]})]})});function m({className:e,onCopy:t,...n}){let[r,a]=(0,o.v)(t);return(0,d.jsxs)("button",{type:"button",className:(0,l.m6)((0,i.d)({color:"ghost",className:"transition-all group-hover:opacity-100"}),!r&&"opacity-0",e),"aria-label":"Copy Text",onClick:a,...n,children:[(0,d.jsx)(s,{className:(0,l.m6)("size-3.5 transition-transform",!r&&"scale-0")}),(0,d.jsx)(u,{className:(0,l.m6)("absolute size-3.5 transition-transform",r&&"scale-0")})]})}h.displayName="CodeBlock"},9660:function(e,t,n){"use strict";let r;n.d(t,{J2:function(){return tQ},yk:function(){return t0},xo:function(){return tJ}});var o,i=n(5487),l=n(2374),a=n(312),s=n(6766),u=n(7706),c=n(4356),d=n(931),f=n(7516),h="dismissableLayer.update",m=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),p=l.forwardRef((e,t)=>{var n,r;let{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:u,onPointerDownOutside:p,onFocusOutside:x,onInteractOutside:b,onDismiss:y,...w}=e,E=l.useContext(m),[j,S]=l.useState(null),N=null!==(r=null==j?void 0:j.ownerDocument)&&void 0!==r?r:null===(n=globalThis)||void 0===n?void 0:n.document,[,C]=l.useState({}),R=(0,s.e)(t,e=>S(e)),P=Array.from(E.layers),[L]=[...E.layersWithOutsidePointerEventsDisabled].slice(-1),T=P.indexOf(L),M=j?P.indexOf(j):-1,k=E.layersWithOutsidePointerEventsDisabled.size>0,O=M>=T,A=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,d.W)(e),o=l.useRef(!1),i=l.useRef(()=>{});return l.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){v("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=t,n.addEventListener("click",i.current,{once:!0})):t()}else n.removeEventListener("click",i.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,n=[...E.branches].some(e=>e.contains(t));!O||n||(null==p||p(e),null==b||b(e),e.defaultPrevented||null==y||y())},N),I=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,d.W)(e),o=l.useRef(!1);return l.useEffect(()=>{let e=e=>{e.target&&!o.current&&v("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;[...E.branches].some(e=>e.contains(t))||(null==x||x(e),null==b||b(e),e.defaultPrevented||null==y||y())},N);return!function(e,t=globalThis?.document){let n=(0,d.W)(e);l.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{M!==E.layers.size-1||(null==u||u(e),!e.defaultPrevented&&y&&(e.preventDefault(),y()))},N),l.useEffect(()=>{if(j)return i&&(0===E.layersWithOutsidePointerEventsDisabled.size&&(o=N.body.style.pointerEvents,N.body.style.pointerEvents="none"),E.layersWithOutsidePointerEventsDisabled.add(j)),E.layers.add(j),g(),()=>{i&&1===E.layersWithOutsidePointerEventsDisabled.size&&(N.body.style.pointerEvents=o)}},[j,N,i,E]),l.useEffect(()=>()=>{j&&(E.layers.delete(j),E.layersWithOutsidePointerEventsDisabled.delete(j),g())},[j,E]),l.useEffect(()=>{let e=()=>C({});return document.addEventListener(h,e),()=>document.removeEventListener(h,e)},[]),(0,f.jsx)(c.WV.div,{...w,ref:R,style:{pointerEvents:k?O?"auto":"none":void 0,...e.style},onFocusCapture:(0,a.M)(e.onFocusCapture,I.onFocusCapture),onBlurCapture:(0,a.M)(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:(0,a.M)(e.onPointerDownCapture,A.onPointerDownCapture)})});function g(){let e=new CustomEvent(h);document.dispatchEvent(e)}function v(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?(0,c.jH)(i,l):i.dispatchEvent(l)}p.displayName="DismissableLayer",l.forwardRef((e,t)=>{let n=l.useContext(m),r=l.useRef(null),o=(0,s.e)(t,r);return l.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,f.jsx)(c.WV.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var x=0;function b(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var y="focusScope.autoFocusOnMount",w="focusScope.autoFocusOnUnmount",E={bubbles:!1,cancelable:!0},j=l.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[u,h]=l.useState(null),m=(0,d.W)(o),p=(0,d.W)(i),g=l.useRef(null),v=(0,s.e)(t,e=>h(e)),x=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let e=function(e){if(x.paused||!u)return;let t=e.target;u.contains(t)?g.current=t:C(g.current,{select:!0})},t=function(e){if(x.paused||!u)return;let t=e.relatedTarget;null===t||u.contains(t)||C(g.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&C(u)});return u&&n.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,u,x.paused]),l.useEffect(()=>{if(u){R.add(x);let e=document.activeElement;if(!u.contains(e)){let t=new CustomEvent(y,E);u.addEventListener(y,m),u.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(C(r,{select:t}),document.activeElement!==n)return}(S(u).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&C(u))}return()=>{u.removeEventListener(y,m),setTimeout(()=>{let t=new CustomEvent(w,E);u.addEventListener(w,p),u.dispatchEvent(t),t.defaultPrevented||C(null!=e?e:document.body,{select:!0}),u.removeEventListener(w,p),R.remove(x)},0)}}},[u,m,p,x]);let b=l.useCallback(e=>{if(!n&&!r||x.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,i]=function(e){let t=S(e);return[N(t,e),N(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&C(i,{select:!0})):(e.preventDefault(),n&&C(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,x.paused]);return(0,f.jsx)(c.WV.div,{tabIndex:-1,...a,ref:v,onKeyDown:b})});function S(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function N(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function C(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}j.displayName="FocusScope";var R=(r=[],{add(e){let t=r[0];e!==t&&(null==t||t.pause()),(r=P(r,e)).unshift(e)},remove(e){var t;null===(t=(r=P(r,e))[0])||void 0===t||t.resume()}});function P(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var L=n(7840);let T=["top","right","bottom","left"],M=Math.min,k=Math.max,O=Math.round,A=Math.floor,I=e=>({x:e,y:e}),_={left:"right",right:"left",bottom:"top",top:"bottom"},D={start:"end",end:"start"};function z(e,t){return"function"==typeof e?e(t):e}function W(e){return e.split("-")[0]}function F(e){return e.split("-")[1]}function U(e){return"x"===e?"y":"x"}function H(e){return"y"===e?"height":"width"}function B(e){return["top","bottom"].includes(W(e))?"y":"x"}function V(e){return e.replace(/start|end/g,e=>D[e])}function Z(e){return e.replace(/left|right|bottom|top/g,e=>_[e])}function Y(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function $(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function K(e,t,n){let r,{reference:o,floating:i}=e,l=B(t),a=U(B(t)),s=H(a),u=W(t),c="y"===l,d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,h=o[s]/2-i[s]/2;switch(u){case"top":r={x:d,y:o.y-i.height};break;case"bottom":r={x:d,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:f};break;case"left":r={x:o.x-i.width,y:f};break;default:r={x:o.x,y:o.y}}switch(F(t)){case"start":r[a]-=h*(n&&c?-1:1);break;case"end":r[a]+=h*(n&&c?-1:1)}return r}let q=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=i.filter(Boolean),s=await (null==l.isRTL?void 0:l.isRTL(t)),u=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=K(u,r,s),f=r,h={},m=0;for(let n=0;ne[t]>=0)}async function J(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=W(n),a=F(n),s="y"===B(n),u=["left","top"].includes(l)?-1:1,c=i&&s?-1:1,d=z(t,e),{mainAxis:f,crossAxis:h,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&"number"==typeof m&&(h="end"===a?-1*m:m),s?{x:h*c,y:f*u}:{x:f*u,y:h*c}}function ee(e){return er(e)?(e.nodeName||"").toLowerCase():"#document"}function et(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function en(e){var t;return null==(t=(er(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function er(e){return e instanceof Node||e instanceof et(e).Node}function eo(e){return e instanceof Element||e instanceof et(e).Element}function ei(e){return e instanceof HTMLElement||e instanceof et(e).HTMLElement}function el(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof et(e).ShadowRoot)}function ea(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=ef(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function es(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function eu(e){let t=ec(),n=eo(e)?ef(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function ec(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function ed(e){return["html","body","#document"].includes(ee(e))}function ef(e){return et(e).getComputedStyle(e)}function eh(e){return eo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function em(e){if("html"===ee(e))return e;let t=e.assignedSlot||e.parentNode||el(e)&&e.host||en(e);return el(t)?t.host:t}function ep(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=em(t);return ed(n)?t.ownerDocument?t.ownerDocument.body:t.body:ei(n)&&ea(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=et(o);if(i){let e=eg(l);return t.concat(l,l.visualViewport||[],ea(o)?o:[],e&&n?ep(e):[])}return t.concat(o,ep(o,[],n))}function eg(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ev(e){let t=ef(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=ei(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=O(n)!==i||O(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function ex(e){return eo(e)?e:e.contextElement}function eb(e){let t=ex(e);if(!ei(t))return I(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ev(t),l=(i?O(n.width):n.width)/r,a=(i?O(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let ey=I(0);function ew(e){let t=et(e);return ec()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ey}function eE(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=ex(e),a=I(1);t&&(r?eo(r)&&(a=eb(r)):a=eb(e));let s=(void 0===(o=n)&&(o=!1),r&&(!o||r===et(l))&&o)?ew(l):I(0),u=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,d=i.width/a.x,f=i.height/a.y;if(l){let e=et(l),t=r&&eo(r)?et(r):r,n=e,o=eg(n);for(;o&&r&&t!==n;){let e=eb(o),t=o.getBoundingClientRect(),r=ef(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,f*=e.y,u+=i,c+=l,o=eg(n=et(o))}}return $({width:d,height:f,x:u,y:c})}function ej(e){return eE(en(e)).left+eh(e).scrollLeft}function eS(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=et(e),r=en(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,s=0;if(o){i=o.width,l=o.height;let e=ec();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,s=o.offsetTop)}return{width:i,height:l,x:a,y:s}}(e,n);else if("document"===t)r=function(e){let t=en(e),n=eh(e),r=e.ownerDocument.body,o=k(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=k(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),l=-n.scrollLeft+ej(e),a=-n.scrollTop;return"rtl"===ef(r).direction&&(l+=k(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}(en(e));else if(eo(t))r=function(e,t){let n=eE(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ei(e)?eb(e):I(1),l=e.clientWidth*i.x;return{width:l,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{let n=ew(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return $(r)}function eN(e){return"static"===ef(e).position}function eC(e,t){return ei(e)&&"fixed"!==ef(e).position?t?t(e):e.offsetParent:null}function eR(e,t){let n=et(e);if(es(e))return n;if(!ei(e)){let t=em(e);for(;t&&!ed(t);){if(eo(t)&&!eN(t))return t;t=em(t)}return n}let r=eC(e,t);for(;r&&["table","td","th"].includes(ee(r))&&eN(r);)r=eC(r,t);return r&&ed(r)&&eN(r)&&!eu(r)?n:r||function(e){let t=em(e);for(;ei(t)&&!ed(t);){if(eu(t))return t;if(es(t))break;t=em(t)}return null}(e)||n}let eP=async function(e){let t=this.getOffsetParent||eR,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=ei(t),o=en(t),i="fixed"===n,l=eE(e,!0,i,t),a={scrollLeft:0,scrollTop:0},s=I(0);if(r||!r&&!i){if(("body"!==ee(t)||ea(o))&&(a=eh(t)),r){let e=eE(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=ej(o))}return{x:l.left+a.scrollLeft-s.x,y:l.top+a.scrollTop-s.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},eL={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=en(r),a=!!t&&es(t.floating);if(r===l||a&&i)return n;let s={scrollLeft:0,scrollTop:0},u=I(1),c=I(0),d=ei(r);if((d||!d&&!i)&&(("body"!==ee(r)||ea(l))&&(s=eh(r)),ei(r))){let e=eE(r);u=eb(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+c.x,y:n.y*u.y-s.scrollTop*u.y+c.y}},getDocumentElement:en,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?es(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=ep(e,[],!1).filter(e=>eo(e)&&"body"!==ee(e)),o=null,i="fixed"===ef(e).position,l=i?em(e):e;for(;eo(l)&&!ed(l);){let t=ef(l),n=eu(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||ea(l)&&!n&&function e(t,n){let r=em(t);return!(r===n||!eo(r)||ed(r))&&("fixed"===ef(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):o=t,l=em(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=i[0],a=i.reduce((e,n)=>{let r=eS(t,n,o);return e.top=k(r.top,e.top),e.right=M(r.right,e.right),e.bottom=M(r.bottom,e.bottom),e.left=k(r.left,e.left),e},eS(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:eR,getElementRects:eP,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=ev(e);return{width:t,height:n}},getScale:eb,isElement:eo,isRTL:function(e){return"rtl"===ef(e).direction}},eT=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:l,elements:a,middlewareData:s}=t,{element:u,padding:c=0}=z(e,t)||{};if(null==u)return{};let d=Y(c),f={x:n,y:r},h=U(B(o)),m=H(h),p=await l.getDimensions(u),g="y"===h,v=g?"clientHeight":"clientWidth",x=i.reference[m]+i.reference[h]-f[h]-i.floating[m],b=f[h]-i.reference[h],y=await (null==l.getOffsetParent?void 0:l.getOffsetParent(u)),w=y?y[v]:0;w&&await (null==l.isElement?void 0:l.isElement(y))||(w=a.floating[v]||i.floating[m]);let E=w/2-p[m]/2-1,j=M(d[g?"top":"left"],E),S=M(d[g?"bottom":"right"],E),N=w-p[m]-S,C=w/2-p[m]/2+(x/2-b/2),R=k(j,M(C,N)),P=!s.arrow&&null!=F(o)&&C!==R&&i.reference[m]/2-(C{let r=new Map,o={platform:eL,...n},i={...o.platform,_c:r};return q(e,t,{...o,platform:i})};var ek=n(7372),eO="undefined"!=typeof document?l.useLayoutEffect:l.useEffect;function eA(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!eA(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!eA(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eI(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function e_(e,t){let n=eI(e);return Math.round(t*n)/n}function eD(e){let t=l.useRef(e);return eO(()=>{t.current=e}),t}let ez=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?eT({element:n.current,padding:r}).fn(t):{}:n?eT({element:n,padding:r}).fn(t):{}}}),eW=(e,t)=>{var n;return{...(void 0===(n=e)&&(n=0),{name:"offset",options:n,async fn(e){var t,r;let{x:o,y:i,placement:l,middlewareData:a}=e,s=await J(e,n);return l===(null==(t=a.offset)?void 0:t.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:l}}}}),options:[e,t]}},eF=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:r,placement:o}=e,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=z(n,e),u={x:t,y:r},c=await G(e,s),d=B(W(o)),f=U(d),h=u[f],m=u[d];if(i){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=h+c[e],r=h-c[t];h=k(n,M(h,r))}if(l){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=m+c[e],r=m-c[t];m=k(n,M(m,r))}let p=a.fn({...e,[f]:h,[d]:m});return{...p,data:{x:p.x-t,y:p.y-r}}}}),options:[e,t]}},eU=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{options:n,fn(e){let{x:t,y:r,placement:o,rects:i,middlewareData:l}=e,{offset:a=0,mainAxis:s=!0,crossAxis:u=!0}=z(n,e),c={x:t,y:r},d=B(o),f=U(d),h=c[f],m=c[d],p=z(a,e),g="number"==typeof p?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(s){let e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+g.mainAxis,n=i.reference[f]+i.reference[e]-g.mainAxis;hn&&(h=n)}if(u){var v,x;let e="y"===f?"width":"height",t=["top","left"].includes(W(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(v=l.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(x=l.offset)?void 0:x[d])||0)-(t?g.crossAxis:0);mr&&(m=r)}return{[f]:h,[d]:m}}}),options:[e,t]}},eH=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"flip",options:n,async fn(e){var t,r,o,i,l;let{placement:a,middlewareData:s,rects:u,initialPlacement:c,platform:d,elements:f}=e,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:x=!0,...b}=z(n,e);if(null!=(t=s.arrow)&&t.alignmentOffset)return{};let y=W(a),w=B(c),E=W(c)===c,j=await (null==d.isRTL?void 0:d.isRTL(f.floating)),S=p||(E||!x?[Z(c)]:function(e){let t=Z(e);return[V(e),t,V(t)]}(c)),N="none"!==v;!p&&N&&S.push(...function(e,t,n,r){let o=F(e),i=function(e,t,n){let r=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":if(n)return t?o:r;return t?r:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(W(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(V)))),i}(c,x,v,j));let C=[c,...S],R=await G(e,b),P=[],L=(null==(r=s.flip)?void 0:r.overflows)||[];if(h&&P.push(R[y]),m){let e=function(e,t,n){void 0===n&&(n=!1);let r=F(e),o=U(B(e)),i=H(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Z(l)),[l,Z(l)]}(a,u,j);P.push(R[e[0]],R[e[1]])}if(L=[...L,{placement:a,overflows:P}],!P.every(e=>e<=0)){let e=((null==(o=s.flip)?void 0:o.index)||0)+1,t=C[e];if(t)return{data:{index:e,overflows:L},reset:{placement:t}};let n=null==(i=L.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(g){case"bestFit":{let e=null==(l=L.filter(e=>{if(N){let t=B(e.placement);return t===w||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:l[0];e&&(n=e);break}case"initialPlacement":n=c}if(a!==n)return{reset:{placement:n}}}return{}}}),options:[e,t]}},eB=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"size",options:n,async fn(e){let t,r;let{placement:o,rects:i,platform:l,elements:a}=e,{apply:s=()=>{},...u}=z(n,e),c=await G(e,u),d=W(o),f=F(o),h="y"===B(o),{width:m,height:p}=i.floating;"top"===d||"bottom"===d?(t=d,r=f===(await (null==l.isRTL?void 0:l.isRTL(a.floating))?"start":"end")?"left":"right"):(r=d,t="end"===f?"top":"bottom");let g=p-c.top-c.bottom,v=m-c.left-c.right,x=M(p-c[t],g),b=M(m-c[r],v),y=!e.middlewareData.shift,w=x,E=b;if(h?E=f||y?M(b,v):v:w=f||y?M(x,g):g,y&&!f){let e=k(c.left,0),t=k(c.right,0),n=k(c.top,0),r=k(c.bottom,0);h?E=m-2*(0!==e||0!==t?e+t:k(c.left,c.right)):w=p-2*(0!==n||0!==r?n+r:k(c.top,c.bottom))}await s({...e,availableWidth:E,availableHeight:w});let j=await l.getDimensions(a.floating);return m!==j.width||p!==j.height?{reset:{rects:!0}}:{}}}),options:[e,t]}},eV=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"hide",options:n,async fn(e){let{rects:t}=e,{strategy:r="referenceHidden",...o}=z(n,e);switch(r){case"referenceHidden":{let n=X(await G(e,{...o,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:Q(n)}}}case"escaped":{let n=X(await G(e,{...o,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:Q(n)}}}default:return{}}}}),options:[e,t]}},eZ=(e,t)=>({...ez(e),options:[e,t]});var eY=l.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,f.jsx)(c.WV.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,f.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eY.displayName="Arrow";var e$=n(2656),eK="Popper",[eq,eG]=(0,u.b)(eK),[eX,eQ]=eq(eK),eJ=e=>{let{__scopePopper:t,children:n}=e,[r,o]=l.useState(null);return(0,f.jsx)(eX,{scope:t,anchor:r,onAnchorChange:o,children:n})};eJ.displayName=eK;var e0="PopperAnchor",e1=l.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...o}=e,i=eQ(e0,n),a=l.useRef(null),u=(0,s.e)(t,a);return l.useEffect(()=>{i.onAnchorChange((null==r?void 0:r.current)||a.current)}),r?null:(0,f.jsx)(c.WV.div,{...o,ref:u})});e1.displayName=e0;var e2="PopperContent",[e6,e3]=eq(e2),e4=l.forwardRef((e,t)=>{var n,r,o,i,a,u,h,m;let{__scopePopper:p,side:g="bottom",sideOffset:v=0,align:x="center",alignOffset:b=0,arrowPadding:y=0,avoidCollisions:w=!0,collisionBoundary:E=[],collisionPadding:j=0,sticky:S="partial",hideWhenDetached:N=!1,updatePositionStrategy:C="optimized",onPlaced:R,...P}=e,L=eQ(e2,p),[T,O]=l.useState(null),I=(0,s.e)(t,e=>O(e)),[_,D]=l.useState(null),z=function(e){let[t,n]=l.useState(void 0);return(0,e$.b)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(_),W=null!==(h=null==z?void 0:z.width)&&void 0!==h?h:0,F=null!==(m=null==z?void 0:z.height)&&void 0!==m?m:0,U="number"==typeof j?j:{top:0,right:0,bottom:0,left:0,...j},H=Array.isArray(E)?E:[E],B=H.length>0,V={padding:U,boundary:H.filter(e9),altBoundary:B},{refs:Z,floatingStyles:Y,placement:$,isPositioned:K,middlewareData:q}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:u,open:c}=e,[d,f]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=l.useState(r);eA(h,r)||m(r);let[p,g]=l.useState(null),[v,x]=l.useState(null),b=l.useCallback(e=>{e!==j.current&&(j.current=e,g(e))},[]),y=l.useCallback(e=>{e!==S.current&&(S.current=e,x(e))},[]),w=i||p,E=a||v,j=l.useRef(null),S=l.useRef(null),N=l.useRef(d),C=null!=u,R=eD(u),P=eD(o),L=l.useCallback(()=>{if(!j.current||!S.current)return;let e={placement:t,strategy:n,middleware:h};P.current&&(e.platform=P.current),eM(j.current,S.current,e).then(e=>{let t={...e,isPositioned:!0};T.current&&!eA(N.current,t)&&(N.current=t,ek.flushSync(()=>{f(t)}))})},[h,t,n,P]);eO(()=>{!1===c&&N.current.isPositioned&&(N.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[c]);let T=l.useRef(!1);eO(()=>(T.current=!0,()=>{T.current=!1}),[]),eO(()=>{if(w&&(j.current=w),E&&(S.current=E),w&&E){if(R.current)return R.current(w,E,L);L()}},[w,E,L,R,C]);let M=l.useMemo(()=>({reference:j,floating:S,setReference:b,setFloating:y}),[b,y]),k=l.useMemo(()=>({reference:w,floating:E}),[w,E]),O=l.useMemo(()=>{let e={position:n,left:0,top:0};if(!k.floating)return e;let t=e_(k.floating,d.x),r=e_(k.floating,d.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...eI(k.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,k.floating,d.x,d.y]);return l.useMemo(()=>({...d,update:L,refs:M,elements:k,floatingStyles:O}),[d,L,M,k,O])}({strategy:"fixed",placement:g+("center"!==x?"-"+x:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n{i&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)});let f=c&&s?function(e,t){let n,r=null,o=en(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function l(a,s){void 0===a&&(a=!1),void 0===s&&(s=1),i();let{left:u,top:c,width:d,height:f}=e.getBoundingClientRect();if(a||t(),!d||!f)return;let h=A(c),m=A(o.clientWidth-(u+d)),p={rootMargin:-h+"px "+-m+"px "+-A(o.clientHeight-(c+f))+"px "+-A(u)+"px",threshold:k(0,M(1,s))||1},g=!0;function v(e){let t=e[0].intersectionRatio;if(t!==s){if(!g)return l();t?l(!1,t):n=setTimeout(()=>{l(!1,1e-7)},1e3)}g=!1}try{r=new IntersectionObserver(v,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(v,p)}r.observe(e)}(!0),i}(c,n):null,h=-1,m=null;a&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),c&&!u&&m.observe(c),m.observe(t));let p=u?eE(e):null;return u&&function t(){let r=eE(e);p&&(r.x!==p.x||r.y!==p.y||r.width!==p.width||r.height!==p.height)&&n(),p=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{i&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=m)||e.disconnect(),m=null,u&&cancelAnimationFrame(o)}}(...t,{animationFrame:"always"===C})},elements:{reference:L.anchor},middleware:[eW({mainAxis:v+F,alignmentAxis:b}),w&&eF({mainAxis:!0,crossAxis:!1,limiter:"partial"===S?eU():void 0,...V}),w&&eH({...V}),eB({...V,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:l}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(o,"px")),a.setProperty("--radix-popper-anchor-width","".concat(i,"px")),a.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),_&&eZ({element:_,padding:y}),te({arrowWidth:W,arrowHeight:F}),N&&eV({strategy:"referenceHidden",...V})]}),[G,X]=tt($),Q=(0,d.W)(R);(0,e$.b)(()=>{K&&(null==Q||Q())},[K,Q]);let J=null===(n=q.arrow)||void 0===n?void 0:n.x,ee=null===(r=q.arrow)||void 0===r?void 0:r.y,et=(null===(o=q.arrow)||void 0===o?void 0:o.centerOffset)!==0,[er,eo]=l.useState();return(0,e$.b)(()=>{T&&eo(window.getComputedStyle(T).zIndex)},[T]),(0,f.jsx)("div",{ref:Z.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:K?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:er,"--radix-popper-transform-origin":[null===(i=q.transformOrigin)||void 0===i?void 0:i.x,null===(a=q.transformOrigin)||void 0===a?void 0:a.y].join(" "),...(null===(u=q.hide)||void 0===u?void 0:u.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,f.jsx)(e6,{scope:p,placedSide:G,onArrowChange:D,arrowX:J,arrowY:ee,shouldHideArrow:et,children:(0,f.jsx)(c.WV.div,{"data-side":G,"data-align":X,...P,ref:I,style:{...P.style,animation:K?void 0:"none"}})})})});e4.displayName=e2;var e7="PopperArrow",e5={top:"bottom",right:"left",bottom:"top",left:"right"},e8=l.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=e3(e7,n),i=e5[o.placedSide];return(0,f.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,f.jsx)(eY,{...r,ref:t,style:{...r.style,display:"block"}})})});function e9(e){return null!==e}e8.displayName=e7;var te=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:s,middlewareData:u}=t,c=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,m]=tt(a),p={start:"0%",center:"50%",end:"100%"}[m],g=(null!==(i=null===(r=u.arrow)||void 0===r?void 0:r.x)&&void 0!==i?i:0)+d/2,v=(null!==(l=null===(o=u.arrow)||void 0===o?void 0:o.y)&&void 0!==l?l:0)+f/2,x="",b="";return"bottom"===h?(x=c?p:"".concat(g,"px"),b="".concat(-f,"px")):"top"===h?(x=c?p:"".concat(g,"px"),b="".concat(s.floating.height+f,"px")):"right"===h?(x="".concat(-f,"px"),b=c?p:"".concat(v,"px")):"left"===h&&(x="".concat(s.floating.width+f,"px"),b=c?p:"".concat(v,"px")),{data:{x,y:b}}}});function tt(e){let[t,n="center"]=e.split("-");return[t,n]}var tn=l.forwardRef((e,t)=>{var n,r;let{container:o,...i}=e,[a,s]=l.useState(!1);(0,e$.b)(()=>s(!0),[]);let u=o||a&&(null===(r=globalThis)||void 0===r?void 0:null===(n=r.document)||void 0===n?void 0:n.body);return u?ek.createPortal((0,f.jsx)(c.WV.div,{...i,ref:t}),u):null});tn.displayName="Portal";var tr=n(3301),to=n(9984),ti=n(5960),tl=n(922),ta=n(4539),ts=n(7118),tu=n(6622),tc=(0,n(679)._)(),td=function(){},tf=l.forwardRef(function(e,t){var n=l.useRef(null),r=l.useState({onScrollCapture:td,onWheelCapture:td,onTouchMoveCapture:td}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,h=e.sideCar,m=e.noIsolation,p=e.inert,g=e.allowPinchZoom,v=e.as,x=e.gapMode,b=(0,ta._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),y=(0,tu.q)([n,t]),w=(0,ta.pi)((0,ta.pi)({},b),o);return l.createElement(l.Fragment,null,d&&l.createElement(h,{sideCar:tc,removeScrollBar:c,shards:f,noIsolation:m,inert:p,setCallbacks:i,allowPinchZoom:!!g,lockRef:n,gapMode:x}),a?l.cloneElement(l.Children.only(s),(0,ta.pi)((0,ta.pi)({},w),{ref:y})):l.createElement(void 0===v?"div":v,(0,ta.pi)({},w,{className:u,ref:y}),s))});tf.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},tf.classNames={fullWidth:ts.zi,zeroRight:ts.pF};var th=n(9937),tm=n(9718),tp=n(7323),tg=!1;if("undefined"!=typeof window)try{var tv=Object.defineProperty({},"passive",{get:function(){return tg=!0,!0}});window.addEventListener("test",tv,tv),window.removeEventListener("test",tv,tv)}catch(e){tg=!1}var tx=!!tg&&{passive:!1},tb=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},ty=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),tw(e,r)){var o=tE(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},tw=function(e,t){return"v"===e?tb(t,"overflowY"):tb(t,"overflowX")},tE=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},tj=function(e,t,n,r,o){var i,l=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),a=l*r,s=n.target,u=t.contains(s),c=!1,d=a>0,f=0,h=0;do{var m=tE(e,s),p=m[0],g=m[1]-m[2]-l*p;(p||g)&&tw(e,s)&&(f+=g,h+=p),s instanceof ShadowRoot?s=s.host:s=s.parentNode}while(!u&&s!==document.body||u&&(t.contains(s)||t===s));return d&&(o&&1>Math.abs(f)||!o&&a>f)?c=!0:!d&&(o&&1>Math.abs(h)||!o&&-a>h)&&(c=!0),c},tS=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},tN=function(e){return[e.deltaX,e.deltaY]},tC=function(e){return e&&"current"in e?e.current:e},tR=0,tP=[],tL=(0,th.L)(tc,function(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),o=l.useState(tR++)[0],i=l.useState(tp.Ws)[0],a=l.useRef(e);l.useEffect(function(){a.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(0,ta.ev)([e.lockRef.current],(e.shards||[]).map(tC),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=l.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var o,i=tS(e),l=n.current,s="deltaX"in e?e.deltaX:l[0]-i[0],u="deltaY"in e?e.deltaY:l[1]-i[1],c=e.target,d=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=ty(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=ty(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(s||u)&&(r.current=o),!o)return!0;var h=r.current||o;return tj(h,t,e,"h"===h?s:u,!0)},[]),u=l.useCallback(function(e){if(tP.length&&tP[tP.length-1]===i){var n="deltaY"in e?tN(e):tS(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(a.current.shards||[]).map(tC).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?s(e,o[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=l.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=l.useCallback(function(e){n.current=tS(e),r.current=void 0},[]),f=l.useCallback(function(t){c(t.type,tN(t),t.target,s(t,e.lockRef.current))},[]),h=l.useCallback(function(t){c(t.type,tS(t),t.target,s(t,e.lockRef.current))},[]);l.useEffect(function(){return tP.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",u,tx),document.addEventListener("touchmove",u,tx),document.addEventListener("touchstart",d,tx),function(){tP=tP.filter(function(e){return e!==i}),document.removeEventListener("wheel",u,tx),document.removeEventListener("touchmove",u,tx),document.removeEventListener("touchstart",d,tx)}},[]);var m=e.removeScrollBar,p=e.inert;return l.createElement(l.Fragment,null,p?l.createElement(i,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,m?l.createElement(tm.jp,{gapMode:e.gapMode}):null)}),tT=l.forwardRef(function(e,t){return l.createElement(tf,(0,ta.pi)({},e,{ref:t,sideCar:tL}))});tT.classNames=tf.classNames;var tM="Popover",[tk,tO]=(0,u.b)(tM,[eG]),tA=eG(),[tI,t_]=tk(tM),tD=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,s=tA(t),u=l.useRef(null),[c,d]=l.useState(!1),[h=!1,m]=(0,ti.T)({prop:r,defaultProp:o,onChange:i});return(0,f.jsx)(eJ,{...s,children:(0,f.jsx)(tI,{scope:t,contentId:(0,L.M)(),triggerRef:u,open:h,onOpenChange:m,onOpenToggle:l.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:c,onCustomAnchorAdd:l.useCallback(()=>d(!0),[]),onCustomAnchorRemove:l.useCallback(()=>d(!1),[]),modal:a,children:n})})};tD.displayName=tM;var tz="PopoverAnchor";l.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=t_(tz,n),i=tA(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:s}=o;return l.useEffect(()=>(a(),()=>s()),[a,s]),(0,f.jsx)(e1,{...i,...r,ref:t})}).displayName=tz;var tW="PopoverTrigger",tF=l.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=t_(tW,n),i=tA(n),l=(0,s.e)(t,o.triggerRef),u=(0,f.jsx)(c.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":tX(o.open),...r,ref:l,onClick:(0,a.M)(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?u:(0,f.jsx)(e1,{asChild:!0,...i,children:u})});tF.displayName=tW;var tU="PopoverPortal",[tH,tB]=tk(tU,{forceMount:void 0}),tV=e=>{let{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=t_(tU,t);return(0,f.jsx)(tH,{scope:t,forceMount:n,children:(0,f.jsx)(tr.z,{present:n||i.open,children:(0,f.jsx)(tn,{asChild:!0,container:o,children:r})})})};tV.displayName=tU;var tZ="PopoverContent",tY=l.forwardRef((e,t)=>{let n=tB(tZ,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=t_(tZ,e.__scopePopover);return(0,f.jsx)(tr.z,{present:r||i.open,children:i.modal?(0,f.jsx)(t$,{...o,ref:t}):(0,f.jsx)(tK,{...o,ref:t})})});tY.displayName=tZ;var t$=l.forwardRef((e,t)=>{let n=t_(tZ,e.__scopePopover),r=l.useRef(null),o=(0,s.e)(t,r),i=l.useRef(!1);return l.useEffect(()=>{let e=r.current;if(e)return(0,tl.Ry)(e)},[]),(0,f.jsx)(tT,{as:to.g7,allowPinchZoom:!0,children:(0,f.jsx)(tq,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,a.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),i.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,a.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;i.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,a.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),tK=l.forwardRef((e,t)=>{let n=t_(tZ,e.__scopePopover),r=l.useRef(!1),o=l.useRef(!1);return(0,f.jsx)(tq,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,l;null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current||null===(l=n.triggerRef.current)||void 0===l||l.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{var i,l;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"!==t.detail.originalEvent.type||(o.current=!0));let a=t.target;(null===(l=n.triggerRef.current)||void 0===l?void 0:l.contains(a))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),tq=l.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,...h}=e,m=t_(tZ,n),g=tA(n);return l.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:b()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:b()),x++,()=>{1===x&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),x--}},[]),(0,f.jsx)(j,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,f.jsx)(p,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:d,onEscapeKeyDown:s,onPointerDownOutside:u,onFocusOutside:c,onDismiss:()=>m.onOpenChange(!1),children:(0,f.jsx)(e4,{"data-state":tX(m.open),role:"dialog",id:m.contentId,...g,...h,ref:t,style:{...h.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),tG="PopoverClose";function tX(e){return e?"open":"closed"}l.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=t_(tG,n);return(0,f.jsx)(c.WV.button,{type:"button",...r,ref:t,onClick:(0,a.M)(e.onClick,()=>o.onOpenChange(!1))})}).displayName=tG,l.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=tA(n);return(0,f.jsx)(e8,{...o,...r,ref:t})}).displayName="PopoverArrow";var tQ=tD,tJ=tF,t0=l.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>(0,f.jsx)(tV,{children:(0,f.jsx)(tY,{ref:o,align:t,sideOffset:n,side:"bottom",className:(0,i.m6)("z-50 min-w-[220px] max-w-[98vw] rounded-lg border bg-fd-popover p-2 text-sm text-fd-popover-foreground shadow-md data-[state=closed]:animate-fd-popover-out data-[state=open]:animate-fd-popover-in",e),...r})}));t0.displayName=tY.displayName},462:function(e,t,n){"use strict";n.d(t,{K:function(){return i}});var r=n(2374),o=n(8296);function i(e){let t=o._z(),[n,i]=(0,r.useState)([0,0]);return(0,r.useLayoutEffect)(()=>{let n=e.current;if(0===t.length||!n||0===n.clientHeight){i([0,0]);return}let r=Number.MAX_VALUE,o=0;for(let e of t){let t=n.querySelector(`a[href="#${e}"]`);if(!t)continue;let i=getComputedStyle(t);r=Math.min(r,t.offsetTop+parseFloat(i.paddingTop)),o=Math.max(o,t.offsetTop+t.clientHeight-parseFloat(i.paddingBottom))}i([r,o-r])},[t,e]),n}},721:function(e,t,n){"use strict";n.d(t,{zF:function(){return C},Fw:function(){return P},wy:function(){return R}});var r=n(5487),o=n(2374),i=n(312),l=n(7706),a=n(5960),s=n(2656),u=n(6766),c=n(4356),d=n(3301),f=n(7840),h=n(7516),m="Collapsible",[p,g]=(0,l.b)(m),[v,x]=p(m),b=o.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:l,onOpenChange:s,...u}=e,[d=!1,m]=(0,a.T)({prop:r,defaultProp:i,onChange:s});return(0,h.jsx)(v,{scope:n,disabled:l,contentId:(0,f.M)(),open:d,onOpenToggle:o.useCallback(()=>m(e=>!e),[m]),children:(0,h.jsx)(c.WV.div,{"data-state":N(d),"data-disabled":l?"":void 0,...u,ref:t})})});b.displayName=m;var y="CollapsibleTrigger",w=o.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,o=x(y,n);return(0,h.jsx)(c.WV.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":N(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:(0,i.M)(e.onClick,o.onOpenToggle)})});w.displayName=y;var E="CollapsibleContent",j=o.forwardRef((e,t)=>{let{forceMount:n,...r}=e,o=x(E,e.__scopeCollapsible);return(0,h.jsx)(d.z,{present:n||o.open,children:e=>{let{present:n}=e;return(0,h.jsx)(S,{...r,ref:t,present:n})}})});j.displayName=E;var S=o.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:r,children:i,...l}=e,a=x(E,n),[d,f]=o.useState(r),m=o.useRef(null),p=(0,u.e)(t,m),g=o.useRef(0),v=g.current,b=o.useRef(0),y=b.current,w=a.open||d,j=o.useRef(w),S=o.useRef();return o.useEffect(()=>{let e=requestAnimationFrame(()=>j.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,s.b)(()=>{let e=m.current;if(e){S.current=S.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();g.current=t.height,b.current=t.width,j.current||(e.style.transitionDuration=S.current.transitionDuration,e.style.animationName=S.current.animationName),f(r)}},[a.open,r]),(0,h.jsx)(c.WV.div,{"data-state":N(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!w,...l,ref:p,style:{"--radix-collapsible-content-height":v?"".concat(v,"px"):void 0,"--radix-collapsible-content-width":y?"".concat(y,"px"):void 0,...e.style},children:w&&i})});function N(e){return e?"open":"closed"}var C=b,R=w,P=(0,o.forwardRef)(({children:e,...t},n)=>(0,h.jsx)(j,{ref:n,...t,className:(0,r.m6)("overflow-hidden [--radix-collapsible-content-height:0px] data-[state=closed]:animate-fd-collapsible-up data-[state=open]:animate-fd-collapsible-down",t.className),children:e}));P.displayName=j.displayName},8159:function(e,t,n){"use strict";n.d(t,{CodeBlock:function(){return r.d},Pre:function(){return r.S}});var r=n(2013);n(7933),n(2918),n(4183),n(6776)},4772:function(e,t,n){"use strict";n.r(t),n.d(t,{File:function(){return m},Files:function(){return h},Folder:function(){return p}});var r=n(721),o=n(5487);n(6776);var i=n(2771),l=n(193);let a=(0,l.Z)("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]),s=(0,l.Z)("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]),u=(0,l.Z)("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);var c=n(2374),d=n(7516),f=(0,i.j)("flex flex-row items-center gap-2 rounded-md px-2 py-1.5 text-sm hover:bg-fd-accent hover:text-fd-accent-foreground [&_svg]:size-4");function h(e){let{className:t,...n}=e;return(0,d.jsx)("div",{className:(0,o.m6)("not-prose rounded-md border bg-fd-card p-2",t),...n,children:n.children})}function m(e){let{name:t,icon:n=(0,d.jsx)(a,{}),className:r,...i}=e;return(0,d.jsxs)("div",{className:(0,o.m6)(f({className:r})),...i,children:[n,t]})}function p(e){let{name:t,defaultOpen:n=!1,...i}=e,[l,a]=(0,c.useState)(n);return(0,d.jsxs)(r.zF,{open:l,onOpenChange:a,...i,children:[(0,d.jsxs)(r.wy,{className:(0,o.m6)(f({className:"w-full"})),children:[l?(0,d.jsx)(s,{}):(0,d.jsx)(u,{}),t]}),(0,d.jsx)(r.Fw,{children:(0,d.jsx)("div",{className:"ms-2 flex flex-col border-l pl-2",children:i.children})})]})}},4462:function(e,t,n){"use strict";n.d(t,{ImageZoom:function(){return O}});var r=n(8196);n(6776);var o=n(2313),i=n.n(o),l=n(2374),a=n(7372);let s=(e,t)=>e===t?.tagName?.toUpperCase?.(),u=e=>s("DIV",e)||s("SPAN",e),c=e=>s("IMG",e),d=e=>e.complete&&0!==e.naturalHeight,f=e=>s("SVG",e),h=({height:e,offset:t,width:n})=>Math.min((window.innerWidth-2*t)/n,(window.innerHeight-2*t)/e),m=({containerHeight:e,containerWidth:t,offset:n,targetHeight:r,targetWidth:o})=>{let i=h({height:r,offset:n,width:o}),l=o>r?o/t:r/e;return i>1?l:i*l},p=({containerHeight:e,containerWidth:t,hasScalableSrc:n,offset:r,targetHeight:o,targetWidth:i})=>e&&t?!n&&o&&i?m({containerHeight:e,containerWidth:t,offset:r,targetHeight:o,targetWidth:i}):h({height:e,offset:r,width:t}):1,g=/url(?:\(['"]?)(.*?)(?:['"]?\))/,v=e=>{if(e){if(c(e))return e.currentSrc;if(u(e)){let t=window.getComputedStyle(e).backgroundImage;if(t)return g.exec(t)?.[1]}}},x=e=>{if(e)return c(e)?e.alt??void 0:e.getAttribute("aria-label")??void 0},b=({containerHeight:e,containerLeft:t,containerTop:n,containerWidth:r,hasScalableSrc:o,offset:i,targetHeight:l,targetWidth:a})=>{let s=p({containerHeight:e,containerWidth:r,hasScalableSrc:o,offset:i,targetHeight:l,targetWidth:a});return{top:n,left:t,width:r*s,height:e*s,transform:`translate(0,0) scale(${1/s})`}},y=({position:e,relativeNum:t})=>{let n=parseFloat(e);return e.endsWith("%")?t*n/100:n},w=({containerHeight:e,containerLeft:t,containerTop:n,containerWidth:r,hasScalableSrc:o,objectFit:i,objectPosition:l,offset:a,targetHeight:s,targetWidth:u})=>{if("scale-down"===i&&(i=u<=r&&s<=e?"none":"contain"),"cover"===i||"contain"===i){let c=r/u,d=e/s,f="cover"===i?Math.max(c,d):Math.min(c,d),[h="50%",m="50%"]=l.split(" "),g=y({position:h,relativeNum:r-u*f}),v=y({position:m,relativeNum:e-s*f}),x=p({containerHeight:s*f,containerWidth:u*f,hasScalableSrc:o,offset:a,targetHeight:s,targetWidth:u});return{top:n+v,left:t+g,width:u*f*x,height:s*f*x,transform:`translate(0,0) scale(${1/x})`}}if("none"===i){let[i="50%",c="50%"]=l.split(" "),d=y({position:i,relativeNum:r-u}),f=y({position:c,relativeNum:e-s}),h=p({containerHeight:s,containerWidth:u,hasScalableSrc:o,offset:a,targetHeight:s,targetWidth:u});return{top:n+f,left:t+d,width:u*h,height:s*h,transform:`translate(0,0) scale(${1/h})`}}if("fill"!==i)return{};{let t=Math.max(r/u,e/s),n=p({containerHeight:s*t,containerWidth:u*t,hasScalableSrc:o,offset:a,targetHeight:s,targetWidth:u});return{width:r*n,height:e*n,transform:`translate(0,0) scale(${1/n})`}}},E=({backgroundPosition:e,backgroundSize:t,containerHeight:n,containerLeft:r,containerTop:o,containerWidth:i,hasScalableSrc:l,offset:a,targetHeight:s,targetWidth:u})=>{if("cover"===t||"contain"===t){let c=i/u,d=n/s,f="cover"===t?Math.max(c,d):Math.min(c,d),[h="50%",m="50%"]=e.split(" "),g=y({position:h,relativeNum:i-u*f}),v=y({position:m,relativeNum:n-s*f}),x=p({containerHeight:s*f,containerWidth:u*f,hasScalableSrc:l,offset:a,targetHeight:s,targetWidth:u});return{top:o+v,left:r+g,width:u*f*x,height:s*f*x,transform:`translate(0,0) scale(${1/x})`}}if("auto"===t){let[t="50%",c="50%"]=e.split(" "),d=y({position:t,relativeNum:i-u}),f=y({position:c,relativeNum:n-s}),h=p({containerHeight:s,containerWidth:u,hasScalableSrc:l,offset:a,targetHeight:s,targetWidth:u});return{top:o+f,left:r+d,width:u*h,height:s*h,transform:`translate(0,0) scale(${1/h})`}}{let[c="50%",d="50%"]=t.split(" "),f=Math.min(y({position:c,relativeNum:i})/u,y({position:d,relativeNum:n})/s),[h="50%",m="50%"]=e.split(" "),g=y({position:h,relativeNum:i-u*f}),v=y({position:m,relativeNum:n-s*f}),x=p({containerHeight:s*f,containerWidth:u*f,hasScalableSrc:l,offset:a,targetHeight:s,targetWidth:u});return{top:o+v,left:r+g,width:u*f*x,height:s*f*x,transform:`translate(0,0) scale(${1/x})`}}},j=/\.svg$/i,S=({hasZoomImg:e,imgSrc:t,isSvg:n,isZoomed:r,loadedImgEl:o,offset:i,shouldRefresh:l,targetEl:a})=>{let s=n||t?.slice?.(0,18)==="data:image/svg+xml"||e||!!(t&&j.test(t)),c=a.getBoundingClientRect(),d=window.getComputedStyle(a),f=null!=o&&u(a),h=Object.assign({},b({containerHeight:c.height,containerLeft:c.left,containerTop:c.top,containerWidth:c.width,hasScalableSrc:s,offset:i,targetHeight:o?.naturalHeight||c.height,targetWidth:o?.naturalWidth||c.width}),null==o||f?void 0:w({containerHeight:c.height,containerLeft:c.left,containerTop:c.top,containerWidth:c.width,hasScalableSrc:s,objectFit:d.objectFit,objectPosition:d.objectPosition,offset:i,targetHeight:o?.naturalHeight||c.height,targetWidth:o?.naturalWidth||c.width}),f?E({backgroundPosition:d.backgroundPosition,backgroundSize:d.backgroundSize,containerHeight:c.height,containerLeft:c.left,containerTop:c.top,containerWidth:c.width,hasScalableSrc:s,offset:i,targetHeight:o?.naturalHeight||c.height,targetWidth:o?.naturalWidth||c.width}):void 0);if(r){let e=window.innerWidth/2,t=window.innerHeight/2,n=parseFloat(String(h.left||0))+parseFloat(String(h.width||0))/2,r=parseFloat(String(h.top||0))+parseFloat(String(h.height||0))/2;l&&(h.transitionDuration="0.01ms"),h.transform=`translate(${e-n}px,${t-r}px) scale(1)`}return h},N=e=>{if(!e)return{};if(!f(e))return{height:e.offsetHeight,left:e.offsetLeft,width:e.offsetWidth,top:e.offsetTop};{let t=e.parentElement,n=e.getBoundingClientRect();if(!t)return{height:n.height,left:n.left,width:n.width,top:n.top};{let e=t.getBoundingClientRect();return{height:n.height,left:e.left-n.left,top:e.top-n.top,width:n.width}}}},C=e=>{let t="-zoom",n=["clip-path","fill","mask","marker-start","marker-mid","marker-end"],r=new Map;if(e.hasAttribute("id")){let n=e.id,o=n+t;r.set(n,o),e.id=o}e.querySelectorAll("[id]").forEach(e=>{let n=e.id,o=n+t;r.set(n,o),e.id=o}),r.forEach((t,r)=>{let o=`url(#${r})`,i=`url(#${t})`,l=n.map(e=>`[${e}="${o}"]`).join(", ");e.querySelectorAll(l).forEach(e=>{n.forEach(t=>{e.getAttribute(t)===o&&e.setAttribute(t,i)})})}),e.querySelectorAll("style").forEach(e=>{r.forEach((t,n)=>{e.textContent&&(e.textContent=e.textContent.replaceAll(`#${n}`,`#${t}`))})})},R=["img","svg",'[role="img"]',"[data-zoom]"].map(e=>`${e}:not([aria-hidden="true"])`).join(","),P={overflow:"",width:""};function L(e){return l.createElement(T,{...e})}class T extends l.Component{constructor(){super(...arguments),this.state={id:"",isZoomImgLoaded:!1,loadedImgEl:void 0,modalState:"UNLOADED",shouldRefresh:!1,styleGhost:{}},this.refContent=l.createRef(),this.refDialog=l.createRef(),this.refModalContent=l.createRef(),this.refModalImg=l.createRef(),this.refWrap=l.createRef(),this.imgEl=null,this.isScaling=!1,this.prevBodyAttrs=P,this.styleModalImg={},this.handleModalStateChange=e=>{let{modalState:t}=this.state;"LOADING"!==e&&"LOADING"===t?(this.loadZoomImg(),window.addEventListener("resize",this.handleResize,{passive:!0}),window.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),window.addEventListener("touchmove",this.handleTouchMove,{passive:!0}),window.addEventListener("touchend",this.handleTouchEnd,{passive:!0}),window.addEventListener("touchcancel",this.handleTouchCancel,{passive:!0}),document.addEventListener("keydown",this.handleKeyDown,!0)):"LOADED"!==e&&"LOADED"===t?window.addEventListener("wheel",this.handleWheel,{passive:!0}):"UNLOADING"!==e&&"UNLOADING"===t?(this.ensureImgTransitionEnd(),window.removeEventListener("wheel",this.handleWheel),window.removeEventListener("touchstart",this.handleTouchStart),window.removeEventListener("touchmove",this.handleTouchMove),window.removeEventListener("touchend",this.handleTouchEnd),window.removeEventListener("touchcancel",this.handleTouchCancel),document.removeEventListener("keydown",this.handleKeyDown,!0)):"UNLOADED"!==e&&"UNLOADED"===t&&(this.bodyScrollEnable(),window.removeEventListener("resize",this.handleResize),this.refModalImg.current?.removeEventListener?.("transitionend",this.handleImgTransitionEnd),this.refDialog.current?.close?.())},this.getDialogContainer=()=>{let e=document.querySelector("[data-rmiz-portal]");return null==e&&((e=document.createElement("div")).setAttribute("data-rmiz-portal",""),document.body.appendChild(e)),e},this.setId=()=>{let e=()=>Math.random().toString(16).slice(-4);this.setState({id:e()+e()+e()})},this.setAndTrackImg=()=>{let e=this.refContent.current;!e||(this.imgEl=e.querySelector(R),this.imgEl?(this.contentNotFoundChangeObserver?.disconnect?.(),this.imgEl.addEventListener("load",this.handleImgLoad),this.imgEl.addEventListener("click",this.handleZoom),this.state.loadedImgEl||this.handleImgLoad(),this.imgElResizeObserver=new ResizeObserver(e=>{let t=e[0];t?.target&&(this.imgEl=t.target,this.setState({styleGhost:N(this.imgEl)}))}),this.imgElResizeObserver.observe(this.imgEl),this.contentChangeObserver||(this.contentChangeObserver=new MutationObserver(()=>{this.setState({styleGhost:N(this.imgEl)})}),this.contentChangeObserver.observe(e,{attributes:!0,childList:!0,subtree:!0}))):this.contentNotFoundChangeObserver||(this.contentNotFoundChangeObserver=new MutationObserver(this.setAndTrackImg),this.contentNotFoundChangeObserver.observe(e,{childList:!0,subtree:!0})))},this.handleIfZoomChanged=e=>{let{isZoomed:t}=this.props;!e&&t?this.zoom():e&&!t&&this.unzoom()},this.handleImgLoad=()=>{let e=v(this.imgEl);if(!e)return;let t=new Image;c(this.imgEl)&&(t.sizes=this.imgEl.sizes,t.srcset=this.imgEl.srcset),t.src=e;let n=()=>{this.setState({loadedImgEl:t,styleGhost:N(this.imgEl)})};t.decode().then(n).catch(()=>{if(d(t)){n();return}t.onload=n})},this.handleZoom=()=>{this.hasImage()&&this.props.onZoomChange?.(!0)},this.handleUnzoom=()=>{this.props.onZoomChange?.(!1)},this.handleDialogCancel=e=>{e.preventDefault()},this.handleDialogClick=e=>{(e.target===this.refModalContent.current||e.target===this.refModalImg.current)&&this.handleUnzoom()},this.handleKeyDown=e=>{("Escape"===e.key||27===e.keyCode)&&(e.preventDefault(),e.stopPropagation(),this.handleUnzoom())},this.handleWheel=e=>{e.ctrlKey||(e.stopPropagation(),queueMicrotask(()=>{this.handleUnzoom()}))},this.handleTouchStart=e=>{if(e.touches.length>1){this.isScaling=!0;return}1===e.changedTouches.length&&e.changedTouches[0]&&(this.touchYStart=e.changedTouches[0].screenY)},this.handleTouchMove=e=>{let t=window.visualViewport?.scale??1;this.props.canSwipeToUnzoom&&!this.isScaling&&t<=1&&null!=this.touchYStart&&e.changedTouches[0]&&(this.touchYEnd=e.changedTouches[0].screenY,Math.abs(Math.max(this.touchYStart,this.touchYEnd)-Math.min(this.touchYStart,this.touchYEnd))>this.props.swipeToUnzoomThreshold&&(this.touchYStart=void 0,this.touchYEnd=void 0,this.handleUnzoom()))},this.handleTouchEnd=()=>{this.isScaling=!1,this.touchYStart=void 0,this.touchYEnd=void 0},this.handleTouchCancel=()=>{this.isScaling=!1,this.touchYStart=void 0,this.touchYEnd=void 0},this.handleResize=()=>{this.setState({shouldRefresh:!0})},this.hasImage=()=>this.imgEl&&(this.state.loadedImgEl||f(this.imgEl))&&"none"!==window.getComputedStyle(this.imgEl).display,this.zoom=()=>{this.bodyScrollDisable(),this.refDialog.current?.showModal?.(),this.refModalImg.current?.addEventListener?.("transitionend",this.handleImgTransitionEnd),this.setState({modalState:"LOADING"})},this.unzoom=()=>{this.setState({modalState:"UNLOADING"})},this.handleImgTransitionEnd=()=>{clearTimeout(this.timeoutTransitionEnd),"LOADING"===this.state.modalState?this.setState({modalState:"LOADED"}):"UNLOADING"===this.state.modalState&&this.setState({shouldRefresh:!1,modalState:"UNLOADED"})},this.ensureImgTransitionEnd=()=>{if(this.refModalImg.current){let e=window.getComputedStyle(this.refModalImg.current).transitionDuration,t=parseFloat(e);if(t){let n=t*(e.endsWith("ms")?1:1e3)+50;this.timeoutTransitionEnd=setTimeout(this.handleImgTransitionEnd,n)}}},this.bodyScrollDisable=()=>{this.prevBodyAttrs={overflow:document.body.style.overflow,width:document.body.style.width};let e=document.body.clientWidth;document.body.style.overflow="hidden",document.body.style.width=`${e}px`},this.bodyScrollEnable=()=>{document.body.style.width=this.prevBodyAttrs.width,document.body.style.overflow=this.prevBodyAttrs.overflow,this.prevBodyAttrs=P},this.loadZoomImg=()=>{let{props:{zoomImg:e}}=this,t=e?.src;if(t){let n=new Image;n.sizes=e?.sizes??"",n.srcset=e?.srcSet??"",n.src=t;let r=()=>{this.setState({isZoomImgLoaded:!0})};n.decode().then(r).catch(()=>{if(d(n)){r();return}n.onload=r})}},this.UNSAFE_handleSvg=()=>{let{imgEl:e,refModalImg:t,styleModalImg:n}=this;if(f(e)){let r=e.cloneNode(!0);C(r),r.style.width=`${n.width||0}px`,r.style.height=`${n.height||0}px`,r.addEventListener("click",this.handleUnzoom),t.current?.firstChild?.remove?.(),t.current?.appendChild?.(r)}}}render(){let{handleDialogCancel:e,handleDialogClick:t,handleUnzoom:n,handleZoom:r,imgEl:o,props:{a11yNameButtonUnzoom:i,a11yNameButtonZoom:s,children:d,classDialog:h,IconUnzoom:m,IconZoom:p,isZoomed:g,wrapElement:b,ZoomContent:y,zoomImg:w,zoomMargin:E},refContent:j,refDialog:N,refModalContent:C,refModalImg:R,refWrap:P,state:{id:L,isZoomImgLoaded:T,loadedImgEl:M,modalState:k,shouldRefresh:O,styleGhost:A}}=this,I=`rmiz-modal-${L}`,_=`rmiz-modal-img-${L}`,D=u(o),z=c(o),W=f(o),F=x(o),U=v(o),H=z?o.sizes:void 0,B=z?o.srcset:void 0,V=!!w?.src,Z=this.hasImage(),Y=F?`${s}: ${F}`:s,$="LOADING"===k||"LOADED"===k,K=Z?"found":"not-found",q="UNLOADED"===k||"UNLOADING"===k?"hidden":"visible";this.styleModalImg=Z?S({hasZoomImg:V,imgSrc:U,isSvg:W,isZoomed:g&&$,loadedImgEl:M,offset:E,shouldRefresh:O,targetEl:o}):{};let G=null;if(Z){let e=z||D?l.createElement("img",{alt:F,sizes:H,src:U,srcSet:B,...T&&"LOADED"===k?w:{},"data-rmiz-modal-img":"",height:this.styleModalImg.height||void 0,id:_,ref:R,style:this.styleModalImg,width:this.styleModalImg.width||void 0}):W?l.createElement("div",{"data-rmiz-modal-img":!0,ref:R,style:this.styleModalImg}):null,t=l.createElement("button",{"aria-label":i,"data-rmiz-btn-unzoom":"",onClick:n,type:"button"},l.createElement(m,null));G=y?l.createElement(y,{buttonUnzoom:t,modalState:k,img:e,onUnzoom:n}):l.createElement(l.Fragment,null,e,t)}return l.createElement(b,{"aria-owns":I,"data-rmiz":"",ref:P},l.createElement(b,{"data-rmiz-content":K,ref:j,style:{visibility:"UNLOADED"===k?"visible":"hidden"}},d),Z&&l.createElement(b,{"data-rmiz-ghost":"",style:A},l.createElement("button",{"aria-label":Y,"data-rmiz-btn-zoom":"",onClick:r,type:"button"},l.createElement(p,null))),Z&&a.createPortal(l.createElement("dialog",{"aria-labelledby":_,"aria-modal":"true",className:h,"data-rmiz-modal":"",id:I,onClick:t,onClose:n,onCancel:e,ref:N,role:"dialog"},l.createElement("div",{"data-rmiz-modal-overlay":q}),l.createElement("div",{"data-rmiz-modal-content":"",ref:C},G)),this.getDialogContainer()))}componentDidMount(){this.setId(),this.setAndTrackImg(),this.handleImgLoad(),this.UNSAFE_handleSvg()}componentWillUnmount(){"UNLOADED"!==this.state.modalState&&this.bodyScrollEnable(),this.contentChangeObserver?.disconnect?.(),this.contentNotFoundChangeObserver?.disconnect?.(),this.imgElResizeObserver?.disconnect?.(),this.imgEl?.removeEventListener?.("load",this.handleImgLoad),this.imgEl?.removeEventListener?.("click",this.handleZoom),this.refModalImg.current?.removeEventListener?.("transitionend",this.handleImgTransitionEnd),window.removeEventListener("wheel",this.handleWheel),window.removeEventListener("touchstart",this.handleTouchStart),window.removeEventListener("touchmove",this.handleTouchMove),window.removeEventListener("touchend",this.handleTouchEnd),window.removeEventListener("touchcancel",this.handleTouchCancel),window.removeEventListener("resize",this.handleResize),document.removeEventListener("keydown",this.handleKeyDown,!0)}componentDidUpdate(e,t){this.handleModalStateChange(t.modalState),this.UNSAFE_handleSvg(),this.handleIfZoomChanged(e.isZoomed)}}function M(e){let[t,n]=l.useState(!1);return l.createElement(L,{...e,isZoomed:t,onZoomChange:n})}T.defaultProps={a11yNameButtonUnzoom:"Minimize image",a11yNameButtonZoom:"Expand image",canSwipeToUnzoom:!0,IconUnzoom:function(){return l.createElement("svg",{"aria-hidden":"true","data-rmiz-btn-unzoom-icon":!0,fill:"currentColor",focusable:"false",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M 14.144531 1.148438 L 9 6.292969 L 9 3 L 8 3 L 8 8 L 13 8 L 13 7 L 9.707031 7 L 14.855469 1.851563 Z M 8 8 L 3 8 L 3 9 L 6.292969 9 L 1.148438 14.144531 L 1.851563 14.855469 L 7 9.707031 L 7 13 L 8 13 Z"}))},IconZoom:function(){return l.createElement("svg",{"aria-hidden":"true","data-rmiz-btn-zoom-icon":!0,fill:"currentColor",focusable:"false",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M 9 1 L 9 2 L 12.292969 2 L 2 12.292969 L 2 9 L 1 9 L 1 14 L 6 14 L 6 13 L 2.707031 13 L 13 2.707031 L 13 6 L 14 6 L 14 1 Z"}))},swipeToUnzoomThreshold:10,wrapElement:"div",zoomMargin:0},n(6701);var k=n(7516);function O(e){var t;let{zoomInProps:n,children:o,...l}=e;return(0,k.jsx)(M,{zoomMargin:20,wrapElement:"span",zoomImg:{src:"string"==typeof(t=l.src)?t:"default"in t?t.default.src:t.src,sizes:void 0,...n},children:null!=o?o:(0,k.jsx)(i(),{sizes:r.wW,...l})})}},6525:function(e,t,n){"use strict";n.d(t,{RootToggle:function(){return f}});var r=n(9660),o=n(8196),i=n(8783),l=n(5487);n(6776);var a=n(342),s=n(2374),u=n(5758),c=n(8302),d=n(7516);function f(e){var t;let{options:n,...f}=e,[m,p]=(0,s.useState)(!1),{closeOnRedirect:g}=(0,i.A)(),v=(0,c.usePathname)(),x=null!==(t=n.find(e=>(0,o.zh)(e.url,v,!0)))&&void 0!==t?t:n[0],b=(0,s.useCallback)(()=>{g.current=!1,p(!1)},[g]);return(0,d.jsxs)(r.J2,{open:m,onOpenChange:p,children:[(0,d.jsxs)(r.xo,{...f,className:(0,l.m6)("-mx-2 flex flex-row items-center gap-2.5 rounded-lg p-2 hover:bg-fd-accent/50 hover:text-fd-accent-foreground",f.className),children:[(0,d.jsx)(h,{...x}),(0,d.jsx)(a.Z,{className:"size-4 text-fd-muted-foreground md:me-1.5"})]}),(0,d.jsx)(r.yk,{className:"w-[var(--radix-popover-trigger-width)] overflow-hidden p-0",children:n.map(e=>{var t;return(0,d.jsx)(u.default,{href:e.url,onClick:b,...e.props,className:(0,l.m6)("flex w-full flex-row items-center gap-2.5 p-2",x===e?"bg-fd-accent text-fd-accent-foreground":"hover:bg-fd-accent/50",null===(t=e.props)||void 0===t?void 0:t.className),children:(0,d.jsx)(h,{...e})},e.url)})})]})}function h(e){let{title:t,icon:n,description:r}=e;return(0,d.jsxs)(d.Fragment,{children:[n,(0,d.jsxs)("div",{className:"flex-1 text-left",children:[(0,d.jsx)("p",{className:"text-sm font-medium",children:t}),(0,d.jsx)("p",{className:"text-xs text-fd-muted-foreground",children:r})]})]})}},9318:function(e,t,n){"use strict";n.d(t,{Tab:function(){return et},Tabs:function(){return J}});var r=n(5487),o=n(6776),i=n(2374),l=n(312),a=n(7706),s=n(6766),u=n(9984),c=n(7516),d=n(7840),f=n(4356),h=n(931),m=n(5960),p=n(8454),g="rovingFocusGroup.onEntryFocus",v={bubbles:!1,cancelable:!0},x="RovingFocusGroup",[b,y,w]=function(e){let t=e+"CollectionProvider",[n,r]=(0,a.b)(t),[o,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:n}=e,r=i.useRef(null),l=i.useRef(new Map).current;return(0,c.jsx)(o,{scope:t,itemMap:l,collectionRef:r,children:n})};d.displayName=t;let f=e+"CollectionSlot",h=i.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=l(f,n),i=(0,s.e)(t,o.collectionRef);return(0,c.jsx)(u.g7,{ref:i,children:r})});h.displayName=f;let m=e+"CollectionItemSlot",p="data-radix-collection-item",g=i.forwardRef((e,t)=>{let{scope:n,children:r,...o}=e,a=i.useRef(null),d=(0,s.e)(t,a),f=l(m,n);return i.useEffect(()=>(f.itemMap.set(a,{ref:a,...o}),()=>void f.itemMap.delete(a))),(0,c.jsx)(u.g7,{[p]:"",ref:d,children:r})});return g.displayName=m,[{Provider:d,Slot:h,ItemSlot:g},function(t){let n=l(e+"CollectionConsumer",t);return i.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(p,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}(x),[E,j]=(0,a.b)(x,[w]),[S,N]=E(x),C=i.forwardRef((e,t)=>(0,c.jsx)(b.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,c.jsx)(b.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,c.jsx)(R,{...e,ref:t})})}));C.displayName=x;var R=i.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:u,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:x,onEntryFocus:b,preventScrollOnEntryFocus:w=!1,...E}=e,j=i.useRef(null),N=(0,s.e)(t,j),C=(0,p.gm)(a),[R=null,P]=(0,m.T)({prop:u,defaultProp:d,onChange:x}),[L,T]=i.useState(!1),k=(0,h.W)(b),O=y(n),A=i.useRef(!1),[I,_]=i.useState(0);return i.useEffect(()=>{let e=j.current;if(e)return e.addEventListener(g,k),()=>e.removeEventListener(g,k)},[k]),(0,c.jsx)(S,{scope:n,orientation:r,dir:C,loop:o,currentTabStopId:R,onItemFocus:i.useCallback(e=>P(e),[P]),onItemShiftTab:i.useCallback(()=>T(!0),[]),onFocusableItemAdd:i.useCallback(()=>_(e=>e+1),[]),onFocusableItemRemove:i.useCallback(()=>_(e=>e-1),[]),children:(0,c.jsx)(f.WV.div,{tabIndex:L||0===I?-1:0,"data-orientation":r,...E,ref:N,style:{outline:"none",...e.style},onMouseDown:(0,l.M)(e.onMouseDown,()=>{A.current=!0}),onFocus:(0,l.M)(e.onFocus,e=>{let t=!A.current;if(e.target===e.currentTarget&&t&&!L){let t=new CustomEvent(g,v);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=O().filter(e=>e.focusable);M([e.find(e=>e.active),e.find(e=>e.id===R),...e].filter(Boolean).map(e=>e.ref.current),w)}}A.current=!1}),onBlur:(0,l.M)(e.onBlur,()=>T(!1))})})}),P="RovingFocusGroupItem",L=i.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...s}=e,u=(0,d.M)(),h=a||u,m=N(P,n),p=m.currentTabStopId===h,g=y(n),{onFocusableItemAdd:v,onFocusableItemRemove:x}=m;return i.useEffect(()=>{if(r)return v(),()=>x()},[r,v,x]),(0,c.jsx)(b.ItemSlot,{scope:n,id:h,focusable:r,active:o,children:(0,c.jsx)(f.WV.span,{tabIndex:p?0:-1,"data-orientation":m.orientation,...s,ref:t,onMouseDown:(0,l.M)(e.onMouseDown,e=>{r?m.onItemFocus(h):e.preventDefault()}),onFocus:(0,l.M)(e.onFocus,()=>m.onItemFocus(h)),onKeyDown:(0,l.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){m.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let o=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return T[o]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=g().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&o.reverse();let i=o.indexOf(e.currentTarget);o=m.loop?(n=o,r=i+1,n.map((e,t)=>n[(r+t)%n.length])):o.slice(i+1)}setTimeout(()=>M(o))}})})})});L.displayName=P;var T={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function M(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var k=n(3301),O="Tabs",[A,I]=(0,a.b)(O,[j]),_=j(),[D,z]=A(O),W=i.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:l="horizontal",dir:a,activationMode:s="automatic",...u}=e,h=(0,p.gm)(a),[g,v]=(0,m.T)({prop:r,onChange:o,defaultProp:i});return(0,c.jsx)(D,{scope:n,baseId:(0,d.M)(),value:g,onValueChange:v,orientation:l,dir:h,activationMode:s,children:(0,c.jsx)(f.WV.div,{dir:h,"data-orientation":l,...u,ref:t})})});W.displayName=O;var F="TabsList",U=i.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...o}=e,i=z(F,n),l=_(n);return(0,c.jsx)(C,{asChild:!0,...l,orientation:i.orientation,dir:i.dir,loop:r,children:(0,c.jsx)(f.WV.div,{role:"tablist","aria-orientation":i.orientation,...o,ref:t})})});U.displayName=F;var H="TabsTrigger",B=i.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,a=z(H,n),s=_(n),u=Y(a.baseId,r),d=$(a.baseId,r),h=r===a.value;return(0,c.jsx)(L,{asChild:!0,...s,focusable:!o,active:h,children:(0,c.jsx)(f.WV.button,{type:"button",role:"tab","aria-selected":h,"aria-controls":d,"data-state":h?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:u,...i,ref:t,onMouseDown:(0,l.M)(e.onMouseDown,e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():a.onValueChange(r)}),onKeyDown:(0,l.M)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&a.onValueChange(r)}),onFocus:(0,l.M)(e.onFocus,()=>{let e="manual"!==a.activationMode;h||o||!e||a.onValueChange(r)})})})});B.displayName=H;var V="TabsContent",Z=i.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,forceMount:o,children:l,...a}=e,s=z(V,n),u=Y(s.baseId,r),d=$(s.baseId,r),h=r===s.value,m=i.useRef(h);return i.useEffect(()=>{let e=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,c.jsx)(k.z,{present:o||h,children:n=>{let{present:r}=n;return(0,c.jsx)(f.WV.div,{"data-state":h?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":u,hidden:!r,id:d,tabIndex:0,...a,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:r&&l})}})});function Y(e,t){return"".concat(e,"-trigger-").concat(t)}function $(e,t){return"".concat(e,"-content-").concat(t)}Z.displayName=V,(0,o.r)({},{Tabs:()=>K,TabsContent:()=>X,TabsList:()=>q,TabsTrigger:()=>G});var K=i.forwardRef((e,t)=>(0,c.jsx)(W,{ref:t,...e,className:(0,r.m6)("flex flex-col overflow-hidden rounded-xl border bg-fd-card",e.className)}));K.displayName="Tabs";var q=i.forwardRef((e,t)=>(0,c.jsx)(U,{ref:t,...e,className:(0,r.m6)("flex flex-row items-end gap-4 overflow-x-auto bg-fd-secondary px-4 text-fd-muted-foreground",e.className)}));q.displayName="TabsList";var G=i.forwardRef((e,t)=>(0,c.jsx)(B,{ref:t,...e,className:(0,r.m6)("whitespace-nowrap border-b border-transparent py-2 text-sm font-medium transition-colors hover:text-fd-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=active]:border-fd-primary data-[state=active]:text-fd-primary",e.className)}));G.displayName="TabsTrigger";var X=i.forwardRef((e,t)=>(0,c.jsx)(Z,{ref:t,...e,className:(0,r.m6)("p-4",e.className)}));X.displayName="TabsContent";var Q=new Map;function J(e){let{groupId:t,items:n=[],persist:o=!1,defaultIndex:l=0,...a}=e,s=(0,i.useMemo)(()=>n.map(e=>ee(e)),[n]),[u,d]=(0,i.useState)(s[l]);(0,i.useLayoutEffect)(()=>{if(!t)return;let e=e=>{s.includes(e)&&d(e)},n=o?localStorage.getItem(t):sessionStorage.getItem(t);return n&&e(n),!function(e,t){var n;let r=null!==(n=Q.get(e))&&void 0!==n?n:[];r.push(t),Q.set(e,r)}(t,e),()=>{!function(e,t){var n;let r=null!==(n=Q.get(e))&&void 0!==n?n:[];Q.set(e,r.filter(e=>e!==t))}(t,e)}},[t,o,s]);let f=(0,i.useCallback)(e=>{if(t){var n;null===(n=Q.get(t))||void 0===n||n.forEach(t=>{t(e)}),o?localStorage.setItem(t,e):sessionStorage.setItem(t,e)}else d(e)},[t,o]);return(0,c.jsxs)(K,{value:u,onValueChange:f,...a,className:(0,r.m6)("my-4",a.className),children:[(0,c.jsx)(q,{children:s.map((e,t)=>(0,c.jsx)(G,{value:e,children:n[t]},e))}),a.children]})}function ee(e){return e.toLowerCase().replace(/\s/,"-")}function et(e){let{value:t,className:n,...o}=e;return(0,c.jsx)(X,{value:ee(t),className:(0,r.m6)("prose-no-margin [&>figure:only-child]:-m-4 [&>figure:only-child]:rounded-none [&>figure:only-child]:border-none",n),...o})}},3471:function(e,t,n){"use strict";n.d(t,{DynamicSidebar:function(){return $},LanguageToggle:function(){return O},LinksMenu:function(){return L},Sidebar:function(){return V},SidebarCollapseTrigger:function(){return q},SubNav:function(){return K},ThemeToggle:function(){return M},TreeContextProvider:function(){return A.G}});var r=n(9660),o=n(8196),i=n(428),l=n(1861),a=n(721),s=n(4183),u=n(5487),c=n(2374),d=n(6402),f=n(7516),h=n(5758),m=(0,c.forwardRef)(({href:e="#",external:t=!(e.startsWith("/")||e.startsWith("#")||e.startsWith(".")),prefetch:n,replace:r,...o},i)=>t?(0,f.jsx)("a",{ref:i,href:e,rel:"noreferrer noopener",target:"_blank",...o,children:o.children}):(0,f.jsx)(h.default,{ref:i,href:e,prefetch:n,replace:r,...o}));m.displayName="Link",n(6384);var p=n(342),g=n(8302),v=n(2771),x=n(1694),b=n(193);let y=(0,b.Z)("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),w=(0,b.Z)("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);var E=n(3358);function j(e){let{setOpenSearch:t}=(0,i.A)();return(0,f.jsx)("button",{type:"button",className:(0,u.m6)((0,s.d)({size:"icon",color:"ghost",className:e.className})),"data-search":"","aria-label":"Open Search",onClick:(0,c.useCallback)(()=>{t(!0)},[t]),children:(0,f.jsx)(d.Z,{})})}function S(e){let{hotKey:t,setOpenSearch:n}=(0,i.A)(),{text:r}=(0,l.Q)();return(0,f.jsxs)("button",{type:"button","data-search-full":"",...e,className:(0,u.m6)("inline-flex items-center gap-2 rounded-full border bg-fd-secondary/50 p-1.5 text-sm text-fd-muted-foreground transition-colors hover:bg-fd-accent hover:text-fd-accent-foreground",e.className),onClick:(0,c.useCallback)(()=>{n(!0)},[n]),children:[(0,f.jsx)(d.Z,{className:"ms-1 size-4"}),r.search,(0,f.jsx)("div",{className:"ms-auto inline-flex gap-0.5",children:t.map((e,t)=>(0,f.jsx)("kbd",{className:"rounded-md border bg-fd-background px-1.5",children:e.display},t))})]})}function N({transparentMode:e="none",...t}){let[n,r]=(0,c.useState)("none"!==e);return(0,c.useEffect)(()=>{if("top"!==e)return;let t=()=>{r(window.scrollY<10)};return t(),window.addEventListener("scroll",t),()=>{window.removeEventListener("scroll",t)}},[e]),(0,f.jsx)("header",{...t,className:(0,u.m6)("sticky top-0 z-40 border-b transition-colors",n?"border-transparent":"border-fd-foreground/10 bg-fd-background/60 backdrop-blur-md",t.className)})}function C({title:e,url:t="/"}){return(0,f.jsx)(m,{href:t,className:"inline-flex items-center gap-2 font-semibold",children:e})}var R=(0,v.j)("-m-2 inline-flex items-center gap-1 p-2 text-fd-muted-foreground transition-colors [&_svg]:size-4",{variants:{active:{true:"text-fd-primary",false:"hover:text-fd-accent-foreground"}},defaultVariants:{active:!1}});function P({item:e,on:t="nav",className:n,...r}){let i=(0,g.usePathname)();if(e.on&&"all"!==e.on&&e.on!==t)return null;if("custom"===e.type)return e.children;if("menu"===e.type&&"nav"===t)return(0,f.jsxs)(L,{items:e.items,className:(0,u.m6)(R({className:n})),...r,children:[e.icon,e.text,(0,f.jsx)(p.Z,{className:"ms-auto !size-3.5"})]});if("menu"===e.type)return(0,f.jsxs)(a.zF,{className:"flex flex-col",children:[(0,f.jsxs)(a.wy,{className:(0,u.m6)((0,s.D)({className:n}),"group/link"),...r,children:[e.icon,e.text,(0,f.jsx)(p.Z,{className:"ms-auto transition-transform group-data-[state=closed]/link:-rotate-90"})]}),(0,f.jsx)(a.Fw,{children:(0,f.jsx)("div",{className:"ms-2 flex flex-col border-s py-2 ps-2",children:e.items.map((e,t)=>(0,f.jsx)(P,{item:e,on:"menu"},t))})})]});if("button"===e.type)return(0,f.jsxs)(m,{href:e.url,external:e.external,className:(0,u.m6)((0,s.d)({color:"secondary"}),"gap-1.5 [&_svg]:size-4",n),children:[e.icon,e.text]});let l=e.active??"url",c="none"!==l&&(0,o.zh)(e.url,i,"nested-url"===l);return"icon"===e.type&&"nav"===t?(0,f.jsx)(m,{"aria-label":e.label,href:e.url,external:e.external,className:(0,u.m6)((0,s.d)({size:"icon",color:"ghost",className:n})),...r,children:e.icon}):(0,f.jsxs)(m,{href:e.url,external:e.external,className:(0,u.m6)("nav"===t?R({active:c}):(0,s.D)({active:c}),n),...r,children:["menu"===t?e.icon:null,e.text]})}function L({items:e,footer:t,...n}){let[o,i]=(0,c.useState)(!1),l=(0,g.usePathname)();return(0,x.p)(l,()=>{i(!1)}),(0,f.jsxs)(r.J2,{open:o,onOpenChange:i,children:[(0,f.jsx)(r.xo,{...n}),(0,f.jsxs)(r.yk,{className:"flex flex-col",children:[e.map((e,t)=>(0,f.jsx)(P,{item:e,on:"menu"},t)),t]})]})}var T=(0,v.j)("size-6 rounded-full p-1 text-fd-muted-foreground",{variants:{dark:{true:"dark:bg-fd-accent dark:text-fd-accent-foreground",false:"bg-fd-accent text-fd-accent-foreground dark:bg-transparent dark:text-fd-muted-foreground"}}});function M({className:e,...t}){let{setTheme:n,resolvedTheme:r}=(0,E.F)(),o=(0,c.useCallback)(()=>{n("dark"===r?"light":"dark")},[n,r]);return(0,f.jsxs)("button",{type:"button",className:(0,u.m6)("inline-flex items-center rounded-full border p-0.5",e),"data-theme-toggle":"","aria-label":"Toggle Theme",onClick:o,...t,children:[(0,f.jsx)(y,{className:(0,u.m6)(T({dark:!1}))}),(0,f.jsx)(w,{className:(0,u.m6)(T({dark:!0}))})]})}let k=(0,b.Z)("Languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);function O(e){let t=(0,l.Q)(),[n,o]=(0,c.useState)(!1);if(!t.locales)throw Error("Missing ``");return(0,f.jsxs)(r.J2,{open:n,onOpenChange:o,...e,children:[(0,f.jsx)(r.xo,{"aria-label":t.text.chooseLanguage,className:(0,u.m6)((0,s.d)({size:"icon",color:"ghost"})),children:(0,f.jsx)(k,{})}),(0,f.jsxs)(r.yk,{className:"flex flex-col p-1",children:[(0,f.jsx)("p",{className:"mb-1 p-2 text-xs font-medium text-fd-muted-foreground",children:t.text.chooseLanguage}),t.locales.map(e=>(0,f.jsx)("button",{type:"button",className:(0,u.m6)("rounded-md p-2 text-left text-sm transition-colors duration-100",e.locale===t.locale?"bg-fd-primary/10 font-medium text-fd-primary":"hover:bg-fd-accent hover:text-fd-accent-foreground"),onClick:()=>{t.onChange?.(e.locale)},children:e.name},e.locale))]})]})}var A=n(1634),I=n(7933),_=n(8783);n(6776);var D=n(4557);let z=(0,b.Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),W=(0,b.Z)("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]),F=(0,b.Z)("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]),U=(0,b.Z)("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);var H={Folder:function(e){var t;let{item:n,level:r}=e,{defaultOpenLevel:i,prefetch:l}=(0,c.useContext)(B),d=(0,g.usePathname)(),h=void 0!==n.index&&(0,o.zh)(n.index.url,d,!1),v=(0,c.useMemo)(()=>(0,o.$M)(n.children,d),[n.children,d]),b=h||v||(null!==(t=n.defaultOpen)&&void 0!==t?t:i>=r),[y,w]=(0,c.useState)(b);(0,x.p)(b,e=>{e&&w(e)});let E=(0,c.useCallback)(e=>{(e.target.hasAttribute("data-icon")||h)&&(w(e=>!e),e.preventDefault())},[h]),j=(0,f.jsxs)(f.Fragment,{children:[n.icon,n.name,(0,f.jsx)(p.Z,{"data-icon":!0,className:(0,u.m6)("ms-auto transition-transform",!y&&"-rotate-90")})]});return(0,f.jsxs)(a.zF,{open:y,onOpenChange:w,children:[n.index?(0,f.jsx)(m,{className:(0,u.m6)((0,s.D)({active:h})),href:n.index.url,onClick:E,prefetch:l,children:j}):(0,f.jsx)(a.wy,{className:(0,u.m6)((0,s.D)({active:h})),children:j}),(0,f.jsx)(a.Fw,{children:(0,f.jsx)(Y,{className:"ms-2 flex flex-col border-s py-2 ps-2",items:n.children,level:r})})]})},Separator:function(e){let{item:t}=e;return(0,f.jsx)("p",{className:"mb-2 mt-8 px-2 font-medium first:mt-0",children:t.name})},Item:function(e){let{item:{icon:t,external:n=!1,url:r,name:i}}=e,l=(0,g.usePathname)(),a=(0,o.zh)(r,l,!1),{prefetch:d}=(0,c.useContext)(B);return(0,f.jsxs)(m,{href:r,external:n,className:(0,u.m6)((0,s.D)({active:a})),prefetch:d,children:[null!=t?t:n?(0,f.jsx)(U,{}):null,i]})}},B=(0,c.createContext)({defaultOpenLevel:0,components:H,prefetch:!0});function V(e){var t,n,r;let{components:o,defaultOpenLevel:l=0,items:a,prefetch:s=!0,...d}=e,h=(0,i.A)().enabled&&!d.hideSearch,m=(0,c.useMemo)(()=>({defaultOpenLevel:l,components:{...H,...o},prefetch:s}),[o,l,s]);return(0,f.jsx)(B.Provider,{value:m,children:(0,f.jsxs)(D.wb,{id:"nd-sidebar",blockScrollingWidth:768,...d.aside,className:(0,u.m6)("fixed z-30 flex flex-col bg-fd-card text-sm md:sticky md:top-0 md:h-dvh md:w-[var(--fd-c-sidebar)] md:min-w-[var(--fd-sidebar-width)] md:border-e md:ps-[calc(var(--fd-c-sidebar)-var(--fd-sidebar-width))]","max-md:inset-0 max-md:bg-fd-background/80 max-md:pt-14 max-md:text-[15px] max-md:backdrop-blur-md max-md:data-[open=false]:hidden",null===(t=d.aside)||void 0===t?void 0:t.className),children:[h||d.banner?(0,f.jsxs)("div",{...d.bannerProps,className:(0,u.m6)("flex flex-col gap-1 px-4 pt-2 md:px-3 md:pt-4",null===(n=d.bannerProps)||void 0===n?void 0:n.className),children:[d.banner,h?(0,f.jsx)(S,{className:"rounded-lg max-md:hidden"}):null]}):null,(0,f.jsx)(Z,{items:a}),d.footer?(0,f.jsx)("div",{...d.footerProps,className:(0,u.m6)("flex flex-row items-center border-t py-1 max-md:px-4 md:mx-3",null===(r=d.footerProps)||void 0===r?void 0:r.className),children:d.footer}):null]})})}function Z(e){let{items:t}=e,{root:n}=(0,A.W)();return(0,f.jsx)(I.xr,{className:"flex-1",children:(0,f.jsxs)(I.fK,{style:{maskImage:"linear-gradient(to bottom, transparent 2px, white 24px)"},children:[t.length>0?(0,f.jsx)("div",{className:"flex flex-col px-4 pt-6 md:hidden",children:t.map((e,t)=>(0,f.jsx)(P,{item:e,on:"menu"},t))}):null,(0,f.jsx)(Y,{items:n.children,className:"px-4 py-6 md:px-3"})]})})}function Y(e){let{items:t,level:n=0,...r}=e,{components:o}=(0,c.useContext)(B);return(0,f.jsx)("div",{...r,children:t.map((e,t)=>{let r="".concat(e.type,"_").concat(t.toString());switch(e.type){case"separator":return(0,f.jsx)(o.Separator,{item:e},r);case"folder":return(0,f.jsx)(o.Folder,{item:e,level:n+1},r);default:return(0,f.jsx)(o.Item,{item:e},e.url)}})})}function $(e){let{collapsed:t,setCollapsed:n}=(0,_.A)(),[r,o]=(0,c.useState)(!1),i=(0,c.useRef)(0),l=(0,c.useRef)(0),a=(0,c.useCallback)(()=>{n(e=>!e)},[n]);(0,x.p)(t,()=>{o(!1),l.current=Date.now()+150});let d=(0,c.useCallback)(e=>{"touch"===e.pointerType||l.current>Date.now()||(window.clearTimeout(i.current),o(!0))},[]),h=(0,c.useCallback)(e=>{"touch"!==e.pointerType&&(window.clearTimeout(i.current),i.current=window.setTimeout(()=>{o(!1),l.current=Date.now()+150},Math.min(e.clientX,document.body.clientWidth-e.clientX)>100?0:500))},[]);return(0,f.jsxs)(f.Fragment,{children:[t?(0,f.jsx)("div",{className:"fixed inset-y-0 start-0 w-6 max-md:hidden xl:w-[50px]",onPointerEnter:d,onPointerLeave:h}):null,t?(0,f.jsx)("button",{type:"button","aria-label":"Collapse Sidebar",className:(0,u.m6)((0,s.d)({color:"secondary",size:"icon",className:"fixed start-4 bottom-2 z-10 max-md:hidden"})),onClick:a,children:(0,f.jsx)(F,{})}):null,(0,f.jsx)(V,{...e,aside:{"data-collapse":t,"data-hover":r,onPointerEnter:d,onPointerLeave:h,"aria-hidden":!!(t&&!r),className:(0,u.m6)("md:transition-[transform,padding,width,margin]",t&&["md:top-1 md:me-fd-sidebar-offset md:h-[calc(100dvh-4px)] md:w-[var(--fd-sidebar-width)] md:animate-fd-sidebar-collapse md:rounded-xl md:border md:ps-0 md:shadow-md",r?"md:translate-x-1 rtl:md:-translate-x-1":"md:translate-x-[calc(var(--fd-sidebar-width)*-1)] rtl:md:translate-x-[var(--fd-sidebar-width)]"])}})]})}function K(e){let{title:t,url:n,transparentMode:r,children:o,enableSearch:l=!0}=e,{open:a}=(0,_.A)(),{enabled:c}=(0,i.A)();return(0,f.jsxs)(N,{id:"nd-subnav",className:"flex h-14 flex-row items-center px-4 md:hidden",transparentMode:r,children:[(0,f.jsx)(C,{url:n,title:t}),(0,f.jsx)("div",{className:"flex flex-1 flex-row items-center",children:o}),c&&l?(0,f.jsx)(j,{}):null,(0,f.jsx)(D.vP,{className:(0,u.m6)((0,s.d)({color:"ghost",size:"icon",className:"-me-2"})),children:a?(0,f.jsx)(z,{}):(0,f.jsx)(W,{})})]})}function q(){let{setCollapsed:e}=(0,_.A)();return(0,f.jsx)("button",{type:"button","aria-label":"Collapse Sidebar",className:(0,u.m6)((0,s.d)({color:"ghost",size:"icon",className:"ms-auto max-md:hidden"})),onClick:(0,c.useCallback)(()=>{e(e=>!e)},[e]),children:(0,f.jsx)(F,{})})}},9187:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var r=n(1861),o=n(4183),i=n(5487);n(6776);var l=n(2374);let a=(0,n(193).Z)("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);var s=n(7516),u=(0,l.forwardRef)((e,t)=>{let{owner:n,repo:l,sha:u="main",path:c,...d}=e,{text:f}=(0,r.Q)();return(0,s.jsxs)("a",{ref:t,href:"https://github.com/".concat(n,"/").concat(l,"/blob/").concat(u,"/").concat(c.startsWith("/")?c.slice(1):c),target:"_blank",rel:"noreferrer noopener",...d,className:(0,i.m6)((0,o.d)({color:"outline",className:"text-fd-muted-foreground text-xs p-1.5 gap-2"}),d.className),children:[(0,s.jsx)(a,{className:"size-3.5"}),f.editOnGithub]})});u.displayName="EditOnGitHub";var c=u},8672:function(e,t,n){"use strict";n.d(t,{Pre:function(){return i}});var r=n(2013);n(7933),n(2918),n(4183),n(6776);var o=n(7516);function i(e){return(0,o.jsx)(r.d,{...e,children:(0,o.jsx)(r.S,{children:e.children})})}},551:function(e,t,n){"use strict";n.d(t,{Breadcrumb:function(){return j},Footer:function(){return R},LastUpdate:function(){return S},TOCItems:function(){return w},Toc:function(){return b},TocPopover:function(){return y}});var r=n(462),o=n(1634),i=n(7933),l=n(9660),a=n(1861),s=n(5487);n(6776);var u=n(2374),c=n(193);let d=(0,c.Z)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),f=(0,c.Z)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);var h=n(5758),m=n(8302),p=n(2771),g=n(4421),v=n(8296),x=n(7516);function b(e){let{header:t,footer:n,children:r}=e,{text:o}=(0,a.Q)();return(0,x.jsxs)("div",{"data-toc":"",className:"sticky top-0 flex h-dvh w-[var(--fd-c-toc)] min-w-[var(--fd-toc-width)] flex-col gap-4 pe-[max(calc(var(--fd-c-toc)-var(--fd-toc-width)),0.75rem)] pt-12 max-lg:hidden",children:[t,(0,x.jsxs)("h3",{className:"-mb-1 -ms-0.5 inline-flex items-center gap-1.5 text-sm text-fd-muted-foreground",children:[(0,x.jsx)(g.Z,{className:"size-4"}),o.toc]}),r,n]})}function y(e){let{header:t,footer:n,items:r,children:o}=e,{text:i}=(0,a.Q)(),s=v.tD(),c=(0,u.useMemo)(()=>{var e;return null===(e=r.find(e=>s===e.url.slice(1)))||void 0===e?void 0:e.title},[r,s]);return(0,x.jsxs)(l.J2,{children:[(0,x.jsxs)(l.xo,{className:"inline-flex size-full items-center gap-2 text-nowrap px-4 py-2 text-left md:px-3",children:[(0,x.jsx)(g.Z,{className:"size-4 shrink-0"}),i.toc,c?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(f,{className:"-mx-1.5 size-4 shrink-0 text-fd-muted-foreground"}),(0,x.jsx)("span",{className:"truncate text-fd-muted-foreground",children:c})]}):null]}),(0,x.jsxs)(l.yk,{hideWhenDetached:!0,alignOffset:16,align:"start",side:"bottom",className:"flex max-h-[var(--radix-popover-content-available-height)] w-[260px] flex-col gap-4 p-3","data-toc-popover":"",children:[t,o,n]})]})}function w(e){let{items:t,isMenu:n=!1}=e,{text:o}=(0,a.Q)(),l=(0,u.useRef)(null),c=(0,r.K)(l);return 0===t.length?(0,x.jsx)("div",{className:"rounded-lg border bg-fd-card p-3 text-xs text-fd-muted-foreground",children:o.tocNoHeadings}):(0,x.jsx)(i.xr,{className:(0,s.m6)("flex flex-col",n&&"-ms-3"),children:(0,x.jsxs)(i.fK,{className:"relative min-h-0 text-sm",ref:l,children:[(0,x.jsx)("div",{role:"none",className:"absolute start-0 w-px bg-fd-primary transition-all",style:{top:c[0],height:c[1]}}),(0,x.jsx)(v.ID,{containerRef:l,children:(0,x.jsx)("div",{className:(0,s.m6)("flex flex-col text-fd-muted-foreground",!n&&"border-s border-fd-foreground/10"),children:t.map(e=>(0,x.jsx)(E,{item:e},e.url))})})]})})}function E(e){let{item:t}=e;return(0,x.jsx)(v.FU,{href:t.url,className:(0,s.m6)("py-1.5 transition-colors [overflow-wrap:anywhere] first:pt-0 last:pb-0 data-[active=true]:text-fd-primary",t.depth<=2&&"ps-3.5",3===t.depth&&"ps-6",t.depth>=4&&"ps-8"),children:t.title})}function j(e){var t,n;let{full:r=!1,...i}=e,{root:l}=(0,o.W)(),a=(t=(0,m.usePathname)(),n={includePage:r,...i},(0,u.useMemo)(()=>(function(e,t,n={}){let{includeRoot:r,...o}=n,i=function e(t,n,r){let o;let{includePage:i=!0,includeSeparator:l=!1}=r;for(let a of t){if(l&&"separator"===a.type&&(o=a.name),"folder"===a.type){if(a.index?.url===n){let e=[];return o&&e.push({name:o}),r.includePage&&e.push({name:a.index.name,url:a.index.url}),e}let t=e(a.children,n,r);if(t)return t.unshift({name:a.name,url:a.index?.url}),o&&t.unshift({name:o}),t}if("page"===a.type&&a.url===n){let e=[];return o&&e.push({name:o}),i&&e.push({name:a.name,url:a.url}),e}}return null}(t.children,e,o)??[];return r&&i.unshift({name:t.name,url:"object"==typeof r?r.url:void 0}),i})(t,l,n),[l,t,n]));return 0===a.length?null:(0,x.jsx)("div",{className:"-mb-3 flex flex-row items-center gap-1 text-sm font-medium text-fd-muted-foreground",children:a.map((e,t)=>(0,x.jsxs)(u.Fragment,{children:[0!==t&&(0,x.jsx)(f,{className:"size-4 shrink-0 rtl:rotate-180"}),e.url?(0,x.jsx)(h.default,{href:e.url,className:"truncate hover:text-fd-accent-foreground",children:e.name}):(0,x.jsx)("span",{className:"truncate",children:e.name})]},t))})}function S(e){let{text:t}=(0,a.Q)(),[n,r]=(0,u.useState)("");return(0,u.useEffect)(()=>{r(e.date.toLocaleDateString())},[e.date]),(0,x.jsxs)("p",{className:"text-xs text-fd-muted-foreground",children:[t.lastUpdate," ",n]})}n(6384);var N=(0,p.j)("flex w-full flex-col gap-2 rounded-lg border bg-fd-card p-4 text-sm transition-colors hover:bg-fd-accent/80 hover:text-fd-accent-foreground"),C=(0,p.j)("inline-flex items-center gap-0.5 text-fd-muted-foreground");function R(e){let{items:t}=e,n=(0,o.W)(),r=(0,m.usePathname)(),{text:i}=(0,a.Q)(),{previous:l=null==t?void 0:t.previous,next:c=null==t?void 0:t.next}=(0,u.useMemo)(()=>{let e=n.navigation.findIndex(e=>e.url===r);return{previous:n.navigation[e-1],next:n.navigation[e+1]}},[r,n.navigation]);return(0,x.jsxs)("div",{className:"grid grid-cols-2 gap-4 pb-6",children:[l?(0,x.jsxs)(h.default,{href:l.url,className:(0,s.m6)(N()),children:[(0,x.jsxs)("div",{className:(0,s.m6)(C()),children:[(0,x.jsx)(d,{className:"-ms-1 size-4 shrink-0 rtl:rotate-180"}),(0,x.jsx)("p",{children:i.previousPage})]}),(0,x.jsx)("p",{className:"font-medium",children:l.name})]}):null,c?(0,x.jsxs)(h.default,{href:c.url,className:(0,s.m6)(N({className:"col-start-2 text-end"})),children:[(0,x.jsxs)("div",{className:(0,s.m6)(C({className:"flex-row-reverse"})),children:[(0,x.jsx)(f,{className:"-me-1 size-4 shrink-0 rtl:rotate-180"}),(0,x.jsx)("p",{children:i.nextPage})]}),(0,x.jsx)("p",{className:"font-medium",children:c.name})]}):null]})}},6920:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var r=n(462),o=n(7933),i=n(1861),l=n(5487);n(6776);var a=n(8296),s=n(2374),u=n(7516);function c(e){let{items:t,isMenu:n=!1}=e,{text:c}=(0,i.Q)(),h=(0,s.useRef)(null),m=(0,r.K)(h),[p,g]=(0,s.useState)();return((0,s.useLayoutEffect)(()=>{if(!h.current)return;let e=h.current;function n(){if(0===e.clientHeight)return;let n=0,r=0,o=[];for(let i=0;i{r.disconnect()}},[t]),0===t.length)?(0,u.jsx)("div",{className:"rounded-lg border bg-fd-card p-3 text-xs text-fd-muted-foreground",children:c.tocNoHeadings}):(0,u.jsx)(o.xr,{className:(0,l.m6)("flex flex-col",n&&"-ms-3"),children:(0,u.jsxs)(o.fK,{className:"relative min-h-0 text-sm text-fd-muted-foreground",ref:h,children:[p?(0,u.jsx)("div",{className:"absolute start-0 top-0 rtl:-scale-x-100",style:{width:p.width,height:p.height,maskImage:'url("data:image/svg+xml,'.concat(encodeURIComponent('')),'")')},children:(0,u.jsx)("div",{className:"bg-fd-primary transition-all",style:{marginTop:m[0],height:m[1]}})}):null,(0,u.jsx)(a.ID,{containerRef:h,children:(0,u.jsx)("div",{className:"flex flex-col",children:t.map((e,n)=>{var r,o;return(0,u.jsx)(f,{item:e,upper:null===(r=t[n-1])||void 0===r?void 0:r.depth,lower:null===(o=t[n+1])||void 0===o?void 0:o.depth},e.url)})})})]})})}function d(e){return e>=3?12:0}function f(e){var t;let{item:n,upper:r=n.depth,lower:o=n.depth}=e,i=d(n.depth),s=d(r),c=d(o);return(0,u.jsxs)(a.FU,{href:n.url,style:{paddingInlineStart:"".concat((t=n.depth)<=2?16:3===t?32:48,"px")},className:"relative py-2 transition-colors [overflow-wrap:anywhere] first:pt-0 last:pb-0 data-[active=true]:text-fd-primary",children:[i!==s?(0,u.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",className:"absolute -top-2 start-0 size-4 rtl:-scale-x-100",children:(0,u.jsx)("line",{x1:s,y1:"0",x2:i,y2:"16",className:"stroke-fd-foreground/10",strokeWidth:"1"})}):null,(0,u.jsx)("div",{className:(0,l.m6)("absolute inset-y-0 w-px bg-fd-foreground/10",i!==s&&"top-2",i!==c&&"bottom-2"),style:{insetInlineStart:i}}),n.title]})}}}]); \ No newline at end of file diff --git a/_next/static/chunks/541.b0d1a60b26ca2b62.js b/_next/static/chunks/541.b0d1a60b26ca2b62.js deleted file mode 100644 index 9c37ce4a..00000000 --- a/_next/static/chunks/541.b0d1a60b26ca2b62.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[541],{1390:function(e,t,n){var r=n(2374),l="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,o=r.useEffect,i=r.useLayoutEffect,u=r.useDebugValue;function s(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!l(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),l=r[0].inst,c=r[1];return i(function(){l.value=n,l.getSnapshot=t,s(l)&&c({inst:l})},[e,n,t]),o(function(){return s(l)&&c({inst:l}),e(function(){s(l)&&c({inst:l})})},[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},965:function(e,t,n){e.exports=n(1390)},7541:function(e,t,n){let r,l,a;n.r(t),n.d(t,{default:function(){return ng}});var o=n(8212),i=n(9602),u=n(5558),s=n(3504),c=n(5487),d=n(4421),f=n(193);let m=(0,f.Z)("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]),v=(0,f.Z)("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),p=(0,f.Z)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);var h=n(6402),g=n(8302),E=n(2374),y=n.t(E,2),b=n(2771),w=/[\\\/_+.#"@\[\(\{&]/,x=/[\\\/_+.#"@\[\(\{&]/g,C=/[\s-]/,R=/[\s-]/g;function S(e){return e.toLowerCase().replace(R," ")}function N(){return(N=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function O(...e){return(0,E.useCallback)(T(...e),e)}let L=(null==globalThis?void 0:globalThis.document)?E.useLayoutEffect:()=>{},_=y["useId".toString()]||(()=>void 0),D=0;function I(e){let[t,n]=E.useState(_());return L(()=>{e||n(e=>null!=e?e:String(D++))},[e]),e||(t?`radix-${t}`:"")}function A(e){let t=(0,E.useRef)(e);return(0,E.useEffect)(()=>{t.current=e}),(0,E.useMemo)(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}var P=n(7372);let M=(0,E.forwardRef)((e,t)=>{let{children:n,...r}=e,l=E.Children.toArray(n),a=l.find(V);if(a){let e=a.props.children,n=l.map(t=>t!==a?t:E.Children.count(e)>1?E.Children.only(null):(0,E.isValidElement)(e)?e.props.children:null);return(0,E.createElement)(F,N({},r,{ref:t}),(0,E.isValidElement)(e)?(0,E.cloneElement)(e,void 0,n):null)}return(0,E.createElement)(F,N({},r,{ref:t}),n)});M.displayName="Slot";let F=(0,E.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,E.isValidElement)(n)?(0,E.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let l=e[r],a=t[r];/^on[A-Z]/.test(r)?l&&a?n[r]=(...e)=>{a(...e),l(...e)}:l&&(n[r]=l):"style"===r?n[r]={...l,...a}:"className"===r&&(n[r]=[l,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:t?T(t,n.ref):n.ref}):E.Children.count(n)>1?E.Children.only(null):null});F.displayName="SlotClone";let j=({children:e})=>(0,E.createElement)(E.Fragment,null,e);function V(e){return(0,E.isValidElement)(e)&&e.type===j}let $=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,E.forwardRef)((e,n)=>{let{asChild:r,...l}=e,a=r?M:t;return(0,E.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,E.createElement)(a,N({},l,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),U="dismissableLayer.update",W=(0,E.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),z=(0,E.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:u,onDismiss:s,...c}=e,d=(0,E.useContext)(W),[f,m]=(0,E.useState)(null),v=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,p]=(0,E.useState)({}),h=O(t,e=>m(e)),g=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(y),w=f?g.indexOf(f):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,C=w>=b,R=function(e,t=null==globalThis?void 0:globalThis.document){let n=A(e),r=(0,E.useRef)(!1),l=(0,E.useRef)(()=>{});return(0,E.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function a(){q("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",l.current),l.current=a,t.addEventListener("click",l.current,{once:!0})):a()}else t.removeEventListener("click",l.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",l.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));!C||n||(null==o||o(e),null==u||u(e),e.defaultPrevented||null==s||s())},v),S=function(e,t=null==globalThis?void 0:globalThis.document){let n=A(e),r=(0,E.useRef)(!1);return(0,E.useEffect)(()=>{let e=e=>{e.target&&!r.current&&q("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target;[...d.branches].some(e=>e.contains(t))||(null==i||i(e),null==u||u(e),e.defaultPrevented||null==s||s())},v);return!function(e,t=null==globalThis?void 0:globalThis.document){let n=A(e);(0,E.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{w!==d.layers.size-1||(null==a||a(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))},v),(0,E.useEffect)(()=>{if(f)return l&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(r=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),K(),()=>{l&&1===d.layersWithOutsidePointerEventsDisabled.size&&(v.body.style.pointerEvents=r)}},[f,v,l,d]),(0,E.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),K())},[f,d]),(0,E.useEffect)(()=>{let e=()=>p({});return document.addEventListener(U,e),()=>document.removeEventListener(U,e)},[]),(0,E.createElement)($.div,N({},c,{ref:h,style:{pointerEvents:x?C?"auto":"none":void 0,...e.style},onFocusCapture:k(e.onFocusCapture,S.onFocusCapture),onBlurCapture:k(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:k(e.onPointerDownCapture,R.onPointerDownCapture)}))});function K(){let e=new CustomEvent(U);document.dispatchEvent(e)}function q(e,t,n,{discrete:r}){let l=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});(t&&l.addEventListener(e,t,{once:!0}),r)?l&&(0,P.flushSync)(()=>l.dispatchEvent(a)):l.dispatchEvent(a)}let B="focusScope.autoFocusOnMount",Z="focusScope.autoFocusOnUnmount",H={bubbles:!1,cancelable:!0},X=(0,E.forwardRef)((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:l,onUnmountAutoFocus:a,...o}=e,[i,u]=(0,E.useState)(null),s=A(l),c=A(a),d=(0,E.useRef)(null),f=O(t,e=>u(e)),m=(0,E.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,E.useEffect)(()=>{if(r){function e(e){if(m.paused||!i)return;let t=e.target;i.contains(t)?d.current=t:J(d.current,{select:!0})}function t(e){if(m.paused||!i)return;let t=e.relatedTarget;null===t||i.contains(t)||J(d.current,{select:!0})}document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&J(i)});return i&&n.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,i,m.paused]),(0,E.useEffect)(()=>{if(i){Q.add(m);let e=document.activeElement;if(!i.contains(e)){let t=new CustomEvent(B,H);i.addEventListener(B,s),i.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(J(r,{select:t}),document.activeElement!==n)return}(Y(i).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&J(i))}return()=>{i.removeEventListener(B,s),setTimeout(()=>{let t=new CustomEvent(Z,H);i.addEventListener(Z,c),i.dispatchEvent(t),t.defaultPrevented||J(null!=e?e:document.body,{select:!0}),i.removeEventListener(Z,c),Q.remove(m)},0)}}},[i,s,c,m]);let v=(0,E.useCallback)(e=>{if(!n&&!r||m.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,l=document.activeElement;if(t&&l){let t=e.currentTarget,[r,a]=function(e){let t=Y(e);return[G(t,e),G(t.reverse(),e)]}(t);r&&a?e.shiftKey||l!==a?e.shiftKey&&l===r&&(e.preventDefault(),n&&J(a,{select:!0})):(e.preventDefault(),n&&J(r,{select:!0})):l===t&&e.preventDefault()}},[n,r,m.paused]);return(0,E.createElement)($.div,N({tabIndex:-1},o,{ref:f,onKeyDown:v}))});function Y(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function G(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function J(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}let Q=(a=[],{add(e){let t=a[0];e!==t&&(null==t||t.pause()),(a=ee(a,e)).unshift(e)},remove(e){var t;null===(t=(a=ee(a,e))[0])||void 0===t||t.resume()}});function ee(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}let et=(0,E.forwardRef)((e,t)=>{var n;let{container:r=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...l}=e;return r?P.createPortal((0,E.createElement)($.div,N({},l,{ref:t})),r):null}),en=e=>{let{present:t,children:n}=e,r=function(e){var t,n;let[r,l]=(0,E.useState)(),a=(0,E.useRef)({}),o=(0,E.useRef)(e),i=(0,E.useRef)("none"),[u,s]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,E.useReducer)((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return(0,E.useEffect)(()=>{let e=er(a.current);i.current="mounted"===u?e:"none"},[u]),L(()=>{let t=a.current,n=o.current;if(n!==e){let r=i.current,l=er(t);e?s("MOUNT"):"none"===l||(null==t?void 0:t.display)==="none"?s("UNMOUNT"):n&&r!==l?s("ANIMATION_OUT"):s("UNMOUNT"),o.current=e}},[e,s]),L(()=>{if(r){let e=e=>{let t=er(a.current).includes(e.animationName);e.target===r&&t&&(0,P.flushSync)(()=>s("ANIMATION_END"))},t=e=>{e.target===r&&(i.current=er(a.current))};return r.addEventListener("animationstart",t),r.addEventListener("animationcancel",e),r.addEventListener("animationend",e),()=>{r.removeEventListener("animationstart",t),r.removeEventListener("animationcancel",e),r.removeEventListener("animationend",e)}}s("ANIMATION_END")},[r,s]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:(0,E.useCallback)(e=>{e&&(a.current=getComputedStyle(e)),l(e)},[])}}(t),l="function"==typeof n?n({present:r.isPresent}):E.Children.only(n),a=O(r.ref,l.ref);return"function"==typeof n||r.isPresent?(0,E.cloneElement)(l,{ref:a}):null};function er(e){return(null==e?void 0:e.animationName)||"none"}en.displayName="Presence";let el=0;function ea(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var eo=n(4539),ei=n(7118),eu=n(6622),es=(0,n(679)._)(),ec=function(){},ed=E.forwardRef(function(e,t){var n=E.useRef(null),r=E.useState({onScrollCapture:ec,onWheelCapture:ec,onTouchMoveCapture:ec}),l=r[0],a=r[1],o=e.forwardProps,i=e.children,u=e.className,s=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,m=e.noIsolation,v=e.inert,p=e.allowPinchZoom,h=e.as,g=(0,eo._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),y=(0,eu.q)([n,t]),b=(0,eo.pi)((0,eo.pi)({},g),l);return E.createElement(E.Fragment,null,c&&E.createElement(f,{sideCar:es,removeScrollBar:s,shards:d,noIsolation:m,inert:v,setCallbacks:a,allowPinchZoom:!!p,lockRef:n}),o?E.cloneElement(E.Children.only(i),(0,eo.pi)((0,eo.pi)({},b),{ref:y})):E.createElement(void 0===h?"div":h,(0,eo.pi)({},b,{className:u,ref:y}),i))});ed.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ed.classNames={fullWidth:ei.zi,zeroRight:ei.pF};var ef=n(9937),em=n(9718),ev=n(7323),ep=!1;if("undefined"!=typeof window)try{var eh=Object.defineProperty({},"passive",{get:function(){return ep=!0,!0}});window.addEventListener("test",eh,eh),window.removeEventListener("test",eh,eh)}catch(e){ep=!1}var eg=!!ep&&{passive:!1},eE=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},ey=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),eb(e,n)){var r=ew(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},eb=function(e,t){return"v"===e?eE(t,"overflowY"):eE(t,"overflowX")},ew=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},ex=function(e,t,n,r,l){var a,o=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),i=o*r,u=n.target,s=t.contains(u),c=!1,d=i>0,f=0,m=0;do{var v=ew(e,u),p=v[0],h=v[1]-v[2]-o*p;(p||h)&&eb(e,u)&&(f+=h,m+=p),u=u.parentNode}while(!s&&u!==document.body||s&&(t.contains(u)||t===u));return d&&(l&&0===f||!l&&i>f)?c=!0:!d&&(l&&0===m||!l&&-i>m)&&(c=!0),c},eC=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eR=function(e){return[e.deltaX,e.deltaY]},eS=function(e){return e&&"current"in e?e.current:e},eN=0,ek=[],eT=(0,ef.L)(es,function(e){var t=E.useRef([]),n=E.useRef([0,0]),r=E.useRef(),l=E.useState(eN++)[0],a=E.useState(function(){return(0,ev.Ws)()})[0],o=E.useRef(e);E.useEffect(function(){o.current=e},[e]),E.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(l));var t=(0,eo.ev)([e.lockRef.current],(e.shards||[]).map(eS),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(l))}),function(){document.body.classList.remove("block-interactivity-".concat(l)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(l))})}}},[e.inert,e.lockRef.current,e.shards]);var i=E.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!o.current.allowPinchZoom;var l,a=eC(e),i=n.current,u="deltaX"in e?e.deltaX:i[0]-a[0],s="deltaY"in e?e.deltaY:i[1]-a[1],c=e.target,d=Math.abs(u)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=ey(d,c);if(!f)return!0;if(f?l=d:(l="v"===d?"h":"v",f=ey(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||s)&&(r.current=l),!l)return!0;var m=r.current||l;return ex(m,t,e,"h"===m?u:s,!0)},[]),u=E.useCallback(function(e){if(ek.length&&ek[ek.length-1]===a){var n="deltaY"in e?eR(e):eC(e),r=t.current.filter(function(t){var r;return t.name===e.type&&t.target===e.target&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var l=(o.current.shards||[]).map(eS).filter(Boolean).filter(function(t){return t.contains(e.target)});(l.length>0?i(e,l[0]):!o.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),s=E.useCallback(function(e,n,r,l){var a={name:e,delta:n,target:r,should:l};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),c=E.useCallback(function(e){n.current=eC(e),r.current=void 0},[]),d=E.useCallback(function(t){s(t.type,eR(t),t.target,i(t,e.lockRef.current))},[]),f=E.useCallback(function(t){s(t.type,eC(t),t.target,i(t,e.lockRef.current))},[]);E.useEffect(function(){return ek.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",u,eg),document.addEventListener("touchmove",u,eg),document.addEventListener("touchstart",c,eg),function(){ek=ek.filter(function(e){return e!==a}),document.removeEventListener("wheel",u,eg),document.removeEventListener("touchmove",u,eg),document.removeEventListener("touchstart",c,eg)}},[]);var m=e.removeScrollBar,v=e.inert;return E.createElement(E.Fragment,null,v?E.createElement(a,{styles:"\n .block-interactivity-".concat(l," {pointer-events: none;}\n .allow-interactivity-").concat(l," {pointer-events: all;}\n")}):null,m?E.createElement(em.jp,{gapMode:"margin"}):null)}),eO=E.forwardRef(function(e,t){return E.createElement(ed,(0,eo.pi)({},e,{ref:t,sideCar:eT}))});eO.classNames=ed.classNames;var eL=n(922);let e_="Dialog",[eD,eI]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>(0,E.createContext)(e));return function(n){let r=(null==n?void 0:n[e])||t;return(0,E.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let l=(0,E.createContext)(r),a=n.length;function o(t){let{scope:n,children:r,...o}=t,i=(null==n?void 0:n[e][a])||l,u=(0,E.useMemo)(()=>o,Object.values(o));return(0,E.createElement)(i.Provider,{value:u},r)}return n=[...n,r],o.displayName=t+"Provider",[o,function(n,o){let i=(null==o?void 0:o[e][a])||l,u=(0,E.useContext)(i);if(u)return u;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let l=n(e)[`__scope${r}`];return{...t,...l}},{});return(0,E.useMemo)(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(e_),[eA,eP]=eD(e_),eM="DialogPortal",[eF,ej]=eD(eM,{forceMount:void 0}),eV="DialogOverlay",e$=(0,E.forwardRef)((e,t)=>{let n=ej(eV,e.__scopeDialog),{forceMount:r=n.forceMount,...l}=e,a=eP(eV,e.__scopeDialog);return a.modal?(0,E.createElement)(en,{present:r||a.open},(0,E.createElement)(eU,N({},l,{ref:t}))):null}),eU=(0,E.forwardRef)((e,t)=>{let{__scopeDialog:n,...r}=e,l=eP(eV,n);return(0,E.createElement)(eO,{as:M,allowPinchZoom:!0,shards:[l.contentRef]},(0,E.createElement)($.div,N({"data-state":eZ(l.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),eW="DialogContent",ez=(0,E.forwardRef)((e,t)=>{let n=ej(eW,e.__scopeDialog),{forceMount:r=n.forceMount,...l}=e,a=eP(eW,e.__scopeDialog);return(0,E.createElement)(en,{present:r||a.open},a.modal?(0,E.createElement)(eK,N({},l,{ref:t})):(0,E.createElement)(eq,N({},l,{ref:t})))}),eK=(0,E.forwardRef)((e,t)=>{let n=eP(eW,e.__scopeDialog),r=(0,E.useRef)(null),l=O(t,n.contentRef,r);return(0,E.useEffect)(()=>{let e=r.current;if(e)return(0,eL.Ry)(e)},[]),(0,E.createElement)(eB,N({},e,{ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:k(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:k(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:k(e.onFocusOutside,e=>e.preventDefault())}))}),eq=(0,E.forwardRef)((e,t)=>{let n=eP(eW,e.__scopeDialog),r=(0,E.useRef)(!1),l=(0,E.useRef)(!1);return(0,E.createElement)(eB,N({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var a,o;null===(a=e.onCloseAutoFocus)||void 0===a||a.call(e,t),t.defaultPrevented||(r.current||null===(o=n.triggerRef.current)||void 0===o||o.focus(),t.preventDefault()),r.current=!1,l.current=!1},onInteractOutside:t=>{var a,o;null===(a=e.onInteractOutside)||void 0===a||a.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"!==t.detail.originalEvent.type||(l.current=!0));let i=t.target;(null===(o=n.triggerRef.current)||void 0===o?void 0:o.contains(i))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&l.current&&t.preventDefault()}}))}),eB=(0,E.forwardRef)((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:l,onCloseAutoFocus:a,...o}=e,i=eP(eW,n),u=O(t,(0,E.useRef)(null));return(0,E.useEffect)(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:ea()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:ea()),el++,()=>{1===el&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),el--}},[]),(0,E.createElement)(E.Fragment,null,(0,E.createElement)(X,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:l,onUnmountAutoFocus:a},(0,E.createElement)(z,N({role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":eZ(i.open)},o,{ref:u,onDismiss:()=>i.onOpenChange(!1)}))),!1)});function eZ(e){return e?"open":"closed"}let[eH,eX]=function(e,t){let n=(0,E.createContext)(t);function r(e){let{children:t,...r}=e,l=(0,E.useMemo)(()=>r,Object.values(r));return(0,E.createElement)(n.Provider,{value:l},t)}return r.displayName=e+"Provider",[r,function(r){let l=(0,E.useContext)(n);if(l)return l;if(void 0!==t)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}]}("DialogTitleWarning",{contentName:eW,titleName:"DialogTitle",docsSlug:"dialog"}),eY=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:l,onOpenChange:a,modal:o=!0}=e,i=(0,E.useRef)(null),u=(0,E.useRef)(null),[s=!1,c]=function({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,l]=function({defaultProp:e,onChange:t}){let n=(0,E.useState)(e),[r]=n,l=(0,E.useRef)(r),a=A(t);return(0,E.useEffect)(()=>{l.current!==r&&(a(r),l.current=r)},[r,l,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,o=a?e:r,i=A(n);return[o,(0,E.useCallback)(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&i(n)}else l(t)},[a,e,l,i])]}({prop:r,defaultProp:l,onChange:a});return(0,E.createElement)(eA,{scope:t,triggerRef:i,contentRef:u,contentId:I(),titleId:I(),descriptionId:I(),open:s,onOpenChange:c,onOpenToggle:(0,E.useCallback)(()=>c(e=>!e),[c]),modal:o},n)},eG=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:l}=e,a=eP(eM,t);return(0,E.createElement)(eF,{scope:t,forceMount:n},E.Children.map(r,e=>(0,E.createElement)(en,{present:n||a.open},(0,E.createElement)(et,{asChild:!0,container:l},e))))};var eJ='[cmdk-group=""]',eQ='[cmdk-group-items=""]',e0='[cmdk-item=""]',e1=`${e0}:not([aria-disabled="true"])`,e2="cmdk-item-select",e9="data-value",e3=(e,t,n)=>{var r;return r=e,function e(t,n,r,l,a,o,i){if(o===n.length)return a===t.length?1:.99;var u=`${a},${o}`;if(void 0!==i[u])return i[u];for(var s,c,d,f,m=l.charAt(o),v=r.indexOf(m,a),p=0;v>=0;)(s=e(t,n,r,l,v+1,o+1,i))>p&&(v===a?s*=1:w.test(t.charAt(v-1))?(s*=.8,(d=t.slice(a,v-1).match(x))&&a>0&&(s*=Math.pow(.999,d.length))):C.test(t.charAt(v-1))?(s*=.9,(f=t.slice(a,v-1).match(R))&&a>0&&(s*=Math.pow(.999,f.length))):(s*=.17,a>0&&(s*=Math.pow(.999,v-a))),t.charAt(v)!==n.charAt(o)&&(s*=.9999)),(s<.1&&r.charAt(v-1)===l.charAt(o+1)||l.charAt(o+1)===l.charAt(o)&&r.charAt(v-1)!==l.charAt(o))&&.1*(c=e(t,n,r,l,v+1,o+2,i))>s&&(s=.1*c),s>p&&(p=s),v=r.indexOf(m,v+1);return i[u]=p,p}(r=n&&n.length>0?`${r+" "+n.join(" ")}`:r,t,S(r),S(t),0,0,{})},e6=E.createContext(void 0),e4=()=>E.useContext(e6),e5=E.createContext(void 0),e7=()=>E.useContext(e5),e8=E.createContext(void 0),te=E.forwardRef((e,t)=>{let n=tc(()=>{var t,n;return{search:"",value:null!=(n=null!=(t=e.value)?t:e.defaultValue)?n:"",filtered:{count:0,items:new Map,groups:new Set}}}),r=tc(()=>new Set),l=tc(()=>new Map),a=tc(()=>new Map),o=tc(()=>new Set),i=tu(e),{label:u,children:s,value:c,onValueChange:d,filter:f,shouldFilter:m,loop:v,disablePointerSelection:p=!1,vimBindings:h=!0,...g}=e,y=E.useId(),b=E.useId(),w=E.useId(),x=E.useRef(null),C=tv();ts(()=>{if(void 0!==c){let e=c.trim();n.current.value=e,R.emit()}},[c]),ts(()=>{C(6,L)},[]);let R=E.useMemo(()=>({subscribe:e=>(o.current.add(e),()=>o.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var l,a,o;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)O(),k(),C(1,T);else if("value"===e&&(r||C(5,L),(null==(l=i.current)?void 0:l.value)!==void 0)){null==(o=(a=i.current).onValueChange)||o.call(a,null!=t?t:"");return}R.emit()}},emit:()=>{o.current.forEach(e=>e())}}),[]),S=E.useMemo(()=>({value:(e,t,r)=>{var l;t!==(null==(l=a.current.get(e))?void 0:l.value)&&(a.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,N(t,r)),C(2,()=>{k(),R.emit()}))},item:(e,t)=>(r.current.add(e),t&&(l.current.has(t)?l.current.get(t).add(e):l.current.set(t,new Set([e]))),C(3,()=>{O(),k(),n.current.value||T(),R.emit()}),()=>{a.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=_();C(4,()=>{O(),(null==t?void 0:t.getAttribute("id"))===e&&T(),R.emit()})}),group:e=>(l.current.has(e)||l.current.set(e,new Set),()=>{a.current.delete(e),l.current.delete(e)}),filter:()=>i.current.shouldFilter,label:u||e["aria-label"],disablePointerSelection:p,listId:y,inputId:w,labelId:b,listInnerRef:x}),[]);function N(e,t){var r,l;let a=null!=(l=null==(r=i.current)?void 0:r.filter)?l:e3;return e?a(e,n.current.search,t):0}function k(){if(!n.current.search||!1===i.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach(n=>{let r=l.current.get(n),a=0;r.forEach(t=>{a=Math.max(e.get(t),a)}),t.push([n,a])});let r=x.current;D().sort((t,n)=>{var r,l;let a=t.getAttribute("id"),o=n.getAttribute("id");return(null!=(r=e.get(o))?r:0)-(null!=(l=e.get(a))?l:0)}).forEach(e=>{let t=e.closest(eQ);t?t.appendChild(e.parentElement===t?e:e.closest(`${eQ} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${eQ} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{let t=x.current.querySelector(`${eJ}[${e9}="${encodeURIComponent(e[0])}"]`);null==t||t.parentElement.appendChild(t)})}function T(){let e=D().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(e9);R.setState("value",t||void 0)}function O(){var e,t,o,u;if(!n.current.search||!1===i.current.shouldFilter){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let s=0;for(let l of r.current){let r=N(null!=(t=null==(e=a.current.get(l))?void 0:e.value)?t:"",null!=(u=null==(o=a.current.get(l))?void 0:o.keywords)?u:[]);n.current.filtered.items.set(l,r),r>0&&s++}for(let[e,t]of l.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=s}function L(){var e,t,n;let r=_();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(eJ))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function _(){var e;return null==(e=x.current)?void 0:e.querySelector(`${e0}[aria-selected="true"]`)}function D(){var e;return Array.from(null==(e=x.current)?void 0:e.querySelectorAll(e1))}function I(e){let t=D()[e];t&&R.setState("value",t.getAttribute(e9))}function A(e){var t;let n=_(),r=D(),l=r.findIndex(e=>e===n),a=r[l+e];null!=(t=i.current)&&t.loop&&(a=l+e<0?r[r.length-1]:l+e===r.length?r[0]:r[l+e]),a&&R.setState("value",a.getAttribute(e9))}function P(e){let t=_(),n=null==t?void 0:t.closest(eJ),r;for(;n&&!r;)r=null==(n=e>0?function(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}(n,eJ):function(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}(n,eJ))?void 0:n.querySelector(e1);r?R.setState("value",r.getAttribute(e9)):A(e)}let M=()=>I(D().length-1),F=e=>{e.preventDefault(),e.metaKey?M():e.altKey?P(1):A(1)},j=e=>{e.preventDefault(),e.metaKey?I(0):e.altKey?P(-1):A(-1)};return E.createElement($.div,{ref:t,tabIndex:-1,...g,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=g.onKeyDown)||t.call(g,e),!e.defaultPrevented)switch(e.key){case"n":case"j":h&&e.ctrlKey&&F(e);break;case"ArrowDown":F(e);break;case"p":case"k":h&&e.ctrlKey&&j(e);break;case"ArrowUp":j(e);break;case"Home":e.preventDefault(),I(0);break;case"End":e.preventDefault(),M();break;case"Enter":if(!e.nativeEvent.isComposing&&229!==e.keyCode){e.preventDefault();let t=_();if(t){let e=new Event(e2);t.dispatchEvent(e)}}}}},E.createElement("label",{"cmdk-label":"",htmlFor:S.inputId,id:S.labelId,style:th},u),tp(e,e=>E.createElement(e5.Provider,{value:R},E.createElement(e6.Provider,{value:S},e))))}),tt=E.forwardRef((e,t)=>{var n,r;let l=E.useId(),a=E.useRef(null),o=E.useContext(e8),i=e4(),u=tu(e),s=null!=(r=null==(n=u.current)?void 0:n.forceMount)?r:null==o?void 0:o.forceMount;ts(()=>{if(!s)return i.item(l,null==o?void 0:o.id)},[s]);let c=tm(l,a,[e.value,e.children,a],e.keywords),d=e7(),f=tf(e=>e.value&&e.value===c.current),m=tf(e=>!!s||!1===i.filter()||!e.search||e.filtered.items.get(l)>0);function v(){var e,t;p(),null==(t=(e=u.current).onSelect)||t.call(e,c.current)}function p(){d.setState("value",c.current,!0)}if(E.useEffect(()=>{let t=a.current;if(!(!t||e.disabled))return t.addEventListener(e2,v),()=>t.removeEventListener(e2,v)},[m,e.onSelect,e.disabled]),!m)return null;let{disabled:h,value:g,onSelect:y,forceMount:b,keywords:w,...x}=e;return E.createElement($.div,{ref:td([a,t]),...x,id:l,"cmdk-item":"",role:"option","aria-disabled":!!h,"aria-selected":!!f,"data-disabled":!!h,"data-selected":!!f,onPointerMove:h||i.disablePointerSelection?void 0:p,onClick:h?void 0:v},e.children)}),tn=E.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:l,...a}=e,o=E.useId(),i=E.useRef(null),u=E.useRef(null),s=E.useId(),c=e4(),d=tf(e=>!!l||!1===c.filter()||!e.search||e.filtered.groups.has(o));ts(()=>c.group(o),[]),tm(o,i,[e.value,e.heading,u]);let f=E.useMemo(()=>({id:o,forceMount:l}),[l]);return E.createElement($.div,{ref:td([i,t]),...a,"cmdk-group":"",role:"presentation",hidden:!d||void 0},n&&E.createElement("div",{ref:u,"cmdk-group-heading":"","aria-hidden":!0,id:s},n),tp(e,e=>E.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?s:void 0},E.createElement(e8.Provider,{value:f},e))))}),tr=E.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,l=E.useRef(null),a=tf(e=>!e.search);return n||a?E.createElement($.div,{ref:td([l,t]),...r,"cmdk-separator":"",role:"separator"}):null}),tl=E.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,l=null!=e.value,a=e7(),o=tf(e=>e.search),i=tf(e=>e.value),u=e4(),s=E.useMemo(()=>{var e;let t=null==(e=u.listInnerRef.current)?void 0:e.querySelector(`${e0}[${e9}="${encodeURIComponent(i)}"]`);return null==t?void 0:t.getAttribute("id")},[]);return E.useEffect(()=>{null!=e.value&&a.setState("search",e.value)},[e.value]),E.createElement($.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":u.listId,"aria-labelledby":u.labelId,"aria-activedescendant":s,id:u.inputId,type:"text",value:l?e.value:o,onChange:e=>{l||a.setState("search",e.target.value),null==n||n(e.target.value)}})}),ta=E.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...l}=e,a=E.useRef(null),o=E.useRef(null),i=e4();return E.useEffect(()=>{if(o.current&&a.current){let e=o.current,t=a.current,n,r=new ResizeObserver(()=>{n=requestAnimationFrame(()=>{let n=e.offsetHeight;t.style.setProperty("--cmdk-list-height",n.toFixed(1)+"px")})});return r.observe(e),()=>{cancelAnimationFrame(n),r.unobserve(e)}}},[]),E.createElement($.div,{ref:td([a,t]),...l,"cmdk-list":"",role:"listbox","aria-label":r,id:i.listId},tp(e,e=>E.createElement("div",{ref:td([o,i.listInnerRef]),"cmdk-list-sizer":""},e)))}),to=E.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:l,contentClassName:a,container:o,...i}=e;return E.createElement(eY,{open:n,onOpenChange:r},E.createElement(eG,{container:o},E.createElement(e$,{"cmdk-overlay":"",className:l}),E.createElement(ez,{"aria-label":e.label,"cmdk-dialog":"",className:a},E.createElement(te,{ref:t,...i}))))}),ti=Object.assign(te,{List:ta,Item:tt,Input:tl,Group:tn,Separator:tr,Dialog:to,Empty:E.forwardRef((e,t)=>tf(e=>0===e.filtered.count)?E.createElement($.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:E.forwardRef((e,t)=>{let{progress:n,children:r,label:l="Loading...",...a}=e;return E.createElement($.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":l},tp(e,e=>E.createElement("div",{"aria-hidden":!0},e)))})});function tu(e){let t=E.useRef(e);return ts(()=>{t.current=e}),t}var ts="undefined"==typeof window?E.useEffect:E.useLayoutEffect;function tc(e){let t=E.useRef();return void 0===t.current&&(t.current=e()),t}function td(e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}function tf(e){let t=e7(),n=()=>e(t.snapshot());return E.useSyncExternalStore(t.subscribe,n,n)}function tm(e,t,n,r=[]){let l=E.useRef(),a=e4();return ts(()=>{var o;let i=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():l.current}})(),u=r.map(e=>e.trim());a.value(e,i,u),null==(o=t.current)||o.setAttribute(e9,i),l.current=i}),l}var tv=()=>{let[e,t]=E.useState(),n=tc(()=>new Map);return ts(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}};function tp({asChild:e,children:t},n){let r;return e&&E.isValidElement(t)?E.cloneElement("function"==typeof(r=t.type)?r(t.props):"render"in r?r.render(t.props):t,{ref:t.ref},n(t.props.children)):n(t)}var th={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},tg=n(7516),tE=E.forwardRef(({className:e,onClose:t,children:n,...r},l)=>(0,tg.jsxs)("div",{className:"flex flex-row items-center gap-2 px-3",children:[n,(0,tg.jsx)(ti.Input,{ref:l,className:(0,c.m6)("w-0 flex-1 bg-transparent py-3 text-base placeholder:text-fd-muted-foreground focus-visible:outline-none",e),...r}),(0,tg.jsx)("button",{type:"button","aria-label":"Close Search",onClick:t,className:(0,c.m6)((0,s.d)({color:"outline",className:"text-xs p-1.5"})),children:"Esc"})]}));tE.displayName=ti.Input.displayName;var ty=E.forwardRef(({className:e,...t},n)=>(0,tg.jsx)(ti.List,{ref:n,className:(0,c.m6)("max-h-[460px] overflow-y-auto border-t p-2",e),...t}));ty.displayName=ti.List.displayName;var tb=E.forwardRef((e,t)=>(0,tg.jsx)(ti.Empty,{ref:t,className:"py-12 text-center text-sm",...e}));tb.displayName=ti.Empty.displayName;var tw=E.forwardRef(({className:e,heading:t,...n},r)=>(0,tg.jsx)(ti.Group,{ref:r,heading:t?(0,tg.jsx)("div",{className:"px-3 py-2 text-xs font-medium",children:t}):void 0,className:(0,c.m6)("overflow-hidden",e),...n}));tw.displayName=ti.Group.displayName,E.forwardRef(({className:e,...t},n)=>(0,tg.jsx)(ti.Separator,{ref:n,className:(0,c.m6)("h-px bg-fd-border",e),...t})).displayName=ti.Separator.displayName;var tx=E.forwardRef(({className:e,icon:t,nested:n=!1,children:r,...l},a)=>(0,tg.jsx)(ti.Item,{ref:a,className:(0,c.m6)("select-none rounded-lg px-2 text-sm aria-disabled:pointer-events-none aria-disabled:opacity-50 aria-selected:bg-fd-accent aria-selected:text-fd-accent-foreground",e),...l,children:(0,tg.jsxs)("div",{className:(0,c.m6)("flex min-h-10 flex-row items-center gap-3",n&&"ms-2 gap-2 border-s ps-4"),children:[(0,tg.jsx)("div",{className:"text-fd-muted-foreground [&_svg]:size-4",children:t}),(0,tg.jsx)("p",{className:"w-0 flex-1 truncate",children:r})]})}));tx.displayName=ti.Item.displayName;var tC=E.forwardRef(({children:e,...t},n)=>(0,tg.jsx)(ti.Dialog,{ref:n,shouldFilter:!1,loop:!0,contentClassName:"fixed left-1/2 top-[10vh] z-50 w-[98vw] max-w-screen-sm origin-left -translate-x-1/2 rounded-lg border bg-fd-popover text-fd-popover-foreground shadow-lg data-[state=closed]:animate-fd-dialog-out data-[state=open]:animate-fd-dialog-in",overlayClassName:"fixed inset-0 z-50 bg-fd-background/50 backdrop-blur-sm data-[state=closed]:animate-fd-fade-out data-[state=open]:animate-fd-fade-in",...t,children:e}));function tR({open:e,onOpenChange:t,footer:n,links:r=[],...l}){let a=(0,E.useMemo)(()=>r.map(([e,t])=>({type:"page",id:e,content:e,url:t})),[r]);return(0,tg.jsxs)(tC,{open:e,onOpenChange:t,children:[(0,tg.jsx)(tN,{...l,items:"empty"===l.results?a:l.results,hideResults:"empty"===l.results&&0===a.length}),n?(0,tg.jsx)("div",{className:"mt-auto flex flex-col border-t p-3",children:n}):null]})}tC.displayName=ti.Dialog.displayName;var tS={text:(0,tg.jsx)(d.Z,{}),heading:(0,tg.jsx)(m,{}),page:(0,tg.jsx)(v,{})};function tN({search:e,onSearchChange:t,items:n,isLoading:r,hideResults:l=!1}){let{text:a}=(0,u.Q)(),s=(0,g.useRouter)(),{setOpenSearch:d}=(0,o.A)(),f=(0,i.A)(),m=e=>{s.push(e),d(!1),location.pathname===e.split("#")[0]&&f.setOpen(!1)};return(0,tg.jsxs)(tg.Fragment,{children:[(0,tg.jsx)(tE,{value:e,onValueChange:t,onClose:(0,E.useCallback)(()=>{d(!1)},[d]),placeholder:a.search,children:(0,tg.jsxs)("div",{className:"relative size-4",children:[(0,tg.jsx)(p,{className:(0,c.m6)("absolute size-full animate-spin text-fd-primary transition-opacity",!r&&"opacity-0")}),(0,tg.jsx)(h.Z,{className:(0,c.m6)("absolute size-full text-fd-muted-foreground transition-opacity",r&&"opacity-0")})]})}),(0,tg.jsxs)(ty,{className:(0,c.m6)(l&&"hidden"),children:[(0,tg.jsx)(tb,{children:a.searchNoResult}),(0,tg.jsx)(tw,{value:"result",children:n.map(e=>(0,tg.jsx)(tx,{value:e.id,onSelect:()=>{m(e.url)},icon:tS[e.type],nested:"page"!==e.type,children:e.content},e.id))})]})]})}var tk=(0,b.j)("rounded-md border px-2 py-0.5 text-xs font-medium text-fd-muted-foreground transition-colors",{variants:{active:{true:"bg-fd-accent text-fd-accent-foreground"}}});function tT({tag:e,onTagChange:t,items:n,...r}){return(0,tg.jsxs)("div",{...r,className:(0,c.m6)("flex flex-row items-center gap-1",r.className),children:[n.map(n=>(0,tg.jsx)("button",{type:"button",className:(0,c.m6)(tk({active:e===n.value})),onClick:()=>{t(n.value)},tabIndex:-1,children:n.name},n.value)),r.children]})}n(4918),n(6384);var tO=n(965);let tL=()=>{},t_=tL(),tD=Object,tI=e=>e===t_,tA=e=>"function"==typeof e,tP=(e,t)=>({...e,...t}),tM=e=>tA(e.then),tF=new WeakMap,tj=0,tV=e=>{let t,n;let r=typeof e,l=e&&e.constructor,a=l==Date;if(tD(e)!==e||a||l==RegExp)t=a?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=tF.get(e))return t;if(t=++tj+"~",tF.set(e,t),l==Array){for(n=0,t="@";ntK&&typeof window.requestAnimationFrame!=tz,tZ=(e,t)=>{let n=t$.get(e);return[()=>!tI(t)&&e.get(t)||tU,r=>{if(!tI(t)){let l=e.get(t);t in tW||(tW[t]=l),n[5](t,tP(l,r),l||tU)}},n[6],()=>!tI(t)&&t in tW?tW[t]:!tI(t)&&e.get(t)||tU]},tH=!0,[tX,tY]=tK&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[tL,tL],tG={initFocus:e=>(tq&&document.addEventListener("visibilitychange",e),tX("focus",e),()=>{tq&&document.removeEventListener("visibilitychange",e),tY("focus",e)}),initReconnect:e=>{let t=()=>{tH=!0,e()},n=()=>{tH=!1};return tX("online",t),tX("offline",n),()=>{tY("online",t),tY("offline",n)}}},tJ=!E.useId,tQ=!tK||"Deno"in window,t0=e=>tB()?window.requestAnimationFrame(e):setTimeout(e,1),t1=tQ?E.useEffect:E.useLayoutEffect,t2="undefined"!=typeof navigator&&navigator.connection,t9=!tQ&&t2&&(["slow-2g","2g"].includes(t2.effectiveType)||t2.saveData),t3=e=>{if(tA(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?tV(e):"",t]},t6=0,t4=()=>++t6;var t5={ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:2,RECONNECT_EVENT:1};async function t7(...e){let[t,n,r,l]=e,a=tP({populateCache:!0,throwOnError:!0},"boolean"==typeof l?{revalidate:l}:l||{}),o=a.populateCache,i=a.rollbackOnError,u=a.optimisticData,s=e=>"function"==typeof i?i(e):!1!==i,c=a.throwOnError;if(tA(n)){let e=[];for(let r of t.keys())!/^\$(inf|sub)\$/.test(r)&&n(t.get(r)._k)&&e.push(r);return Promise.all(e.map(d))}return d(n);async function d(n){let l;let[i]=t3(n);if(!i)return;let[d,f]=tZ(t,i),[m,v,p,h]=t$.get(t),g=()=>{let e=m[i];return(tA(a.revalidate)?a.revalidate(d().data,n):!1!==a.revalidate)&&(delete p[i],delete h[i],e&&e[0])?e[0](2).then(()=>d().data):d().data};if(e.length<3)return g();let E=r,y=t4();v[i]=[y,0];let b=!tI(u),w=d(),x=w.data,C=w._c,R=tI(C)?x:C;if(b&&f({data:u=tA(u)?u(R,x):u,_c:R}),tA(E))try{E=E(R)}catch(e){l=e}if(E&&tM(E)){if(E=await E.catch(e=>{l=e}),y!==v[i][0]){if(l)throw l;return E}l&&b&&s(l)&&(o=!0,f({data:R,_c:t_}))}if(o&&!l&&(tA(o)?f({data:o(E,R),error:t_,_c:t_}):f({data:E,error:t_,_c:t_})),v[i][1]=t4(),Promise.resolve(g()).then(()=>{f({_c:t_})}),l){if(c)throw l;return}return E}}let t8=(e,t)=>{for(let n in e)e[n][0]&&e[n][0](t)},ne=(e,t)=>{if(!t$.has(e)){let n=tP(tG,t),r={},l=t7.bind(t_,e),a=tL,o={},i=(e,t)=>{let n=o[e]||[];return o[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},u=(t,n,r)=>{e.set(t,n);let l=o[t];if(l)for(let e of l)e(n,r)},s=()=>{if(!t$.has(e)&&(t$.set(e,[r,{},{},{},l,u,i]),!tQ)){let t=n.initFocus(setTimeout.bind(t_,t8.bind(t_,r,0))),l=n.initReconnect(setTimeout.bind(t_,t8.bind(t_,r,1)));a=()=>{t&&t(),l&&l(),t$.delete(e)}}};return s(),[e,l,s,a]}return[e,t$.get(e)[4]]},[nt,nn]=ne(new Map),nr=tP({onLoadingSlow:tL,onSuccess:tL,onError:tL,onErrorRetry:(e,t,n,r,l)=>{let a=n.errorRetryCount,o=l.retryCount,i=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;(tI(a)||!(o>a))&&setTimeout(r,i,l)},onDiscarded:tL,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:t9?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:t9?5e3:3e3,compare:(e,t)=>tV(e)==tV(t),isPaused:()=>!1,cache:nt,mutate:nn,fallback:{}},{isOnline:()=>tH,isVisible:()=>{let e=tq&&document.visibilityState;return tI(e)||"hidden"!==e}}),nl=(e,t)=>{let n=tP(e,t);if(t){let{use:r,fallback:l}=e,{use:a,fallback:o}=t;r&&a&&(n.use=r.concat(a)),l&&o&&(n.fallback=tP(l,o))}return n},na=(0,E.createContext)({}),no=tK&&window.__SWR_DEVTOOLS_USE__,ni=no?window.__SWR_DEVTOOLS_USE__:[],nu=e=>tA(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],ns=()=>tP(nr,(0,E.useContext)(na)),nc=ni.concat(e=>(t,n,r)=>{let l=n&&((...e)=>{let[r]=t3(t),[,,,l]=t$.get(nt);if(r.startsWith("$inf$"))return n(...e);let a=l[r];return tI(a)?n(...e):(delete l[r],a)});return e(t,l,r)}),nd=(e,t,n)=>{let r=t[e]||(t[e]=[]);return r.push(n),()=>{let e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}};no&&(window.__SWR_DEVTOOLS_REACT__=E);let nf=E.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}),nm={dedupe:!0};tD.defineProperty(e=>{let{value:t}=e,n=(0,E.useContext)(na),r=tA(t),l=(0,E.useMemo)(()=>r?t(n):t,[r,n,t]),a=(0,E.useMemo)(()=>r?l:nl(n,l),[r,n,l]),o=l&&l.provider,i=(0,E.useRef)(t_);o&&!i.current&&(i.current=ne(o(a.cache||nt),l));let u=i.current;return u&&(a.cache=u[0],a.mutate=u[1]),t1(()=>{if(u)return u[2]&&u[2](),u[3]},[]),(0,E.createElement)(na.Provider,tP(e,{value:a}))},"defaultValue",{value:nr});let nv=(l=(e,t,n)=>{let{cache:r,compare:l,suspense:a,fallbackData:o,revalidateOnMount:i,revalidateIfStale:u,refreshInterval:s,refreshWhenHidden:c,refreshWhenOffline:d,keepPreviousData:f}=n,[m,v,p,h]=t$.get(r),[g,y]=t3(e),b=(0,E.useRef)(!1),w=(0,E.useRef)(!1),x=(0,E.useRef)(g),C=(0,E.useRef)(t),R=(0,E.useRef)(n),S=()=>R.current,N=()=>S().isVisible()&&S().isOnline(),[k,T,O,L]=tZ(r,g),_=(0,E.useRef)({}).current,D=tI(o)?n.fallback[g]:o,I=(e,t)=>{for(let n in _)if("data"===n){if(!l(e[n],t[n])&&(!tI(e[n])||!l(W,t[n])))return!1}else if(t[n]!==e[n])return!1;return!0},A=(0,E.useMemo)(()=>{let e=!!g&&!!t&&(tI(i)?!S().isPaused()&&!a&&(!!tI(u)||u):i),n=t=>{let n=tP(t);return(delete n._k,e)?{isValidating:!0,isLoading:!0,...n}:n},r=k(),l=L(),o=n(r),s=r===l?o:n(l),c=o;return[()=>{let e=n(k());return I(e,c)?(c.data=e.data,c.isLoading=e.isLoading,c.isValidating=e.isValidating,c.error=e.error,c):(c=e,e)},()=>s]},[r,g]),P=(0,tO.useSyncExternalStore)((0,E.useCallback)(e=>O(g,(t,n)=>{I(n,t)||e()}),[r,g]),A[0],A[1]),M=!b.current,F=m[g]&&m[g].length>0,j=P.data,V=tI(j)?D:j,$=P.error,U=(0,E.useRef)(V),W=f?tI(j)?U.current:j:V,z=(!F||!!tI($))&&(M&&!tI(i)?i:!S().isPaused()&&(a?!tI(V)&&u:tI(V)||u)),K=!!(g&&t&&M&&z),q=tI(P.isValidating)?K:P.isValidating,B=tI(P.isLoading)?K:P.isLoading,Z=(0,E.useCallback)(async e=>{let t,r;let a=C.current;if(!g||!a||w.current||S().isPaused())return!1;let o=!0,i=e||{},u=!p[g]||!i.dedupe,s=()=>tJ?!w.current&&g===x.current&&b.current:g===x.current,c={isValidating:!1,isLoading:!1},d=()=>{T(c)},f=()=>{let e=p[g];e&&e[1]===r&&delete p[g]},h={isValidating:!0};tI(k().data)&&(h.isLoading=!0);try{if(u&&(T(h),n.loadingTimeout&&tI(k().data)&&setTimeout(()=>{o&&s()&&S().onLoadingSlow(g,n)},n.loadingTimeout),p[g]=[a(y),t4()]),[t,r]=p[g],t=await t,u&&setTimeout(f,n.dedupingInterval),!p[g]||p[g][1]!==r)return u&&s()&&S().onDiscarded(g),!1;c.error=t_;let e=v[g];if(!tI(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return d(),u&&s()&&S().onDiscarded(g),!1;let i=k().data;c.data=l(i,t)?i:t,u&&s()&&S().onSuccess(t,g,n)}catch(n){f();let e=S(),{shouldRetryOnError:t}=e;!e.isPaused()&&(c.error=n,u&&s()&&(e.onError(n,g,e),(!0===t||tA(t)&&t(n))&&(!S().revalidateOnFocus||!S().revalidateOnReconnect||N())&&e.onErrorRetry(n,g,e,e=>{let t=m[g];t&&t[0]&&t[0](t5.ERROR_REVALIDATE_EVENT,e)},{retryCount:(i.retryCount||0)+1,dedupe:!0})))}return o=!1,d(),!0},[g,r]),H=(0,E.useCallback)((...e)=>t7(r,x.current,...e),[]);if(t1(()=>{C.current=t,R.current=n,tI(j)||(U.current=j)}),t1(()=>{if(!g)return;let e=Z.bind(t_,nm),t=0,n=nd(g,m,(n,r={})=>{if(n==t5.FOCUS_EVENT){let n=Date.now();S().revalidateOnFocus&&n>t&&N()&&(t=n+S().focusThrottleInterval,e())}else if(n==t5.RECONNECT_EVENT)S().revalidateOnReconnect&&N()&&e();else if(n==t5.MUTATE_EVENT)return Z();else if(n==t5.ERROR_REVALIDATE_EVENT)return Z(r)});return w.current=!1,x.current=g,b.current=!0,T({_k:y}),z&&(tI(V)||tQ?e():t0(e)),()=>{w.current=!0,n()}},[g]),t1(()=>{let e;function t(){let t=tA(s)?s(k().data):s;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!k().error&&(c||S().isVisible())&&(d||S().isOnline())?Z(nm).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[s,c,d,g]),(0,E.useDebugValue)(W),a&&tI(V)&&g){if(!tJ&&tQ)throw Error("Fallback data is required when using suspense in SSR.");C.current=t,R.current=n,w.current=!1;let e=h[g];if(tI(e)||nf(H(e)),tI($)){let e=Z(nm);tI(W)||(e.status="fulfilled",e.value=!0),nf(e)}else throw $}return{mutate:H,get data(){return _.data=!0,W},get error(){return _.error=!0,$},get isValidating(){return _.isValidating=!0,q},get isLoading(){return _.isLoading=!0,B}}},function(...e){let t=ns(),[n,r,a]=nu(e),o=nl(t,a),i=l,{use:u}=o,s=(u||[]).concat(nc);for(let e=s.length;e--;)i=s[e](i);return i(n,r||o.fetcher||null,o)});async function np(e,t,n,r){if(0===t.length)return"empty";let l=new URLSearchParams;l.set("query",t),n&&l.set("locale",n),r&&l.set("tag",r);let a=await fetch(`${e}?${l.toString()}`);if(!a.ok)throw Error(await a.text());return await a.json()}var nh=n(1694);function ng(e){var t;let{defaultTag:n,tags:r,api:l,delayMs:a,...o}=e,{locale:i}=(0,u.Q)(),[s,c]=(0,E.useState)(n),{search:d,setSearch:f,query:m}=function(e,t,n="/api/search",r=100){let[l,a]=(0,E.useState)(""),o=nv([n,function(e,t=1e3){let[n,r]=(0,E.useState)(e),l=(0,E.useRef)();if(0===t)return e;if(e!==n&&l.current?.value!==e){l.current&&clearTimeout(l.current.handler);let n=window.setTimeout(()=>{r(e)},t);l.current={value:e,handler:n}}return n}(l,r),e,t],e=>np(...e),{keepPreviousData:!0});return{search:l,setSearch:a,query:o}}(i,s,l,a);return(0,nh.p)(n,e=>{c(e)}),(0,tg.jsx)(tR,{search:d,onSearchChange:f,isLoading:m.isLoading,results:null!==(t=m.data)&&void 0!==t?t:[],...o,footer:r?(0,tg.jsxs)(tg.Fragment,{children:[(0,tg.jsx)(tT,{tag:s,onTagChange:c,items:r}),o.footer]}):o.footer})}}}]); \ No newline at end of file diff --git a/_next/static/chunks/808-6dceee3f6f2f7cd1.js b/_next/static/chunks/547-a3533eb96f4320e4.js similarity index 70% rename from _next/static/chunks/808-6dceee3f6f2f7cd1.js rename to _next/static/chunks/547-a3533eb96f4320e4.js index 62225e0c..ae99da54 100644 --- a/_next/static/chunks/808-6dceee3f6f2f7cd1.js +++ b/_next/static/chunks/547-a3533eb96f4320e4.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[808],{8302:function(e,t,n){var r=n(3555);n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}}),n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}})},7033:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return o}});let r=n(2089);function o(e){let{reason:t,children:n}=e;if("undefined"==typeof window)throw new r.BailoutToCSRError(t);return n}},8873:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadCss",{enumerable:!0,get:function(){return a}});let r=n(7516),o=n(5192);function a(e){let{moduleIds:t}=e;if("undefined"!=typeof window)return null;let n=(0,o.getExpectedRequestStore)("next/dynamic css"),a=[];if(n.reactLoadableManifest&&t){let e=n.reactLoadableManifest;for(let n of t){if(!e[n])continue;let t=e[n].files.filter(e=>e.endsWith(".css"));a.push(...t)}}return 0===a.length?null:(0,r.jsx)(r.Fragment,{children:a.map(e=>(0,r.jsx)("link",{precedence:"dynamic",rel:"stylesheet",href:n.assetPrefix+"/_next/"+encodeURI(e),as:"style"},e))})}},7118:function(e,t,n){n.d(t,{Av:function(){return c},pF:function(){return r},xv:function(){return a},zi:function(){return o}});var r="right-scroll-bar-position",o="width-before-scroll-bar",a="with-scroll-bars-hidden",c="--removed-body-scroll-bar-size"},9718:function(e,t,n){n.d(t,{jp:function(){return v}});var r=n(2374),o=n(7323),a=n(7118),c={left:0,top:0,right:0,gap:0},i=function(e){return parseInt(e||"",10)||0},u=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[i(n),i(r),i(o)]},l=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return c;var t=u(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},s=(0,o.Ws)(),d="data-scroll-locked",f=function(e,t,n,r){var o=e.left,c=e.top,i=e.right,u=e.gap;return void 0===n&&(n="margin"),"\n .".concat(a.xv," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(u,"px ").concat(r,";\n }\n body[").concat(d,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(c,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(u,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(a.pF," {\n right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(a.zi," {\n margin-right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(a.pF," .").concat(a.pF," {\n right: 0 ").concat(r,";\n }\n \n .").concat(a.zi," .").concat(a.zi," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(d,"] {\n ").concat(a.Av,": ").concat(u,"px;\n }\n")},h=function(){var e=parseInt(document.body.getAttribute(d)||"0",10);return isFinite(e)?e:0},m=function(){r.useEffect(function(){return document.body.setAttribute(d,(h()+1).toString()),function(){var e=h()-1;e<=0?document.body.removeAttribute(d):document.body.setAttribute(d,e.toString())}},[])},v=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,a=void 0===o?"margin":o;m();var c=r.useMemo(function(){return l(a)},[a]);return r.createElement(s,{styles:f(c,!t,a,n?"":"!important")})}},7323:function(e,t,n){n.d(t,{Ws:function(){return i}});var r,o=n(2374),a=function(){var e=0,t=null;return{add:function(o){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=r||n.nc;return t&&e.setAttribute("nonce",t),e}())){var a,c;(a=t).styleSheet?a.styleSheet.cssText=o:a.appendChild(document.createTextNode(o)),c=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(c)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},c=function(){var e=a();return function(t,n){o.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},i=function(){var e=c();return function(t){return e(t.styles,t.dynamic),null}}},6622:function(e,t,n){n.d(t,{q:function(){return i}});var r=n(2374);function o(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var a="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,c=new WeakMap;function i(e,t){var n,i,u,l=(n=t||null,i=function(t){return e.forEach(function(e){return o(e,t)})},(u=(0,r.useState)(function(){return{value:n,callback:i,facade:{get current(){return u.value},set current(value){var e=u.value;e!==value&&(u.value=value,u.callback(value,e))}}}})[0]).callback=i,u.facade);return a(function(){var t=c.get(l);if(t){var n=new Set(t),r=new Set(e),a=l.current;n.forEach(function(e){r.has(e)||o(e,null)}),r.forEach(function(e){n.has(e)||o(e,a)})}c.set(l,e)},[e]),l}},9937:function(e,t,n){n.d(t,{L:function(){return c}});var r=n(4539),o=n(2374),a=function(e){var t=e.sideCar,n=(0,r._T)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var a=t.read();if(!a)throw Error("Sidecar medium not found");return o.createElement(a,(0,r.pi)({},n))};function c(e,t){return e.useMedium(t),a}a.isSideCarExport=!0},679:function(e,t,n){n.d(t,{_:function(){return a}});var r=n(4539);function o(e){return e}function a(e){void 0===e&&(e={});var t,n,a,c=(void 0===t&&(t=o),n=[],a=!1,{read:function(){if(a)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var r=t(e,a);return n.push(r),function(){n=n.filter(function(e){return e!==r})}},assignSyncMedium:function(e){for(a=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){a=!0;var t=[];if(n.length){var r=n;n=[],r.forEach(e),t=n}var o=function(){var n=t;t=[],n.forEach(e)},c=function(){return Promise.resolve().then(o)};c(),n={push:function(e){t.push(e),c()},filter:function(e){return t=t.filter(e),n}}}});return c.options=(0,r.pi)({async:!0,ssr:!1},e),c}},8454:function(e,t,n){n.d(t,{_9:function(){return c},gm:function(){return i}});var r=n(2374),o=n(7516),a=r.createContext(void 0),c=e=>{let{dir:t,children:n}=e;return(0,o.jsx)(a.Provider,{value:t,children:n})};function i(e){let t=r.useContext(a);return e||t||"ltr"}},1453:function(e,t,n){n.d(t,{p:function(){return o}});var r=n(2374);function o(e,t){let[n,o]=(0,r.useState)(e);n!==e&&(t(e,n),o(e))}},6384:function(e,t,n){},4557:function(e,t,n){n.d(t,{wb:function(){return N},Hn:function(){return R},vP:function(){return j}}),n(6384);var r=n(2374),o=n(4539),a=n(7118),c=n(6622),i=(0,n(679)._)(),u=function(){},l=r.forwardRef(function(e,t){var n=r.useRef(null),a=r.useState({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:u}),l=a[0],s=a[1],d=e.forwardProps,f=e.children,h=e.className,m=e.removeScrollBar,v=e.enabled,p=e.shards,g=e.sideCar,y=e.noIsolation,w=e.inert,b=e.allowPinchZoom,E=e.as,C=e.gapMode,S=(0,o._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=(0,c.q)([n,t]),k=(0,o.pi)((0,o.pi)({},S),l);return r.createElement(r.Fragment,null,v&&r.createElement(g,{sideCar:i,removeScrollBar:m,shards:p,noIsolation:y,inert:w,setCallbacks:s,allowPinchZoom:!!b,lockRef:n,gapMode:C}),d?r.cloneElement(r.Children.only(f),(0,o.pi)((0,o.pi)({},k),{ref:x})):r.createElement(void 0===E?"div":E,(0,o.pi)({},k,{className:h,ref:x}),f))});l.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},l.classNames={fullWidth:a.zi,zeroRight:a.pF};var s=n(9937),d=n(9718),f=n(7323),h=!1;if("undefined"!=typeof window)try{var m=Object.defineProperty({},"passive",{get:function(){return h=!0,!0}});window.addEventListener("test",m,m),window.removeEventListener("test",m,m)}catch(e){h=!1}var v=!!h&&{passive:!1},p=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},g=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),y(e,r)){var o=w(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},y=function(e,t){return"v"===e?p(t,"overflowY"):p(t,"overflowX")},w=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},b=function(e,t,n,r,o){var a,c=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),i=c*r,u=n.target,l=t.contains(u),s=!1,d=i>0,f=0,h=0;do{var m=w(e,u),v=m[0],p=m[1]-m[2]-c*v;(v||p)&&y(e,u)&&(f+=p,h+=v),u instanceof ShadowRoot?u=u.host:u=u.parentNode}while(!l&&u!==document.body||l&&(t.contains(u)||t===u));return d&&(o&&1>Math.abs(f)||!o&&i>f)?s=!0:!d&&(o&&1>Math.abs(h)||!o&&-i>h)&&(s=!0),s},E=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},C=function(e){return[e.deltaX,e.deltaY]},S=function(e){return e&&"current"in e?e.current:e},x=0,k=[],T=(0,s.L)(i,function(e){var t=r.useRef([]),n=r.useRef([0,0]),a=r.useRef(),c=r.useState(x++)[0],i=r.useState(f.Ws)[0],u=r.useRef(e);r.useEffect(function(){u.current=e},[e]),r.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(c));var t=(0,o.ev)([e.lockRef.current],(e.shards||[]).map(S),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(c))})}}},[e.inert,e.lockRef.current,e.shards]);var l=r.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!u.current.allowPinchZoom;var r,o=E(e),c=n.current,i="deltaX"in e?e.deltaX:c[0]-o[0],l="deltaY"in e?e.deltaY:c[1]-o[1],s=e.target,d=Math.abs(i)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===d&&"range"===s.type)return!1;var f=g(d,s);if(!f)return!0;if(f?r=d:(r="v"===d?"h":"v",f=g(d,s)),!f)return!1;if(!a.current&&"changedTouches"in e&&(i||l)&&(a.current=r),!r)return!0;var h=a.current||r;return b(h,t,e,"h"===h?i:l,!0)},[]),s=r.useCallback(function(e){if(k.length&&k[k.length-1]===i){var n="deltaY"in e?C(e):E(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(u.current.shards||[]).map(S).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?l(e,o[0]):!u.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),h=r.useCallback(function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),m=r.useCallback(function(e){n.current=E(e),a.current=void 0},[]),p=r.useCallback(function(t){h(t.type,C(t),t.target,l(t,e.lockRef.current))},[]),y=r.useCallback(function(t){h(t.type,E(t),t.target,l(t,e.lockRef.current))},[]);r.useEffect(function(){return k.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:y}),document.addEventListener("wheel",s,v),document.addEventListener("touchmove",s,v),document.addEventListener("touchstart",m,v),function(){k=k.filter(function(e){return e!==i}),document.removeEventListener("wheel",s,v),document.removeEventListener("touchmove",s,v),document.removeEventListener("touchstart",m,v)}},[]);var w=e.removeScrollBar,T=e.inert;return r.createElement(r.Fragment,null,T?r.createElement(i,{styles:"\n .block-interactivity-".concat(c," {pointer-events: none;}\n .allow-interactivity-").concat(c," {pointer-events: all;}\n")}):null,w?r.createElement(d.jp,{gapMode:e.gapMode}):null)}),M=r.forwardRef(function(e,t){return r.createElement(l,(0,o.pi)({},e,{ref:t,sideCar:T}))});M.classNames=l.classNames;var P=n(7516),L=(0,r.createContext)(void 0);function O(){let e=(0,r.useContext)(L);if(!e)throw Error("Missing sidebar provider");return e}function R(e){var t,n;let[o,a]=(0,r.useState)(!1),[c,i]=[null!==(t=e.open)&&void 0!==t?t:o,null!==(n=e.onOpenChange)&&void 0!==n?n:a];return(0,P.jsx)(L.Provider,{value:[c,i],children:e.children})}function j(e){let{as:t,...n}=e,[o,a]=O();return(0,P.jsx)(null!=t?t:"button",{"aria-label":"Toggle Sidebar","data-open":o,onClick:(0,r.useCallback)(()=>{a(!o)},[o,a]),...n})}function N(e){let{as:t,blockScrollingWidth:n,...o}=e,[a]=O(),[c,i]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{if(!n)return;let e=window.matchMedia("(min-width: ".concat(n.toString(),"px)")),t=()=>{i(!e.matches)};return t(),e.addEventListener("change",t),()=>{e.removeEventListener("change",t)}},[n]),(0,P.jsx)(M,{as:null!=t?t:"aside","data-open":a,enabled:!!(c&&a),...o,children:o.children})}},1694:function(e,t,n){n.d(t,{p:function(){return r.p}});var r=n(1453);n(6384)},9602:function(e,t,n){n.d(t,{A:function(){return l},H:function(){return s}});var r=n(2374),o=n(8302),a=n(4557),c=n(1694),i=n(7516),u=(0,r.createContext)(void 0);function l(){let e=(0,r.useContext)(u);if(!e)throw Error("Missing root provider");return e}function s({children:e}){let t=(0,r.useRef)(!0),[n,l]=(0,r.useState)(!1),[s,d]=(0,r.useState)(!1),f=(0,o.usePathname)();return(0,c.p)(f,()=>{t.current&&l(!1),t.current=!0}),(0,i.jsx)(u.Provider,{value:(0,r.useMemo)(()=>({open:n,setOpen:l,collapsed:s,setCollapsed:d,closeOnRedirect:t}),[n,s]),children:(0,i.jsx)(a.Hn,{open:n,onOpenChange:l,children:e})})}},5558:function(e,t,n){n.d(t,{Q:function(){return a}});var r=n(2374),o=(0,r.createContext)({text:{search:"Search",searchNoResult:"No results found",toc:"On this page",tocNoHeadings:"No Headings",lastUpdate:"Last updated on",chooseLanguage:"Choose a language",nextPage:"Next",previousPage:"Previous",chooseTheme:"Theme",editOnGithub:"Edit on GitHub"}});function a(){return(0,r.useContext)(o)}},8212:function(e,t,n){n.d(t,{A:function(){return c},X:function(){return i}});var r=n(2374),o=n(7516),a=(0,r.createContext)({enabled:!1,hotKey:[],setOpenSearch:()=>void 0});function c(){return(0,r.useContext)(a)}function i({SearchDialog:e,children:t,preload:n=!0,options:c,hotKey:i=[{key:e=>e.metaKey||e.ctrlKey,display:"⌘"},{key:"k",display:"K"}],links:u}){let[l,s]=(0,r.useState)(!n&&void 0);return(0,r.useEffect)(()=>{let e=e=>{i.every(t=>"string"==typeof t.key?e.key===t.key:t.key(e))&&(s(!0),e.preventDefault())};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[i]),(0,o.jsxs)(a.Provider,{value:(0,r.useMemo)(()=>({enabled:!0,hotKey:i,setOpenSearch:s}),[i]),children:[void 0!==l&&(0,o.jsx)(e,{open:l,onOpenChange:s,links:u,...c}),t]})}},3880:function(e,t,n){n.d(t,{G:function(){return u},W:function(){return l}});var r=n(546),o=n(8302),a=n(2374),c=n(7516),i=(0,a.createContext)(void 0);function u({children:e,tree:t}){let n=(0,o.usePathname)(),u=(0,a.useMemo)(()=>{let e=function e(t,n){for(let o of t)if("folder"===o.type){let t=e(o.children,n);if(t)return t;if(!0===o.root&&(0,r.$M)(o.children,n))return o}}(t.children,n)??t,o=function e(t){return t.flatMap(t=>{if("separator"===t.type)return[];if("folder"===t.type){let n=e(t.children);return!t.root&&t.index&&n.unshift(t.index),n}return t.external?[]:[t]})}(e.children);return{root:e,navigation:o,tree:t}},[n,t]);return(0,c.jsx)(i.Provider,{value:u,children:e})}function l(){let e=(0,a.useContext)(i);if(!e)throw Error("You must wrap this component under ");return e}},4918:function(e,t,n){n.d(t,{r:function(){return o}});var r=Object.defineProperty,o=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})}},546:function(e,t,n){n.d(t,{$M:function(){return function e(t,n){return t.some(t=>"page"===t.type?t.url===n:"folder"===t.type&&(t.index?.url===n||e(t.children,n)))}},wW:function(){return r},zh:function(){return o}});var r="(max-width: 768px) 100vw, (max-width: 1200px) 70vw, 900px";function o(e,t,n=!0){return e===t||n&&t.startsWith(`${e}/`)}},3358:function(e,t,n){n.d(t,{F:function(){return l},f:function(){return s}});var r=n(2374),o=["light","dark"],a="(prefers-color-scheme: dark)",c="undefined"==typeof window,i=r.createContext(void 0),u={setTheme:e=>{},themes:[]},l=()=>{var e;return null!=(e=r.useContext(i))?e:u},s=e=>r.useContext(i)?e.children:r.createElement(f,{...e}),d=["light","dark"],f=e=>{let{forcedTheme:t,disableTransitionOnChange:n=!1,enableSystem:c=!0,enableColorScheme:u=!0,storageKey:l="theme",themes:s=d,defaultTheme:f=c?"system":"light",attribute:g="data-theme",value:y,children:w,nonce:b}=e,[E,C]=r.useState(()=>m(l,f)),[S,x]=r.useState(()=>m(l)),k=y?Object.values(y):s,T=r.useCallback(e=>{let t=e;if(!t)return;"system"===e&&c&&(t=p());let r=y?y[t]:t,a=n?v():null,i=document.documentElement;if("class"===g?(i.classList.remove(...k),r&&i.classList.add(r)):r?i.setAttribute(g,r):i.removeAttribute(g),u){let e=o.includes(f)?f:null,n=o.includes(t)?t:e;i.style.colorScheme=n}null==a||a()},[]),M=r.useCallback(e=>{let t="function"==typeof e?e(e):e;C(t);try{localStorage.setItem(l,t)}catch(e){}},[t]),P=r.useCallback(e=>{x(p(e)),"system"===E&&c&&!t&&T("system")},[E,t]);r.useEffect(()=>{let e=window.matchMedia(a);return e.addListener(P),P(e),()=>e.removeListener(P)},[P]),r.useEffect(()=>{let e=e=>{e.key===l&&M(e.newValue||f)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[M]),r.useEffect(()=>{T(null!=t?t:E)},[t,E]);let L=r.useMemo(()=>({theme:E,setTheme:M,forcedTheme:t,resolvedTheme:"system"===E?S:E,themes:c?[...s,"system"]:s,systemTheme:c?S:void 0}),[E,M,t,S,c,s]);return r.createElement(i.Provider,{value:L},r.createElement(h,{forcedTheme:t,disableTransitionOnChange:n,enableSystem:c,enableColorScheme:u,storageKey:l,themes:s,defaultTheme:f,attribute:g,value:y,children:w,attrs:k,nonce:b}),w)},h=r.memo(e=>{let{forcedTheme:t,storageKey:n,attribute:c,enableSystem:i,enableColorScheme:u,defaultTheme:l,value:s,attrs:d,nonce:f}=e,h="system"===l,m="class"===c?"var d=document.documentElement,c=d.classList;".concat("c.remove(".concat(d.map(e=>"'".concat(e,"'")).join(","),")"),";"):"var d=document.documentElement,n='".concat(c,"',s='setAttribute';"),v=u?(o.includes(l)?l:null)?"if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'".concat(l,"'"):"if(e==='light'||e==='dark')d.style.colorScheme=e":"",p=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],r=s?s[e]:e,a=t?e+"|| ''":"'".concat(r,"'"),i="";return u&&n&&!t&&o.includes(e)&&(i+="d.style.colorScheme = '".concat(e,"';")),"class"===c?t||r?i+="c.add(".concat(a,")"):i+="null":r&&(i+="d[s](n,".concat(a,")")),i},g=t?"!function(){".concat(m).concat(p(t),"}()"):i?"!function(){try{".concat(m,"var e=localStorage.getItem('").concat(n,"');if('system'===e||(!e&&").concat(h,")){var t='").concat(a,"',m=window.matchMedia(t);if(m.media!==t||m.matches){").concat(p("dark"),"}else{").concat(p("light"),"}}else if(e){").concat(s?"var x=".concat(JSON.stringify(s),";"):"").concat(p(s?"x[e]":"e",!0),"}").concat(h?"":"else{"+p(l,!1,!1)+"}").concat(v,"}catch(e){}}()"):"!function(){try{".concat(m,"var e=localStorage.getItem('").concat(n,"');if(e){").concat(s?"var x=".concat(JSON.stringify(s),";"):"").concat(p(s?"x[e]":"e",!0),"}else{").concat(p(l,!1,!1),";}").concat(v,"}catch(t){}}();");return r.createElement("script",{nonce:f,dangerouslySetInnerHTML:{__html:g}})}),m=(e,t)=>{let n;if(!c){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},v=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},p=e=>(e||(e=window.matchMedia(a)),e.matches?"dark":"light")},4539:function(e,t,n){n.d(t,{_T:function(){return o},ev:function(){return a},pi:function(){return r}});var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function a(e,t,n){if(n||2==arguments.length)for(var r,o=0,a=t.length;oe.endsWith(".css"));a.push(...t)}}return 0===a.length?null:(0,r.jsx)(r.Fragment,{children:a.map(e=>(0,r.jsx)("link",{precedence:"dynamic",rel:"stylesheet",href:n.assetPrefix+"/_next/"+encodeURI(e),as:"style"},e))})}},7118:function(e,t,n){n.d(t,{Av:function(){return c},pF:function(){return r},xv:function(){return a},zi:function(){return o}});var r="right-scroll-bar-position",o="width-before-scroll-bar",a="with-scroll-bars-hidden",c="--removed-body-scroll-bar-size"},9718:function(e,t,n){n.d(t,{jp:function(){return v}});var r=n(2374),o=n(7323),a=n(7118),c={left:0,top:0,right:0,gap:0},i=function(e){return parseInt(e||"",10)||0},u=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[i(n),i(r),i(o)]},l=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return c;var t=u(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},s=(0,o.Ws)(),d="data-scroll-locked",f=function(e,t,n,r){var o=e.left,c=e.top,i=e.right,u=e.gap;return void 0===n&&(n="margin"),"\n .".concat(a.xv," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(u,"px ").concat(r,";\n }\n body[").concat(d,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(c,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(u,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(a.pF," {\n right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(a.zi," {\n margin-right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(a.pF," .").concat(a.pF," {\n right: 0 ").concat(r,";\n }\n \n .").concat(a.zi," .").concat(a.zi," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(d,"] {\n ").concat(a.Av,": ").concat(u,"px;\n }\n")},h=function(){var e=parseInt(document.body.getAttribute(d)||"0",10);return isFinite(e)?e:0},m=function(){r.useEffect(function(){return document.body.setAttribute(d,(h()+1).toString()),function(){var e=h()-1;e<=0?document.body.removeAttribute(d):document.body.setAttribute(d,e.toString())}},[])},v=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,a=void 0===o?"margin":o;m();var c=r.useMemo(function(){return l(a)},[a]);return r.createElement(s,{styles:f(c,!t,a,n?"":"!important")})}},7323:function(e,t,n){n.d(t,{Ws:function(){return i}});var r,o=n(2374),a=function(){var e=0,t=null;return{add:function(o){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=r||n.nc;return t&&e.setAttribute("nonce",t),e}())){var a,c;(a=t).styleSheet?a.styleSheet.cssText=o:a.appendChild(document.createTextNode(o)),c=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(c)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},c=function(){var e=a();return function(t,n){o.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},i=function(){var e=c();return function(t){return e(t.styles,t.dynamic),null}}},6622:function(e,t,n){n.d(t,{q:function(){return i}});var r=n(2374);function o(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var a="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,c=new WeakMap;function i(e,t){var n,i,u,l=(n=t||null,i=function(t){return e.forEach(function(e){return o(e,t)})},(u=(0,r.useState)(function(){return{value:n,callback:i,facade:{get current(){return u.value},set current(value){var e=u.value;e!==value&&(u.value=value,u.callback(value,e))}}}})[0]).callback=i,u.facade);return a(function(){var t=c.get(l);if(t){var n=new Set(t),r=new Set(e),a=l.current;n.forEach(function(e){r.has(e)||o(e,null)}),r.forEach(function(e){n.has(e)||o(e,a)})}c.set(l,e)},[e]),l}},9937:function(e,t,n){n.d(t,{L:function(){return c}});var r=n(4539),o=n(2374),a=function(e){var t=e.sideCar,n=(0,r._T)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var a=t.read();if(!a)throw Error("Sidecar medium not found");return o.createElement(a,(0,r.pi)({},n))};function c(e,t){return e.useMedium(t),a}a.isSideCarExport=!0},679:function(e,t,n){n.d(t,{_:function(){return a}});var r=n(4539);function o(e){return e}function a(e){void 0===e&&(e={});var t,n,a,c=(void 0===t&&(t=o),n=[],a=!1,{read:function(){if(a)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var r=t(e,a);return n.push(r),function(){n=n.filter(function(e){return e!==r})}},assignSyncMedium:function(e){for(a=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){a=!0;var t=[];if(n.length){var r=n;n=[],r.forEach(e),t=n}var o=function(){var n=t;t=[],n.forEach(e)},c=function(){return Promise.resolve().then(o)};c(),n={push:function(e){t.push(e),c()},filter:function(e){return t=t.filter(e),n}}}});return c.options=(0,r.pi)({async:!0,ssr:!1},e),c}},8454:function(e,t,n){n.d(t,{_9:function(){return c},gm:function(){return i}});var r=n(2374),o=n(7516),a=r.createContext(void 0),c=e=>{let{dir:t,children:n}=e;return(0,o.jsx)(a.Provider,{value:t,children:n})};function i(e){let t=r.useContext(a);return e||t||"ltr"}},1453:function(e,t,n){n.d(t,{p:function(){return o}});var r=n(2374);function o(e,t){let[n,o]=(0,r.useState)(e);n!==e&&(t(e,n),o(e))}},6384:function(e,t,n){},4557:function(e,t,n){n.d(t,{wb:function(){return N},Hn:function(){return R},vP:function(){return j}}),n(6384);var r=n(2374),o=n(4539),a=n(7118),c=n(6622),i=(0,n(679)._)(),u=function(){},l=r.forwardRef(function(e,t){var n=r.useRef(null),a=r.useState({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:u}),l=a[0],s=a[1],d=e.forwardProps,f=e.children,h=e.className,m=e.removeScrollBar,v=e.enabled,p=e.shards,g=e.sideCar,y=e.noIsolation,w=e.inert,b=e.allowPinchZoom,E=e.as,C=e.gapMode,S=(0,o._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=(0,c.q)([n,t]),k=(0,o.pi)((0,o.pi)({},S),l);return r.createElement(r.Fragment,null,v&&r.createElement(g,{sideCar:i,removeScrollBar:m,shards:p,noIsolation:y,inert:w,setCallbacks:s,allowPinchZoom:!!b,lockRef:n,gapMode:C}),d?r.cloneElement(r.Children.only(f),(0,o.pi)((0,o.pi)({},k),{ref:x})):r.createElement(void 0===E?"div":E,(0,o.pi)({},k,{className:h,ref:x}),f))});l.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},l.classNames={fullWidth:a.zi,zeroRight:a.pF};var s=n(9937),d=n(9718),f=n(7323),h=!1;if("undefined"!=typeof window)try{var m=Object.defineProperty({},"passive",{get:function(){return h=!0,!0}});window.addEventListener("test",m,m),window.removeEventListener("test",m,m)}catch(e){h=!1}var v=!!h&&{passive:!1},p=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},g=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),y(e,r)){var o=w(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},y=function(e,t){return"v"===e?p(t,"overflowY"):p(t,"overflowX")},w=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},b=function(e,t,n,r,o){var a,c=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),i=c*r,u=n.target,l=t.contains(u),s=!1,d=i>0,f=0,h=0;do{var m=w(e,u),v=m[0],p=m[1]-m[2]-c*v;(v||p)&&y(e,u)&&(f+=p,h+=v),u instanceof ShadowRoot?u=u.host:u=u.parentNode}while(!l&&u!==document.body||l&&(t.contains(u)||t===u));return d&&(o&&1>Math.abs(f)||!o&&i>f)?s=!0:!d&&(o&&1>Math.abs(h)||!o&&-i>h)&&(s=!0),s},E=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},C=function(e){return[e.deltaX,e.deltaY]},S=function(e){return e&&"current"in e?e.current:e},x=0,k=[],T=(0,s.L)(i,function(e){var t=r.useRef([]),n=r.useRef([0,0]),a=r.useRef(),c=r.useState(x++)[0],i=r.useState(f.Ws)[0],u=r.useRef(e);r.useEffect(function(){u.current=e},[e]),r.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(c));var t=(0,o.ev)([e.lockRef.current],(e.shards||[]).map(S),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(c))})}}},[e.inert,e.lockRef.current,e.shards]);var l=r.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!u.current.allowPinchZoom;var r,o=E(e),c=n.current,i="deltaX"in e?e.deltaX:c[0]-o[0],l="deltaY"in e?e.deltaY:c[1]-o[1],s=e.target,d=Math.abs(i)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===d&&"range"===s.type)return!1;var f=g(d,s);if(!f)return!0;if(f?r=d:(r="v"===d?"h":"v",f=g(d,s)),!f)return!1;if(!a.current&&"changedTouches"in e&&(i||l)&&(a.current=r),!r)return!0;var h=a.current||r;return b(h,t,e,"h"===h?i:l,!0)},[]),s=r.useCallback(function(e){if(k.length&&k[k.length-1]===i){var n="deltaY"in e?C(e):E(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(u.current.shards||[]).map(S).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?l(e,o[0]):!u.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),h=r.useCallback(function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),m=r.useCallback(function(e){n.current=E(e),a.current=void 0},[]),p=r.useCallback(function(t){h(t.type,C(t),t.target,l(t,e.lockRef.current))},[]),y=r.useCallback(function(t){h(t.type,E(t),t.target,l(t,e.lockRef.current))},[]);r.useEffect(function(){return k.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:y}),document.addEventListener("wheel",s,v),document.addEventListener("touchmove",s,v),document.addEventListener("touchstart",m,v),function(){k=k.filter(function(e){return e!==i}),document.removeEventListener("wheel",s,v),document.removeEventListener("touchmove",s,v),document.removeEventListener("touchstart",m,v)}},[]);var w=e.removeScrollBar,T=e.inert;return r.createElement(r.Fragment,null,T?r.createElement(i,{styles:"\n .block-interactivity-".concat(c," {pointer-events: none;}\n .allow-interactivity-").concat(c," {pointer-events: all;}\n")}):null,w?r.createElement(d.jp,{gapMode:e.gapMode}):null)}),M=r.forwardRef(function(e,t){return r.createElement(l,(0,o.pi)({},e,{ref:t,sideCar:T}))});M.classNames=l.classNames;var P=n(7516),L=(0,r.createContext)(void 0);function O(){let e=(0,r.useContext)(L);if(!e)throw Error("Missing sidebar provider");return e}function R(e){var t,n;let[o,a]=(0,r.useState)(!1),[c,i]=[null!==(t=e.open)&&void 0!==t?t:o,null!==(n=e.onOpenChange)&&void 0!==n?n:a];return(0,P.jsx)(L.Provider,{value:[c,i],children:e.children})}function j(e){let{as:t,...n}=e,[o,a]=O();return(0,P.jsx)(null!=t?t:"button",{"aria-label":"Toggle Sidebar","data-open":o,onClick:(0,r.useCallback)(()=>{a(!o)},[o,a]),...n})}function N(e){let{as:t,blockScrollingWidth:n,...o}=e,[a]=O(),[c,i]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{if(!n)return;let e=window.matchMedia("(min-width: ".concat(n.toString(),"px)")),t=()=>{i(!e.matches)};return t(),e.addEventListener("change",t),()=>{e.removeEventListener("change",t)}},[n]),(0,P.jsx)(M,{as:null!=t?t:"aside","data-open":a,enabled:!!(c&&a),...o,children:o.children})}},1694:function(e,t,n){n.d(t,{p:function(){return r.p}});var r=n(1453);n(6384)},8783:function(e,t,n){n.d(t,{A:function(){return l},H:function(){return s}});var r=n(2374),o=n(8302),a=n(4557),c=n(1694),i=n(7516),u=(0,r.createContext)(void 0);function l(){let e=(0,r.useContext)(u);if(!e)throw Error("Missing root provider");return e}function s({children:e}){let t=(0,r.useRef)(!0),[n,l]=(0,r.useState)(!1),[s,d]=(0,r.useState)(!1),f=(0,o.usePathname)();return(0,c.p)(f,()=>{t.current&&l(!1),t.current=!0}),(0,i.jsx)(u.Provider,{value:(0,r.useMemo)(()=>({open:n,setOpen:l,collapsed:s,setCollapsed:d,closeOnRedirect:t}),[n,s]),children:(0,i.jsx)(a.Hn,{open:n,onOpenChange:l,children:e})})}},1861:function(e,t,n){n.d(t,{Q:function(){return a}});var r=n(2374),o=(0,r.createContext)({text:{search:"Search",searchNoResult:"No results found",toc:"On this page",tocNoHeadings:"No Headings",lastUpdate:"Last updated on",chooseLanguage:"Choose a language",nextPage:"Next",previousPage:"Previous",chooseTheme:"Theme",editOnGithub:"Edit on GitHub"}});function a(){return(0,r.useContext)(o)}},428:function(e,t,n){n.d(t,{A:function(){return c},X:function(){return i}});var r=n(2374),o=n(7516),a=(0,r.createContext)({enabled:!1,hotKey:[],setOpenSearch:()=>void 0});function c(){return(0,r.useContext)(a)}function i({SearchDialog:e,children:t,preload:n=!0,options:c,hotKey:i=[{key:e=>e.metaKey||e.ctrlKey,display:"⌘"},{key:"k",display:"K"}],links:u}){let[l,s]=(0,r.useState)(!n&&void 0);return(0,r.useEffect)(()=>{let e=e=>{i.every(t=>"string"==typeof t.key?e.key===t.key:t.key(e))&&(s(!0),e.preventDefault())};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[i]),(0,o.jsxs)(a.Provider,{value:(0,r.useMemo)(()=>({enabled:!0,hotKey:i,setOpenSearch:s}),[i]),children:[void 0!==l&&(0,o.jsx)(e,{open:l,onOpenChange:s,links:u,...c}),t]})}},1634:function(e,t,n){n.d(t,{G:function(){return u},W:function(){return l}});var r=n(8196),o=n(8302),a=n(2374),c=n(7516),i=(0,a.createContext)(void 0);function u({children:e,tree:t}){let n=(0,o.usePathname)(),u=(0,a.useMemo)(()=>{let e=function e(t,n){for(let o of t)if("folder"===o.type){let t=e(o.children,n);if(t)return t;if(!0===o.root&&(0,r.$M)(o.children,n))return o}}(t.children,n)??t,o=function e(t){return t.flatMap(t=>{if("separator"===t.type)return[];if("folder"===t.type){let n=e(t.children);return!t.root&&t.index&&n.unshift(t.index),n}return t.external?[]:[t]})}(e.children);return{root:e,navigation:o,tree:t}},[n,t]);return(0,c.jsx)(i.Provider,{value:u,children:e})}function l(){let e=(0,a.useContext)(i);if(!e)throw Error("You must wrap this component under ");return e}},6776:function(e,t,n){n.d(t,{r:function(){return o}});var r=Object.defineProperty,o=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})}},8196:function(e,t,n){n.d(t,{$M:function(){return function e(t,n){return t.some(t=>"page"===t.type?t.url===n:"folder"===t.type&&(t.index?.url===n||e(t.children,n)))}},wW:function(){return r},zh:function(){return o}});var r="(max-width: 768px) 100vw, (max-width: 1200px) 70vw, 900px";function o(e,t,n=!0){return e===t||n&&t.startsWith(`${e}/`)}},3358:function(e,t,n){n.d(t,{F:function(){return l},f:function(){return s}});var r=n(2374),o=["light","dark"],a="(prefers-color-scheme: dark)",c="undefined"==typeof window,i=r.createContext(void 0),u={setTheme:e=>{},themes:[]},l=()=>{var e;return null!=(e=r.useContext(i))?e:u},s=e=>r.useContext(i)?e.children:r.createElement(f,{...e}),d=["light","dark"],f=e=>{let{forcedTheme:t,disableTransitionOnChange:n=!1,enableSystem:c=!0,enableColorScheme:u=!0,storageKey:l="theme",themes:s=d,defaultTheme:f=c?"system":"light",attribute:g="data-theme",value:y,children:w,nonce:b}=e,[E,C]=r.useState(()=>m(l,f)),[S,x]=r.useState(()=>m(l)),k=y?Object.values(y):s,T=r.useCallback(e=>{let t=e;if(!t)return;"system"===e&&c&&(t=p());let r=y?y[t]:t,a=n?v():null,i=document.documentElement;if("class"===g?(i.classList.remove(...k),r&&i.classList.add(r)):r?i.setAttribute(g,r):i.removeAttribute(g),u){let e=o.includes(f)?f:null,n=o.includes(t)?t:e;i.style.colorScheme=n}null==a||a()},[]),M=r.useCallback(e=>{let t="function"==typeof e?e(e):e;C(t);try{localStorage.setItem(l,t)}catch(e){}},[t]),P=r.useCallback(e=>{x(p(e)),"system"===E&&c&&!t&&T("system")},[E,t]);r.useEffect(()=>{let e=window.matchMedia(a);return e.addListener(P),P(e),()=>e.removeListener(P)},[P]),r.useEffect(()=>{let e=e=>{e.key===l&&M(e.newValue||f)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[M]),r.useEffect(()=>{T(null!=t?t:E)},[t,E]);let L=r.useMemo(()=>({theme:E,setTheme:M,forcedTheme:t,resolvedTheme:"system"===E?S:E,themes:c?[...s,"system"]:s,systemTheme:c?S:void 0}),[E,M,t,S,c,s]);return r.createElement(i.Provider,{value:L},r.createElement(h,{forcedTheme:t,disableTransitionOnChange:n,enableSystem:c,enableColorScheme:u,storageKey:l,themes:s,defaultTheme:f,attribute:g,value:y,children:w,attrs:k,nonce:b}),w)},h=r.memo(e=>{let{forcedTheme:t,storageKey:n,attribute:c,enableSystem:i,enableColorScheme:u,defaultTheme:l,value:s,attrs:d,nonce:f}=e,h="system"===l,m="class"===c?"var d=document.documentElement,c=d.classList;".concat("c.remove(".concat(d.map(e=>"'".concat(e,"'")).join(","),")"),";"):"var d=document.documentElement,n='".concat(c,"',s='setAttribute';"),v=u?(o.includes(l)?l:null)?"if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'".concat(l,"'"):"if(e==='light'||e==='dark')d.style.colorScheme=e":"",p=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],r=s?s[e]:e,a=t?e+"|| ''":"'".concat(r,"'"),i="";return u&&n&&!t&&o.includes(e)&&(i+="d.style.colorScheme = '".concat(e,"';")),"class"===c?t||r?i+="c.add(".concat(a,")"):i+="null":r&&(i+="d[s](n,".concat(a,")")),i},g=t?"!function(){".concat(m).concat(p(t),"}()"):i?"!function(){try{".concat(m,"var e=localStorage.getItem('").concat(n,"');if('system'===e||(!e&&").concat(h,")){var t='").concat(a,"',m=window.matchMedia(t);if(m.media!==t||m.matches){").concat(p("dark"),"}else{").concat(p("light"),"}}else if(e){").concat(s?"var x=".concat(JSON.stringify(s),";"):"").concat(p(s?"x[e]":"e",!0),"}").concat(h?"":"else{"+p(l,!1,!1)+"}").concat(v,"}catch(e){}}()"):"!function(){try{".concat(m,"var e=localStorage.getItem('").concat(n,"');if(e){").concat(s?"var x=".concat(JSON.stringify(s),";"):"").concat(p(s?"x[e]":"e",!0),"}else{").concat(p(l,!1,!1),";}").concat(v,"}catch(t){}}();");return r.createElement("script",{nonce:f,dangerouslySetInnerHTML:{__html:g}})}),m=(e,t)=>{let n;if(!c){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},v=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},p=e=>(e||(e=window.matchMedia(a)),e.matches?"dark":"light")},4539:function(e,t,n){n.d(t,{_T:function(){return o},ev:function(){return a},pi:function(){return r}});var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function a(e,t,n){if(n||2==arguments.length)for(var r,o=0,a=t.length;oe.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),l=function(){for(var e=arguments.length,r=Array(e),t=0;t!!e&&t.indexOf(e)===r).join(" ")};var a={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"};let i=(0,o.forwardRef)((e,r)=>{let{color:t="currentColor",size:n=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:d="",children:c,iconNode:u,...p}=e;return(0,o.createElement)("svg",{ref:r,...a,width:n,height:n,stroke:t,strokeWidth:s?24*Number(i)/Number(n):i,className:l("lucide",d),...p},[...u.map(e=>{let[r,t]=e;return(0,o.createElement)(r,t)}),...Array.isArray(c)?c:[c]])}),s=(e,r)=>{let t=(0,o.forwardRef)((t,a)=>{let{className:s,...d}=t;return(0,o.createElement)(i,{ref:a,iconNode:r,className:l("lucide-".concat(n(e)),s),...d})});return t.displayName="".concat(e),t}},6402:function(e,r,t){t.d(r,{Z:function(){return o}});let o=(0,t(193).Z)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},4421:function(e,r,t){t.d(r,{Z:function(){return o}});let o=(0,t(193).Z)("Text",[["path",{d:"M17 6.1H3",key:"wptmhv"}],["path",{d:"M21 12.1H3",key:"1j38uz"}],["path",{d:"M15.1 18H3",key:"1nb16a"}]])},2771:function(e,r,t){t.d(r,{j:function(){return l}});let o=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,n=function(){for(var e,r,t=0,o="";tt=>{var l;if((null==r?void 0:r.variants)==null)return n(e,null==t?void 0:t.class,null==t?void 0:t.className);let{variants:a,defaultVariants:i}=r,s=Object.keys(a).map(e=>{let r=null==t?void 0:t[e],n=null==i?void 0:i[e];if(null===r)return null;let l=o(r)||o(n);return a[e][l]}),d=t&&Object.entries(t).reduce((e,r)=>{let[t,o]=r;return void 0===o||(e[t]=o),e},{});return n(e,s,null==r?void 0:null===(l=r.compoundVariants)||void 0===l?void 0:l.reduce((e,r)=>{let{class:t,className:o,...n}=r;return Object.entries(n).every(e=>{let[r,t]=e;return Array.isArray(t)?t.includes({...i,...d}[r]):({...i,...d})[r]===t})?[...e,t,o]:e},[]),null==t?void 0:t.class,null==t?void 0:t.className)}},3504:function(e,r,t){t.d(r,{D:function(){return l},d:function(){return n}});var o=t(2771),n=(0,o.j)("inline-flex items-center justify-center rounded-md p-2 text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50",{variants:{color:{outline:"border hover:bg-fd-accent hover:text-fd-accent-foreground",ghost:"hover:bg-fd-accent hover:text-fd-accent-foreground",secondary:"border bg-fd-secondary text-fd-secondary-foreground hover:bg-fd-accent hover:text-fd-accent-foreground"},size:{sm:"gap-1 p-0.5 text-xs",icon:"p-1.5 [&_svg]:size-5"}}}),l=(0,o.j)("flex w-full flex-row items-center gap-2 rounded-md px-2 py-1.5 text-fd-muted-foreground transition-colors duration-100 [overflow-wrap:anywhere] [&_svg]:size-4",{variants:{active:{true:"bg-fd-primary/10 font-medium text-fd-primary",false:"hover:bg-fd-accent/50 hover:text-fd-accent-foreground/80 hover:transition-none"}},defaultVariants:{active:!1}})},5487:function(e,r,t){t.d(r,{m6:function(){return K}});let o=e=>{let r=i(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:e=>{let t=e.split("-");return""===t[0]&&1!==t.length&&t.shift(),n(t,r)||a(e)},getConflictingClassGroupIds:(e,r)=>{let n=t[e]||[];return r&&o[e]?[...n,...o[e]]:n}}},n=(e,r)=>{if(0===e.length)return r.classGroupId;let t=e[0],o=r.nextPart.get(t),l=o?n(e.slice(1),o):void 0;if(l)return l;if(0===r.validators.length)return;let a=e.join("-");return r.validators.find(({validator:e})=>e(a))?.classGroupId},l=/^\[(.+)\]$/,a=e=>{if(l.test(e)){let r=l.exec(e)[1],t=r?.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}},i=e=>{let{theme:r,prefix:t}=e,o={nextPart:new Map,validators:[]};return u(Object.entries(e.classGroups),t).forEach(([e,t])=>{s(t,o,e,r)}),o},s=(e,r,t,o)=>{e.forEach(e=>{if("string"==typeof e){(""===e?r:d(r,e)).classGroupId=t;return}if("function"==typeof e){if(c(e)){s(e(o),r,t,o);return}r.validators.push({validator:e,classGroupId:t});return}Object.entries(e).forEach(([e,n])=>{s(n,d(r,e),t,o)})})},d=(e,r)=>{let t=e;return r.split("-").forEach(e=>{t.nextPart.has(e)||t.nextPart.set(e,{nextPart:new Map,validators:[]}),t=t.nextPart.get(e)}),t},c=e=>e.isThemeGetter,u=(e,r)=>r?e.map(([e,t])=>[e,t.map(e=>"string"==typeof e?r+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,t])=>[r+e,t])):e)]):e,p=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let r=0,t=new Map,o=new Map,n=(n,l)=>{t.set(n,l),++r>e&&(r=0,o=t,t=new Map)};return{get(e){let r=t.get(e);return void 0!==r?r:void 0!==(r=o.get(e))?(n(e,r),r):void 0},set(e,r){t.has(e)?t.set(e,r):n(e,r)}}},b=e=>{let{separator:r,experimentalParseClassName:t}=e,o=1===r.length,n=r[0],l=r.length,a=e=>{let t;let a=[],i=0,s=0;for(let d=0;ds?t-s:void 0}};return t?e=>t({className:e,parseClassName:a}):a},f=e=>{if(e.length<=1)return e;let r=[],t=[];return e.forEach(e=>{"["===e[0]?(r.push(...t.sort(),e),t=[]):t.push(e)}),r.push(...t.sort()),r},m=e=>({cache:p(e.cacheSize),parseClassName:b(e),...o(e)}),g=/\s+/,h=(e,r)=>{let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:n}=r,l=[],a=e.trim().split(g),i="";for(let e=a.length-1;e>=0;e-=1){let r=a[e],{modifiers:s,hasImportantModifier:d,baseClassName:c,maybePostfixModifierPosition:u}=t(r),p=!!u,b=o(p?c.substring(0,u):c);if(!b){if(!p||!(b=o(c))){i=r+(i.length>0?" "+i:i);continue}p=!1}let m=f(s).join(":"),g=d?m+"!":m,h=g+b;if(l.includes(h))continue;l.push(h);let v=n(b,p);for(let e=0;e0?" "+i:i)}return i};function v(){let e,r,t=0,o="";for(;t{let r;if("string"==typeof e)return e;let t="";for(let o=0;o{let r=r=>r[e]||[];return r.isThemeGetter=!0,r},w=/^\[(?:([a-z-]+):)?(.+)\]$/i,k=/^\d+\/\d+$/,z=new Set(["px","full","screen"]),j=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,A=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,N=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,C=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,M=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,S=e=>W(e)||z.has(e)||k.test(e),E=e=>T(e,"length",V),W=e=>!!e&&!Number.isNaN(Number(e)),G=e=>T(e,"number",W),P=e=>!!e&&Number.isInteger(Number(e)),O=e=>e.endsWith("%")&&W(e.slice(0,-1)),$=e=>w.test(e),_=e=>j.test(e),R=new Set(["length","size","percentage"]),I=e=>T(e,R,B),Z=e=>T(e,"position",B),q=new Set(["image","url"]),D=e=>T(e,q,J),H=e=>T(e,"",F),L=()=>!0,T=(e,r,t)=>{let o=w.exec(e);return!!o&&(o[1]?"string"==typeof r?o[1]===r:r.has(o[1]):t(o[2]))},V=e=>A.test(e)&&!N.test(e),B=()=>!1,F=e=>C.test(e),J=e=>M.test(e),K=function(e,...r){let t,o,n;let l=function(i){return o=(t=m(r.reduce((e,r)=>r(e),e()))).cache.get,n=t.cache.set,l=a,a(i)};function a(e){let r=o(e);if(r)return r;let l=h(e,t);return n(e,l),l}return function(){return l(v.apply(null,arguments))}}(()=>{let e=x("colors"),r=x("spacing"),t=x("blur"),o=x("brightness"),n=x("borderColor"),l=x("borderRadius"),a=x("borderSpacing"),i=x("borderWidth"),s=x("contrast"),d=x("grayscale"),c=x("hueRotate"),u=x("invert"),p=x("gap"),b=x("gradientColorStops"),f=x("gradientColorStopPositions"),m=x("inset"),g=x("margin"),h=x("opacity"),v=x("padding"),y=x("saturate"),w=x("scale"),k=x("sepia"),z=x("skew"),j=x("space"),A=x("translate"),N=()=>["auto","contain","none"],C=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto",$,r],R=()=>[$,r],q=()=>["",S,E],T=()=>["auto",W,$],V=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],F=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>["start","end","center","between","around","evenly","stretch"],K=()=>["","0",$],Q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>[W,$];return{cacheSize:500,separator:":",theme:{colors:[L],spacing:[S,E],blur:["none","",_,$],brightness:U(),borderColor:[e],borderRadius:["none","","full",_,$],borderSpacing:R(),borderWidth:q(),contrast:U(),grayscale:K(),hueRotate:U(),invert:K(),gap:R(),gradientColorStops:[e],gradientColorStopPositions:[O,E],inset:M(),margin:M(),opacity:U(),padding:R(),saturate:U(),scale:U(),sepia:K(),skew:U(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",$]}],container:["container"],columns:[{columns:[_]}],"break-after":[{"break-after":Q()}],"break-before":[{"break-before":Q()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...V(),$]}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",P,$]}],basis:[{basis:M()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",$]}],grow:[{grow:K()}],shrink:[{shrink:K()}],order:[{order:["first","last","none",P,$]}],"grid-cols":[{"grid-cols":[L]}],"col-start-end":[{col:["auto",{span:["full",P,$]},$]}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":[L]}],"row-start-end":[{row:["auto",{span:[P,$]},$]}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",$]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",$]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...J()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...J(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...J(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",$,r]}],"min-w":[{"min-w":[$,r,"min","max","fit"]}],"max-w":[{"max-w":[$,r,"none","full","min","max","fit","prose",{screen:[_]},_]}],h:[{h:[$,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[$,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[$,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[$,r,"auto","min","max","fit"]}],"font-size":[{text:["base",_,E]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",G]}],"font-family":[{font:[L]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",$]}],"line-clamp":[{"line-clamp":["none",W,G]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",S,$]}],"list-image":[{"list-image":["none",$]}],"list-style-type":[{list:["none","disc","decimal",$]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",S,E]}],"underline-offset":[{"underline-offset":["auto",S,$]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",$]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",$]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...V(),Z]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",I]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},D]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[f]}],"gradient-via-pos":[{via:[f]}],"gradient-to-pos":[{to:[f]}],"gradient-from":[{from:[b]}],"gradient-via":[{via:[b]}],"gradient-to":[{to:[b]}],rounded:[{rounded:[l]}],"rounded-s":[{"rounded-s":[l]}],"rounded-e":[{"rounded-e":[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-ss":[{"rounded-ss":[l]}],"rounded-se":[{"rounded-se":[l]}],"rounded-ee":[{"rounded-ee":[l]}],"rounded-es":[{"rounded-es":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:B()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[S,$]}],"outline-w":[{outline:[S,E]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[S,E]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",_,H]}],"shadow-color":[{shadow:[L]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...F(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":F()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",_,$]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[u]}],saturate:[{saturate:[y]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",$]}],duration:[{duration:U()}],ease:[{ease:["linear","in","out","in-out",$]}],delay:[{delay:U()}],animate:[{animate:["none","spin","ping","pulse","bounce",$]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[P,$]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[z]}],"skew-y":[{"skew-y":[z]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",$]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",$]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",$]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[S,E,G]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}})}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[811],{922:function(e,r,t){t.d(r,{Ry:function(){return d}});var o=new WeakMap,n=new WeakMap,l={},a=0,i=function(e){return e&&(e.host||i(e.parentNode))},s=function(e,r,t,s){var d=(Array.isArray(e)?e:[e]).map(function(e){if(r.contains(e))return e;var t=i(e);return t&&r.contains(t)?t:(console.error("aria-hidden",e,"in not contained inside",r,". Doing nothing"),null)}).filter(function(e){return!!e});l[t]||(l[t]=new WeakMap);var c=l[t],u=[],p=new Set,b=new Set(d),f=function(e){!e||p.has(e)||(p.add(e),f(e.parentNode))};d.forEach(f);var m=function(e){!e||b.has(e)||Array.prototype.forEach.call(e.children,function(e){if(p.has(e))m(e);else try{var r=e.getAttribute(s),l=null!==r&&"false"!==r,a=(o.get(e)||0)+1,i=(c.get(e)||0)+1;o.set(e,a),c.set(e,i),u.push(e),1===a&&l&&n.set(e,!0),1===i&&e.setAttribute(t,"true"),l||e.setAttribute(s,"true")}catch(r){console.error("aria-hidden: cannot operate on ",e,r)}})};return m(r),p.clear(),a++,function(){u.forEach(function(e){var r=o.get(e)-1,l=c.get(e)-1;o.set(e,r),c.set(e,l),r||(n.has(e)||e.removeAttribute(s),n.delete(e)),l||e.removeAttribute(t)}),--a||(o=new WeakMap,o=new WeakMap,n=new WeakMap,l={})}},d=function(e,r,t){void 0===t&&(t="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),n=r||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return n?(o.push.apply(o,Array.from(n.querySelectorAll("[aria-live]"))),s(o,n,t,"aria-hidden")):function(){return null}}},193:function(e,r,t){t.d(r,{Z:function(){return s}});var o=t(2374);let n=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),l=function(){for(var e=arguments.length,r=Array(e),t=0;t!!e&&t.indexOf(e)===r).join(" ")};var a={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"};let i=(0,o.forwardRef)((e,r)=>{let{color:t="currentColor",size:n=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:d="",children:c,iconNode:u,...p}=e;return(0,o.createElement)("svg",{ref:r,...a,width:n,height:n,stroke:t,strokeWidth:s?24*Number(i)/Number(n):i,className:l("lucide",d),...p},[...u.map(e=>{let[r,t]=e;return(0,o.createElement)(r,t)}),...Array.isArray(c)?c:[c]])}),s=(e,r)=>{let t=(0,o.forwardRef)((t,a)=>{let{className:s,...d}=t;return(0,o.createElement)(i,{ref:a,iconNode:r,className:l("lucide-".concat(n(e)),s),...d})});return t.displayName="".concat(e),t}},6402:function(e,r,t){t.d(r,{Z:function(){return o}});let o=(0,t(193).Z)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},4421:function(e,r,t){t.d(r,{Z:function(){return o}});let o=(0,t(193).Z)("Text",[["path",{d:"M17 6.1H3",key:"wptmhv"}],["path",{d:"M21 12.1H3",key:"1j38uz"}],["path",{d:"M15.1 18H3",key:"1nb16a"}]])},2771:function(e,r,t){t.d(r,{j:function(){return l}});let o=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,n=function(){for(var e,r,t=0,o="";tt=>{var l;if((null==r?void 0:r.variants)==null)return n(e,null==t?void 0:t.class,null==t?void 0:t.className);let{variants:a,defaultVariants:i}=r,s=Object.keys(a).map(e=>{let r=null==t?void 0:t[e],n=null==i?void 0:i[e];if(null===r)return null;let l=o(r)||o(n);return a[e][l]}),d=t&&Object.entries(t).reduce((e,r)=>{let[t,o]=r;return void 0===o||(e[t]=o),e},{});return n(e,s,null==r?void 0:null===(l=r.compoundVariants)||void 0===l?void 0:l.reduce((e,r)=>{let{class:t,className:o,...n}=r;return Object.entries(n).every(e=>{let[r,t]=e;return Array.isArray(t)?t.includes({...i,...d}[r]):({...i,...d})[r]===t})?[...e,t,o]:e},[]),null==t?void 0:t.class,null==t?void 0:t.className)}},4183:function(e,r,t){t.d(r,{D:function(){return l},d:function(){return n}});var o=t(2771),n=(0,o.j)("inline-flex items-center justify-center rounded-md p-2 text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50",{variants:{color:{outline:"border hover:bg-fd-accent hover:text-fd-accent-foreground",ghost:"hover:bg-fd-accent hover:text-fd-accent-foreground",secondary:"border bg-fd-secondary text-fd-secondary-foreground hover:bg-fd-accent hover:text-fd-accent-foreground"},size:{sm:"gap-1 p-0.5 text-xs",icon:"p-1.5 [&_svg]:size-5"}}}),l=(0,o.j)("flex w-full flex-row items-center gap-2 rounded-md px-2 py-1.5 text-fd-muted-foreground transition-colors duration-100 [overflow-wrap:anywhere] [&_svg]:size-4",{variants:{active:{true:"bg-fd-primary/10 font-medium text-fd-primary",false:"hover:bg-fd-accent/50 hover:text-fd-accent-foreground/80 hover:transition-none"}},defaultVariants:{active:!1}})},5487:function(e,r,t){t.d(r,{m6:function(){return K}});let o=e=>{let r=i(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:e=>{let t=e.split("-");return""===t[0]&&1!==t.length&&t.shift(),n(t,r)||a(e)},getConflictingClassGroupIds:(e,r)=>{let n=t[e]||[];return r&&o[e]?[...n,...o[e]]:n}}},n=(e,r)=>{if(0===e.length)return r.classGroupId;let t=e[0],o=r.nextPart.get(t),l=o?n(e.slice(1),o):void 0;if(l)return l;if(0===r.validators.length)return;let a=e.join("-");return r.validators.find(({validator:e})=>e(a))?.classGroupId},l=/^\[(.+)\]$/,a=e=>{if(l.test(e)){let r=l.exec(e)[1],t=r?.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}},i=e=>{let{theme:r,prefix:t}=e,o={nextPart:new Map,validators:[]};return u(Object.entries(e.classGroups),t).forEach(([e,t])=>{s(t,o,e,r)}),o},s=(e,r,t,o)=>{e.forEach(e=>{if("string"==typeof e){(""===e?r:d(r,e)).classGroupId=t;return}if("function"==typeof e){if(c(e)){s(e(o),r,t,o);return}r.validators.push({validator:e,classGroupId:t});return}Object.entries(e).forEach(([e,n])=>{s(n,d(r,e),t,o)})})},d=(e,r)=>{let t=e;return r.split("-").forEach(e=>{t.nextPart.has(e)||t.nextPart.set(e,{nextPart:new Map,validators:[]}),t=t.nextPart.get(e)}),t},c=e=>e.isThemeGetter,u=(e,r)=>r?e.map(([e,t])=>[e,t.map(e=>"string"==typeof e?r+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,t])=>[r+e,t])):e)]):e,p=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let r=0,t=new Map,o=new Map,n=(n,l)=>{t.set(n,l),++r>e&&(r=0,o=t,t=new Map)};return{get(e){let r=t.get(e);return void 0!==r?r:void 0!==(r=o.get(e))?(n(e,r),r):void 0},set(e,r){t.has(e)?t.set(e,r):n(e,r)}}},b=e=>{let{separator:r,experimentalParseClassName:t}=e,o=1===r.length,n=r[0],l=r.length,a=e=>{let t;let a=[],i=0,s=0;for(let d=0;ds?t-s:void 0}};return t?e=>t({className:e,parseClassName:a}):a},f=e=>{if(e.length<=1)return e;let r=[],t=[];return e.forEach(e=>{"["===e[0]?(r.push(...t.sort(),e),t=[]):t.push(e)}),r.push(...t.sort()),r},m=e=>({cache:p(e.cacheSize),parseClassName:b(e),...o(e)}),g=/\s+/,h=(e,r)=>{let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:n}=r,l=[],a=e.trim().split(g),i="";for(let e=a.length-1;e>=0;e-=1){let r=a[e],{modifiers:s,hasImportantModifier:d,baseClassName:c,maybePostfixModifierPosition:u}=t(r),p=!!u,b=o(p?c.substring(0,u):c);if(!b){if(!p||!(b=o(c))){i=r+(i.length>0?" "+i:i);continue}p=!1}let m=f(s).join(":"),g=d?m+"!":m,h=g+b;if(l.includes(h))continue;l.push(h);let v=n(b,p);for(let e=0;e0?" "+i:i)}return i};function v(){let e,r,t=0,o="";for(;t{let r;if("string"==typeof e)return e;let t="";for(let o=0;o{let r=r=>r[e]||[];return r.isThemeGetter=!0,r},w=/^\[(?:([a-z-]+):)?(.+)\]$/i,k=/^\d+\/\d+$/,z=new Set(["px","full","screen"]),j=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,A=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,N=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,C=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,M=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,S=e=>W(e)||z.has(e)||k.test(e),E=e=>T(e,"length",V),W=e=>!!e&&!Number.isNaN(Number(e)),G=e=>T(e,"number",W),P=e=>!!e&&Number.isInteger(Number(e)),O=e=>e.endsWith("%")&&W(e.slice(0,-1)),$=e=>w.test(e),_=e=>j.test(e),R=new Set(["length","size","percentage"]),I=e=>T(e,R,B),Z=e=>T(e,"position",B),q=new Set(["image","url"]),D=e=>T(e,q,J),H=e=>T(e,"",F),L=()=>!0,T=(e,r,t)=>{let o=w.exec(e);return!!o&&(o[1]?"string"==typeof r?o[1]===r:r.has(o[1]):t(o[2]))},V=e=>A.test(e)&&!N.test(e),B=()=>!1,F=e=>C.test(e),J=e=>M.test(e),K=function(e,...r){let t,o,n;let l=function(i){return o=(t=m(r.reduce((e,r)=>r(e),e()))).cache.get,n=t.cache.set,l=a,a(i)};function a(e){let r=o(e);if(r)return r;let l=h(e,t);return n(e,l),l}return function(){return l(v.apply(null,arguments))}}(()=>{let e=x("colors"),r=x("spacing"),t=x("blur"),o=x("brightness"),n=x("borderColor"),l=x("borderRadius"),a=x("borderSpacing"),i=x("borderWidth"),s=x("contrast"),d=x("grayscale"),c=x("hueRotate"),u=x("invert"),p=x("gap"),b=x("gradientColorStops"),f=x("gradientColorStopPositions"),m=x("inset"),g=x("margin"),h=x("opacity"),v=x("padding"),y=x("saturate"),w=x("scale"),k=x("sepia"),z=x("skew"),j=x("space"),A=x("translate"),N=()=>["auto","contain","none"],C=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto",$,r],R=()=>[$,r],q=()=>["",S,E],T=()=>["auto",W,$],V=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],F=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>["start","end","center","between","around","evenly","stretch"],K=()=>["","0",$],Q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>[W,$];return{cacheSize:500,separator:":",theme:{colors:[L],spacing:[S,E],blur:["none","",_,$],brightness:U(),borderColor:[e],borderRadius:["none","","full",_,$],borderSpacing:R(),borderWidth:q(),contrast:U(),grayscale:K(),hueRotate:U(),invert:K(),gap:R(),gradientColorStops:[e],gradientColorStopPositions:[O,E],inset:M(),margin:M(),opacity:U(),padding:R(),saturate:U(),scale:U(),sepia:K(),skew:U(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",$]}],container:["container"],columns:[{columns:[_]}],"break-after":[{"break-after":Q()}],"break-before":[{"break-before":Q()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...V(),$]}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",P,$]}],basis:[{basis:M()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",$]}],grow:[{grow:K()}],shrink:[{shrink:K()}],order:[{order:["first","last","none",P,$]}],"grid-cols":[{"grid-cols":[L]}],"col-start-end":[{col:["auto",{span:["full",P,$]},$]}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":[L]}],"row-start-end":[{row:["auto",{span:[P,$]},$]}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",$]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",$]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...J()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...J(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...J(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",$,r]}],"min-w":[{"min-w":[$,r,"min","max","fit"]}],"max-w":[{"max-w":[$,r,"none","full","min","max","fit","prose",{screen:[_]},_]}],h:[{h:[$,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[$,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[$,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[$,r,"auto","min","max","fit"]}],"font-size":[{text:["base",_,E]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",G]}],"font-family":[{font:[L]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",$]}],"line-clamp":[{"line-clamp":["none",W,G]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",S,$]}],"list-image":[{"list-image":["none",$]}],"list-style-type":[{list:["none","disc","decimal",$]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",S,E]}],"underline-offset":[{"underline-offset":["auto",S,$]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",$]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",$]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...V(),Z]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",I]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},D]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[f]}],"gradient-via-pos":[{via:[f]}],"gradient-to-pos":[{to:[f]}],"gradient-from":[{from:[b]}],"gradient-via":[{via:[b]}],"gradient-to":[{to:[b]}],rounded:[{rounded:[l]}],"rounded-s":[{"rounded-s":[l]}],"rounded-e":[{"rounded-e":[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-ss":[{"rounded-ss":[l]}],"rounded-se":[{"rounded-se":[l]}],"rounded-ee":[{"rounded-ee":[l]}],"rounded-es":[{"rounded-es":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:B()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[S,$]}],"outline-w":[{outline:[S,E]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[S,E]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",_,H]}],"shadow-color":[{shadow:[L]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...F(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":F()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",_,$]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[u]}],saturate:[{saturate:[y]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",$]}],duration:[{duration:U()}],ease:[{ease:["linear","in","out","in-out",$]}],delay:[{delay:U()}],animate:[{animate:["none","spin","ping","pulse","bounce",$]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[P,$]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[z]}],"skew-y":[{"skew-y":[z]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",$]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",$]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",$]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[S,E,G]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}})}}]); \ No newline at end of file diff --git a/_next/static/chunks/app/[...slug]/page-a4fd37b3361b7e5a.js b/_next/static/chunks/app/[...slug]/page-a4fd37b3361b7e5a.js deleted file mode 100644 index 2c9b8da5..00000000 --- a/_next/static/chunks/app/[...slug]/page-a4fd37b3361b7e5a.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[877],{1339:function(e,n,s){Promise.resolve().then(s.bind(s,8296)),Promise.resolve().then(s.bind(s,6230)),Promise.resolve().then(s.bind(s,2186)),Promise.resolve().then(s.bind(s,3197)),Promise.resolve().then(s.bind(s,289)),Promise.resolve().then(s.bind(s,6511)),Promise.resolve().then(s.bind(s,5749)),Promise.resolve().then(s.bind(s,5377)),Promise.resolve().then(s.bind(s,5430)),Promise.resolve().then(s.bind(s,6169)),Promise.resolve().then(s.bind(s,6050)),Promise.resolve().then(s.t.bind(s,8918,23)),Promise.resolve().then(s.t.bind(s,5801,23)),Promise.resolve().then(s.bind(s,7033)),Promise.resolve().then(s.bind(s,8873))}},function(e){e.O(0,[552,760,808,191,457,432,744],function(){return e(e.s=1339)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/app/[...slug]/page-f0af98b812f98b2b.js b/_next/static/chunks/app/[...slug]/page-f0af98b812f98b2b.js new file mode 100644 index 00000000..0eb30dcf --- /dev/null +++ b/_next/static/chunks/app/[...slug]/page-f0af98b812f98b2b.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[877],{2300:function(e,n,s){Promise.resolve().then(s.bind(s,8296)),Promise.resolve().then(s.bind(s,8159)),Promise.resolve().then(s.bind(s,4772)),Promise.resolve().then(s.bind(s,4462)),Promise.resolve().then(s.bind(s,6525)),Promise.resolve().then(s.bind(s,9318)),Promise.resolve().then(s.bind(s,3471)),Promise.resolve().then(s.bind(s,9187)),Promise.resolve().then(s.bind(s,8672)),Promise.resolve().then(s.bind(s,551)),Promise.resolve().then(s.bind(s,6920)),Promise.resolve().then(s.t.bind(s,8918,23)),Promise.resolve().then(s.t.bind(s,5801,23)),Promise.resolve().then(s.bind(s,7033)),Promise.resolve().then(s.bind(s,8873))}},function(e){e.O(0,[24,811,547,387,457,432,744],function(){return e(e.s=2300)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/app/layout-26077b10d25ec523.js b/_next/static/chunks/app/layout-751c33789f182bea.js similarity index 63% rename from _next/static/chunks/app/layout-26077b10d25ec523.js rename to _next/static/chunks/app/layout-751c33789f182bea.js index 8ab4ffe7..8716f1eb 100644 --- a/_next/static/chunks/app/layout-26077b10d25ec523.js +++ b/_next/static/chunks/app/layout-751c33789f182bea.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{5883:function(e,n,t){Promise.resolve().then(t.bind(t,6225)),Promise.resolve().then(t.t.bind(t,9343,23)),Promise.resolve().then(t.t.bind(t,64,23))},278:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o}});let l=t(9646);t(7516),t(2374);let r=l._(t(3617));function o(e,n){var t;let l={loading:e=>{let{error:n,isLoading:t,pastDelay:l}=e;return null}};"function"==typeof e&&(l.loader=e);let o={...l,...n};return(0,r.default)({...o,modules:null==(t=o.loadableGenerated)?void 0:t.modules})}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),e.exports=n.default)},3617:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return d}});let l=t(7516),r=t(2374),o=t(7033),u=t(8873);function a(e){return{default:e&&"default"in e?e.default:e}}let s={loader:()=>Promise.resolve(a(()=>null)),loading:null,ssr:!0},d=function(e){let n={...s,...e},t=(0,r.lazy)(()=>n.loader().then(a)),d=n.loading;function i(e){let a=d?(0,l.jsx)(d,{isLoading:!0,pastDelay:!0,error:null}):null,s=n.ssr?(0,l.jsxs)(l.Fragment,{children:["undefined"==typeof window?(0,l.jsx)(u.PreloadCss,{moduleIds:n.modules}):null,(0,l.jsx)(t,{...e})]}):(0,l.jsx)(o.BailoutToCSR,{reason:"next/dynamic",children:(0,l.jsx)(t,{...e})});return(0,l.jsx)(r.Suspense,{fallback:a,children:s})}return i.displayName="LoadableComponent",i}},64:function(){},9343:function(e){e.exports={style:{fontFamily:"'__Inter_36bd41', '__Inter_Fallback_36bd41'",fontStyle:"normal"},className:"__className_36bd41"}},6225:function(e,n,t){"use strict";t.d(n,{RootProvider:function(){return f}}),t(3880);var l=t(8212),r=t(9602);t(5558),t(4918);var o=t(3358),u=t(278),a=t.n(u),s=t(8454),d=t(7516),i=a()(()=>Promise.all([t.e(760),t.e(541)]).then(t.bind(t,7541)),{loadableGenerated:{webpack:()=>[require.resolveWeak("./components/dialog/search-default.js")]},ssr:!1});function f(e){let{children:n,dir:t,theme:{enabled:u=!0,...a}={},search:f}=e,c=n;return(null==f?void 0:f.enabled)!==!1&&(c=(0,d.jsx)(l.X,{SearchDialog:i,...f,children:c})),u&&(c=(0,d.jsx)(o.f,{attribute:"class",defaultTheme:"system",enableSystem:!0,disableTransitionOnChange:!0,...a,children:c})),(0,d.jsx)(s._9,{dir:null!=t?t:"ltr",children:(0,d.jsx)(r.H,{children:c})})}}},function(e){e.O(0,[471,808,457,432,744],function(){return e(e.s=5883)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{2401:function(e,n,t){Promise.resolve().then(t.bind(t,4579)),Promise.resolve().then(t.t.bind(t,9343,23)),Promise.resolve().then(t.t.bind(t,64,23))},278:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o}});let l=t(9646);t(7516),t(2374);let r=l._(t(3617));function o(e,n){var t;let l={loading:e=>{let{error:n,isLoading:t,pastDelay:l}=e;return null}};"function"==typeof e&&(l.loader=e);let o={...l,...n};return(0,r.default)({...o,modules:null==(t=o.loadableGenerated)?void 0:t.modules})}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),e.exports=n.default)},3617:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return d}});let l=t(7516),r=t(2374),o=t(7033),u=t(8873);function a(e){return{default:e&&"default"in e?e.default:e}}let s={loader:()=>Promise.resolve(a(()=>null)),loading:null,ssr:!0},d=function(e){let n={...s,...e},t=(0,r.lazy)(()=>n.loader().then(a)),d=n.loading;function i(e){let a=d?(0,l.jsx)(d,{isLoading:!0,pastDelay:!0,error:null}):null,s=n.ssr?(0,l.jsxs)(l.Fragment,{children:["undefined"==typeof window?(0,l.jsx)(u.PreloadCss,{moduleIds:n.modules}):null,(0,l.jsx)(t,{...e})]}):(0,l.jsx)(o.BailoutToCSR,{reason:"next/dynamic",children:(0,l.jsx)(t,{...e})});return(0,l.jsx)(r.Suspense,{fallback:a,children:s})}return i.displayName="LoadableComponent",i}},64:function(){},9343:function(e){e.exports={style:{fontFamily:"'__Inter_36bd41', '__Inter_Fallback_36bd41'",fontStyle:"normal"},className:"__className_36bd41"}},4579:function(e,n,t){"use strict";t.d(n,{RootProvider:function(){return f}}),t(1634);var l=t(428),r=t(8783);t(1861),t(6776);var o=t(3358),u=t(278),a=t.n(u),s=t(8454),d=t(7516),i=a()(()=>Promise.all([t.e(811),t.e(297)]).then(t.bind(t,8297)),{loadableGenerated:{webpack:()=>[require.resolveWeak("./components/dialog/search-default.js")]},ssr:!1});function f(e){let{children:n,dir:t,theme:{enabled:u=!0,...a}={},search:f}=e,c=n;return(null==f?void 0:f.enabled)!==!1&&(c=(0,d.jsx)(l.X,{SearchDialog:i,...f,children:c})),u&&(c=(0,d.jsx)(o.f,{attribute:"class",defaultTheme:"system",enableSystem:!0,disableTransitionOnChange:!0,...a,children:c})),(0,d.jsx)(s._9,{dir:null!=t?t:"ltr",children:(0,d.jsx)(r.H,{children:c})})}}},function(e){e.O(0,[471,547,457,432,744],function(){return e(e.s=2401)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/webpack-6a097457df3d3a3a.js b/_next/static/chunks/webpack-6a097457df3d3a3a.js deleted file mode 100644 index a34645b8..00000000 --- a/_next/static/chunks/webpack-6a097457df3d3a3a.js +++ /dev/null @@ -1 +0,0 @@ -!function(){"use strict";var e,t,n,r,o,u,i,c,f,a={},l={};function d(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={exports:{}},r=!0;try{a[e](n,n.exports,d),r=!1}finally{r&&delete l[e]}return n.exports}d.m=a,e=[],d.O=function(t,n,r,o){if(n){o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o];return}for(var i=1/0,u=0;u=o&&Object.keys(d.O).every(function(e){return d.O[e](n[f])})?n.splice(f--,1):(c=!1,o0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o];return}for(var i=1/0,u=0;u=o&&Object.keys(s.O).every(function(e){return s.O[e](n[f])})?n.splice(f--,1):(c=!1,oli):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"\201C""\201D""\2018""\2019";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px var(--tw-prose-kbd-shadows),0 3px 0 var(--tw-prose-kbd-shadows);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:400;font-size:13px;padding:3px;border:1px solid;border-color:hsl(var(--border)/1);border-radius:5px;background:hsl(var(--muted)/1)}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;margin-top:2em;margin-bottom:2em;font-size:14px;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em;text-align:start}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body:hsl(var(--foreground)/90%);--tw-prose-headings:hsl(var(--foreground)/1);--tw-prose-lead:hsl(var(--foreground)/1);--tw-prose-links:hsl(var(--foreground)/1);--tw-prose-bold:hsl(var(--foreground)/1);--tw-prose-counters:hsl(var(--muted-foreground)/1);--tw-prose-bullets:hsl(var(--muted-foreground)/1);--tw-prose-hr:hsl(var(--border)/1);--tw-prose-quotes:hsl(var(--foreground)/1);--tw-prose-quote-borders:hsl(var(--border)/1);--tw-prose-captions:hsl(var(--foreground)/1);--tw-prose-kbd:hsl(var(--foreground)/1);--tw-prose-kbd-shadows:hsl(var(--primary)/50%);--tw-prose-code:hsl(var(--foreground)/1);--tw-prose-th-borders:hsl(var(--border)/1);--tw-prose-td-borders:hsl(var(--border)/1);--tw-prose-invert-body:#d1d5db;--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:#9ca3af;--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:#9ca3af;--tw-prose-invert-bullets:#4b5563;--tw-prose-invert-hr:#374151;--tw-prose-invert-quotes:#f3f4f6;--tw-prose-invert-quote-borders:#374151;--tw-prose-invert-captions:#9ca3af;--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:255 255 255;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:#d1d5db;--tw-prose-invert-pre-bg:rgba(0,0,0,.5);--tw-prose-invert-th-borders:#4b5563;--tw-prose-invert-td-borders:#374151;font-size:16px;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose :where(h1 a,h2 a,h3 a,h4 a,h5 a,h6 a):not(:where([class~=not-prose],[class~=not-prose] *)){text-decoration:inherit;font:inherit;color:inherit}.prose :where(a:hover):not(:where([class~=not-prose],[class~=not-prose] *)){opacity:80%}.shiki code span{color:var(--shiki-light)}.dark .shiki code span{color:var(--shiki-dark)}.fd-codeblock code{display:grid;font-size:13px}.shiki .highlighted{margin:0 -16px;padding:0 16px;background-color:hsl(var(--primary)/10%)}.shiki .highlighted-word{padding:1px 2px;margin:-1px -3px;border:1px solid;border-color:hsl(var(--primary)/50%);background-color:hsl(var(--primary)/10%);border-radius:2px}.fd-codeblock-keep-bg{background-color:var(--shiki-light-bg)}.dark .fd-codeblock-keep-bg{background-color:var(--shiki-dark-bg)}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-y-0{top:0;bottom:0}.-top-2{top:-.5rem}.bottom-2{bottom:.5rem}.end-2{inset-inline-end:.5rem}.left-1\/2{left:50%}.right-2{right:.5rem}.start-0{inset-inline-start:0}.start-4{inset-inline-start:1rem}.top-0{top:0}.top-1\/2{top:50%}.top-14{top:3.5rem}.top-2{top:.5rem}.top-\[10vh\]{top:10vh}.z-10{z-index:10}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-\[-1\]{z-index:-1}.z-\[2\]{z-index:2}.col-start-2{grid-column-start:2}.-m-2{margin:-.5rem}.-mx-1\.5{margin-left:-.375rem;margin-right:-.375rem}.-mx-2{margin-left:-.5rem;margin-right:-.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-4{margin-top:1rem;margin-bottom:1rem}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.-mb-1{margin-bottom:-.25rem}.-mb-3{margin-bottom:-.75rem}.-me-1{margin-inline-end:-.25rem}.-me-2{margin-inline-end:-.5rem}.-ms-0\.5{margin-inline-start:-.125rem}.-ms-1{margin-inline-start:-.25rem}.-ms-3{margin-inline-start:-.75rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-8{margin-bottom:2rem}.me-2{margin-inline-end:.5rem}.ms-1{margin-inline-start:.25rem}.ms-2{margin-inline-start:.5rem}.ms-auto{margin-inline-start:auto}.mt-8{margin-top:2rem}.mt-auto{margin-top:auto}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.\!size-3\.5{width:.875rem!important;height:.875rem!important}.size-3\.5{width:.875rem;height:.875rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-6{width:1.5rem;height:1.5rem}.size-9{width:2.25rem;height:2.25rem}.size-full{width:100%;height:100%}.h-1\.5{height:.375rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-dvh{height:100dvh}.h-full{height:100%}.h-px{height:1px}.max-h-\[400px\]{max-height:400px}.max-h-\[460px\]{max-height:460px}.max-h-\[var\(--radix-popover-content-available-height\)\]{max-height:var(--radix-popover-content-available-height)}.min-h-0{min-height:0}.min-h-10{min-height:2.5rem}.w-0{width:0}.w-1\.5{width:.375rem}.w-1\/4{width:25%}.w-20{width:5rem}.w-6{width:1.5rem}.w-\[260px\]{width:260px}.w-\[30\%\]{width:30%}.w-\[45\%\]{width:45%}.w-\[98vw\]{width:98vw}.w-\[var\(--fd-c-toc\)\]{width:var(--fd-c-toc)}.w-\[var\(--radix-popover-trigger-width\)\]{width:var(--radix-popover-trigger-width)}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0}.min-w-\[220px\]{min-width:220px}.min-w-\[var\(--fd-toc-width\)\]{min-width:var(--fd-toc-width)}.max-w-80{max-width:20rem}.max-w-\[1200px\]{max-width:1200px}.max-w-\[240px\]{max-width:240px}.max-w-\[860px\]{max-width:860px}.max-w-\[98vw\]{max-width:98vw}.max-w-container{max-width:1400px}.max-w-screen-sm{max-width:640px}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.origin-left{transform-origin:left}.-translate-x-1\/2{--tw-translate-x:-50%}.-translate-x-1\/2,.-translate-y-1\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y:-50%}.-rotate-90{--tw-rotate:-90deg}.-rotate-90,.scale-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-0{--tw-scale-x:0;--tw-scale-y:0}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.scroll-m-20{scroll-margin:5rem}.scroll-m-28{scroll-margin:7rem}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-fd-border>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:hsl(var(--border)/var(--tw-divide-opacity))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.text-nowrap{text-wrap:nowrap}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-s{border-inline-start-width:1px}.border-t{border-top-width:1px}.border-fd-foreground\/10{border-color:hsl(var(--foreground)/.1)}.border-transparent{border-color:transparent}.bg-fd-accent{--tw-bg-opacity:1;background-color:hsl(var(--accent)/var(--tw-bg-opacity))}.bg-fd-background{--tw-bg-opacity:1;background-color:hsl(var(--background)/var(--tw-bg-opacity))}.bg-fd-background\/50{background-color:hsl(var(--background)/.5)}.bg-fd-background\/60{background-color:hsl(var(--background)/.6)}.bg-fd-border{--tw-bg-opacity:1;background-color:hsl(var(--border)/var(--tw-bg-opacity))}.bg-fd-card{--tw-bg-opacity:1;background-color:hsl(var(--card)/var(--tw-bg-opacity))}.bg-fd-foreground\/10{background-color:hsl(var(--foreground)/.1)}.bg-fd-muted{--tw-bg-opacity:1;background-color:hsl(var(--muted)/var(--tw-bg-opacity))}.bg-fd-popover{--tw-bg-opacity:1;background-color:hsl(var(--popover)/var(--tw-bg-opacity))}.bg-fd-primary{--tw-bg-opacity:1;background-color:hsl(var(--primary)/var(--tw-bg-opacity))}.bg-fd-primary\/10{background-color:hsl(var(--primary)/.1)}.bg-fd-secondary{--tw-bg-opacity:1;background-color:hsl(var(--secondary)/var(--tw-bg-opacity))}.bg-fd-secondary\/50{background-color:hsl(var(--secondary)/.5)}.bg-transparent{background-color:transparent}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-fd-background\/80{--tw-gradient-from:hsl(var(--background)/0.8) var(--tw-gradient-from-position);--tw-gradient-to:hsl(var(--background)/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-fd-secondary{--tw-gradient-from:hsl(var(--secondary)/1) var(--tw-gradient-from-position);--tw-gradient-to:hsl(var(--secondary)/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.fill-blue-500{fill:#3b82f6}.fill-orange-500{fill:#f97316}.fill-red-500{fill:#ef4444}.stroke-fd-foreground\/10{stroke:hsl(var(--foreground)/.1)}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-2{padding-bottom:.5rem}.pb-6{padding-bottom:1.5rem}.pe-\[max\(calc\(var\(--fd-c-toc\)-var\(--fd-toc-width\)\)\2c 0\.75rem\)\]{padding-inline-end:max(calc(var(--fd-c-toc) - var(--fd-toc-width)),.75rem)}.pl-2{padding-left:.5rem}.ps-2{padding-inline-start:.5rem}.ps-3\.5{padding-inline-start:.875rem}.ps-4{padding-inline-start:1rem}.ps-6{padding-inline-start:1.5rem}.ps-8{padding-inline-start:2rem}.pt-0{padding-top:0}.pt-10{padding-top:2.5rem}.pt-12{padding-top:3rem}.pt-2{padding-top:.5rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-start{text-align:start}.text-end{text-align:end}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-fd-accent-foreground{--tw-text-opacity:1;color:hsl(var(--accent-foreground)/var(--tw-text-opacity))}.text-fd-card{--tw-text-opacity:1;color:hsl(var(--card)/var(--tw-text-opacity))}.text-fd-card-foreground{--tw-text-opacity:1;color:hsl(var(--card-foreground)/var(--tw-text-opacity))}.text-fd-foreground{--tw-text-opacity:1;color:hsl(var(--foreground)/var(--tw-text-opacity))}.text-fd-muted-foreground{--tw-text-opacity:1;color:hsl(var(--muted-foreground)/var(--tw-text-opacity))}.text-fd-popover-foreground{--tw-text-opacity:1;color:hsl(var(--popover-foreground)/var(--tw-text-opacity))}.text-fd-primary{--tw-text-opacity:1;color:hsl(var(--primary)/var(--tw-text-opacity))}.text-fd-secondary-foreground{--tw-text-opacity:1;color:hsl(var(--secondary-foreground)/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-lg,.shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-md{--tw-backdrop-blur:blur(12px)}.backdrop-blur-md,.backdrop-blur-sm{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-sm{--tw-backdrop-blur:blur(4px)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-200{transition-duration:.2s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.steps{counter-reset:step;border-left-width:1px;margin-left:1rem;padding-left:1.75rem;position:relative}.step:before{background-color:hsl(var(--secondary)/1);color:hsl(var(--secondary-foreground)/1);content:counter(step);counter-increment:step;border-radius:9999px;justify-content:center;align-items:center;width:2rem;height:2rem;font-size:.875rem;line-height:1.25rem;display:flex;position:absolute;left:-1rem}.prose-no-margin>:first-child{margin-top:0}.prose-no-margin>:last-child{margin-bottom:0}.\[--radix-collapsible-content-height\:0px\]{--radix-collapsible-content-height:0px}.\[overflow-wrap\:anywhere\]{overflow-wrap:anywhere}.placeholder\:text-fd-muted-foreground::-moz-placeholder{--tw-text-opacity:1;color:hsl(var(--muted-foreground)/var(--tw-text-opacity))}.placeholder\:text-fd-muted-foreground::placeholder{--tw-text-opacity:1;color:hsl(var(--muted-foreground)/var(--tw-text-opacity))}.first\:mt-0:first-child{margin-top:0}.first\:pl-0:first-child{padding-left:0}.first\:pt-0:first-child{padding-top:0}.last\:pb-0:last-child{padding-bottom:0}.last\:pr-0:last-child{padding-right:0}.hover\:bg-fd-accent:hover{--tw-bg-opacity:1;background-color:hsl(var(--accent)/var(--tw-bg-opacity))}.hover\:bg-fd-accent\/50:hover{background-color:hsl(var(--accent)/.5)}.hover\:bg-fd-accent\/80:hover{background-color:hsl(var(--accent)/.8)}.hover\:text-fd-accent-foreground:hover{--tw-text-opacity:1;color:hsl(var(--accent-foreground)/var(--tw-text-opacity))}.hover\:text-fd-accent-foreground\/80:hover{color:hsl(var(--accent-foreground)/.8)}.hover\:transition-none:hover{transition-property:none}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-fd-ring:focus-visible{--tw-ring-opacity:1;--tw-ring-color:hsl(var(--ring)/var(--tw-ring-opacity))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:opacity-100,.peer:hover~.peer-hover\:opacity-100{opacity:1}.aria-disabled\:pointer-events-none[aria-disabled=true]{pointer-events:none}.aria-disabled\:opacity-50[aria-disabled=true]{opacity:.5}.aria-selected\:bg-fd-accent[aria-selected=true]{--tw-bg-opacity:1;background-color:hsl(var(--accent)/var(--tw-bg-opacity))}.aria-selected\:text-fd-accent-foreground[aria-selected=true]{--tw-text-opacity:1;color:hsl(var(--accent-foreground)/var(--tw-text-opacity))}@keyframes fd-accordion-up{0%{height:var(--radix-accordion-content-height)}to{height:0;opacity:.5}}.data-\[state\=closed\]\:animate-fd-accordion-up[data-state=closed]{animation:fd-accordion-up .2s ease-out}@keyframes fd-collapsible-up{0%{height:var(--radix-collapsible-content-height)}to{height:0;opacity:0}}.data-\[state\=closed\]\:animate-fd-collapsible-up[data-state=closed]{animation:fd-collapsible-up .15s ease-out}@keyframes fd-dialog-out{0%{transform:scale(1) translate(-50%)}to{transform:scale(.95) translateY(-50%,0);opacity:0}}.data-\[state\=closed\]\:animate-fd-dialog-out[data-state=closed]{animation:fd-dialog-out .3s cubic-bezier(.32,.72,0,1)}.data-\[state\=closed\]\:animate-fd-fade-out[data-state=closed]{animation:fd-fade-out .3s ease}@keyframes fd-popover-out{0%{opacity:1;transform:scale(1) translateY(0)}to{opacity:0;transform:scale(.95) translateY(-10px)}}.data-\[state\=closed\]\:animate-fd-popover-out[data-state=closed]{animation:fd-popover-out .15s ease}@keyframes fd-fade-out{to{opacity:0}}.data-\[state\=hidden\]\:animate-fd-fade-out[data-state=hidden]{animation:fd-fade-out .3s ease}@keyframes fd-accordion-down{0%{height:0;opacity:.5}to{height:var(--radix-accordion-content-height)}}.data-\[state\=open\]\:animate-fd-accordion-down[data-state=open]{animation:fd-accordion-down .2s ease-out}@keyframes fd-collapsible-down{0%{height:0;opacity:0}to{height:var(--radix-collapsible-content-height)}}.data-\[state\=open\]\:animate-fd-collapsible-down[data-state=open]{animation:fd-collapsible-down .15s ease-out}@keyframes fd-dialog-in{0%{transform:scale(.95) translate(-50%);opacity:0}to{transform:scale(1) translate(-50%)}}.data-\[state\=open\]\:animate-fd-dialog-in[data-state=open]{animation:fd-dialog-in .2s cubic-bezier(.32,.72,0,1)}@keyframes fd-fade-in{0%{opacity:0}to{opacity:1}}.data-\[state\=open\]\:animate-fd-fade-in[data-state=open]{animation:fd-fade-in .3s ease}@keyframes fd-popover-in{0%{opacity:0;transform:scale(.95) translateY(-10px)}to{opacity:1;transform:scale(1) translateY(0)}}.data-\[state\=open\]\:animate-fd-popover-in[data-state=open]{animation:fd-popover-in .15s ease}.data-\[state\=active\]\:border-fd-primary[data-state=active]{--tw-border-opacity:1;border-color:hsl(var(--primary)/var(--tw-border-opacity))}.data-\[active\=true\]\:text-fd-primary[data-active=true],.data-\[state\=active\]\:text-fd-primary[data-state=active]{--tw-text-opacity:1;color:hsl(var(--primary)/var(--tw-text-opacity))}.group\/link[data-state=closed] .group-data-\[state\=closed\]\/link\:-rotate-90{--tw-rotate:-90deg}.group\/accordion[data-state=open] .group-data-\[state\=open\]\/accordion\:rotate-90,.group\/link[data-state=closed] .group-data-\[state\=closed\]\/link\:-rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group\/accordion[data-state=open] .group-data-\[state\=open\]\/accordion\:rotate-90{--tw-rotate:90deg}.dark\:bg-fd-accent:is(.dark *){--tw-bg-opacity:1;background-color:hsl(var(--accent)/var(--tw-bg-opacity))}.dark\:bg-transparent:is(.dark *){background-color:transparent}.dark\:text-fd-accent-foreground:is(.dark *){--tw-text-opacity:1;color:hsl(var(--accent-foreground)/var(--tw-text-opacity))}.dark\:text-fd-muted-foreground:is(.dark *){--tw-text-opacity:1;color:hsl(var(--muted-foreground)/var(--tw-text-opacity))}@media not all and (min-width:1024px){.max-lg\:hidden{display:none}}@media not all and (min-width:768px){.max-md\:inset-0{inset:0}.max-md\:hidden{display:none}.max-md\:bg-fd-background\/80{background-color:hsl(var(--background)/.8)}.max-md\:px-4{padding-left:1rem;padding-right:1rem}.max-md\:pt-14{padding-top:3.5rem}.max-md\:text-\[15px\]{font-size:15px}.max-md\:backdrop-blur-md{--tw-backdrop-blur:blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.max-md\:data-\[open\=false\]\:hidden[data-open=false]{display:none}}@media (min-width:640px){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width:768px){.md\:sticky{position:sticky}.md\:top-0{top:0}.md\:top-1{top:.25rem}.md\:mx-3{margin-left:.75rem;margin-right:.75rem}.md\:me-1\.5{margin-inline-end:.375rem}.md\:me-fd-sidebar-offset{margin-inline-end:max(calc(var(--fd-c-sidebar) - 2 * var(--fd-sidebar-width)),var(--fd-sidebar-width) * -1)}.md\:ms-\[max\(0px\2c calc\(50vw-min\(50\%\2c 600px\)-var\(--fd-c-sidebar\)\)\)\]{margin-inline-start:max(0px,calc(50vw - min(50%,600px) - var(--fd-c-sidebar)))}.md\:hidden{display:none}.md\:h-\[calc\(100dvh-4px\)\]{height:calc(100dvh - 4px)}.md\:h-dvh{height:100dvh}.md\:w-24{width:6rem}.md\:w-\[var\(--fd-c-sidebar\)\]{width:var(--fd-c-sidebar)}.md\:w-\[var\(--fd-sidebar-width\)\]{width:var(--fd-sidebar-width)}.md\:min-w-\[var\(--fd-sidebar-width\)\]{min-width:var(--fd-sidebar-width)}.md\:translate-x-1{--tw-translate-x:0.25rem}.md\:translate-x-1,.md\:translate-x-\[calc\(var\(--fd-sidebar-width\)\*-1\)\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\:translate-x-\[calc\(var\(--fd-sidebar-width\)\*-1\)\]{--tw-translate-x:calc(var(--fd-sidebar-width) * -1)}@keyframes fd-sidebar-collapse{0%,to{top:0;height:100dvh;border-radius:none}}.md\:animate-fd-sidebar-collapse{animation:fd-sidebar-collapse .15s}.md\:gap-2{gap:.5rem}.md\:rounded-full{border-radius:9999px}.md\:rounded-xl{border-radius:.75rem}.md\:border{border-width:1px}.md\:border-e{border-inline-end-width:1px}.md\:px-3{padding-left:.75rem;padding-right:.75rem}.md\:px-6{padding-left:1.5rem;padding-right:1.5rem}.md\:ps-0{padding-inline-start:0}.md\:ps-\[calc\(var\(--fd-c-sidebar\)-var\(--fd-sidebar-width\)\)\]{padding-inline-start:calc(var(--fd-c-sidebar) - var(--fd-sidebar-width))}.md\:pt-12{padding-top:3rem}.md\:pt-4{padding-top:1rem}.md\:shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.md\:transition-\[transform\2c padding\2c width\2c margin\]{transition-property:transform,padding,width,margin;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}}@media (min-width:1024px){.lg\:hidden{display:none}}@media (min-width:1280px){.xl\:w-\[50px\]{width:50px}}.rtl\:rotate-180:where([dir=rtl],[dir=rtl] *){--tw-rotate:180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rtl\:-scale-x-100:where([dir=rtl],[dir=rtl] *){--tw-scale-x:-1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (min-width:768px){.rtl\:md\:-translate-x-1:where([dir=rtl],[dir=rtl] *){--tw-translate-x:-0.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rtl\:md\:translate-x-\[var\(--fd-sidebar-width\)\]:where([dir=rtl],[dir=rtl] *){--tw-translate-x:var(--fd-sidebar-width);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}}.\[\&\>figure\:only-child\]\:-m-4>figure:only-child{margin:-1rem}.\[\&\>figure\:only-child\]\:rounded-none>figure:only-child{border-radius:0}.\[\&\>figure\:only-child\]\:border-none>figure:only-child{border-style:none}.\[\&\[data-state\=open\]\>svg\]\:rotate-180[data-state=open]>svg{--tw-rotate:180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&_svg\]\:size-3\.5 svg{width:.875rem;height:.875rem}.\[\&_svg\]\:size-4 svg{width:1rem;height:1rem}.\[\&_svg\]\:size-5 svg{width:1.25rem;height:1.25rem}.uwu .\[\.uwu_\&\]\:block{display:block}@media not all and (min-width:768px){header .max-md\:\[header_\&\]\:hidden{display:none}} \ No newline at end of file diff --git a/_next/static/ajd-SQ2r2d7teD8cRVxbO/_buildManifest.js b/_next/static/ob-je4azGQ3_nWAi-Q2wj/_buildManifest.js similarity index 100% rename from _next/static/ajd-SQ2r2d7teD8cRVxbO/_buildManifest.js rename to _next/static/ob-je4azGQ3_nWAi-Q2wj/_buildManifest.js diff --git a/_next/static/ajd-SQ2r2d7teD8cRVxbO/_ssgManifest.js b/_next/static/ob-je4azGQ3_nWAi-Q2wj/_ssgManifest.js similarity index 100% rename from _next/static/ajd-SQ2r2d7teD8cRVxbO/_ssgManifest.js rename to _next/static/ob-je4azGQ3_nWAi-Q2wj/_ssgManifest.js diff --git a/carbon.html b/carbon.html index f192e6f8..5291d7d3 100644 --- a/carbon.html +++ b/carbon.html @@ -1,7 +1,7 @@ -
Carbon

Introduction

Wordmark

+
Carbon

On this page

Edit on GitHub
\ No newline at end of file +

We’re excited to see what you create with Carbon!

Last updated on

On this page

Edit on GitHub
\ No newline at end of file diff --git a/carbon.txt b/carbon.txt index b7608945..bcf50c16 100644 --- a/carbon.txt +++ b/carbon.txt @@ -1,24 +1,24 @@ -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"] 30:"$Sreact.suspense" -31: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"] -33: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"] -34: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"] -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"],"LastUpdate"] -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"],"Footer"] -37: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"] +31: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"] +33: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"] +34: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"] +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"],"LastUpdate"] +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"],"Footer"] +37: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"] 3a:I[1907,[],""] 3c:I[1851,[],""] -3d:I[6225,["808","static/chunks/808-6dceee3f6f2f7cd1.js","185","static/chunks/app/layout-26077b10d25ec523.js"],"RootProvider"] +3d: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"] @@ -54,10 +54,10 @@ f:["$","div",null,"$10"] 1e:["$1f","$21","$23","$25"] 2f:{"title":"Join the Community","url":"#join-the-community","depth":2} 2e:["$2f"] -38:["../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"] +38:["../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"] 3b:["slug","carbon","c"] -0:["ajd-SQ2r2d7teD8cRVxbO",[[["",{"children":[["slug","carbon","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon","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":"Join the Community","url":"#join-the-community","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",["$","$30",null,{"fallback":null,"children":[["$","$L31",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"]}],"$L32"]}]],"children":["$","$L33",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":[["$","$L34",null,{}],[["$","h1",null,{"children":"Introduction","className":"text-3xl font-bold"}],null,["$","div",null,{"className":"prose","children":[[["$","p",null,{"children":["$","$L13",null,{"sizes":"(max-width: 768px) 100vw, (max-width: 1200px) 70vw, 900px","alt":"Wordmark","src":"https://cdn.buape.com/CarbonWordmark.png","width":"6144","height":"2048","className":"rounded-lg"}]}],"\n",["$","p",null,{"children":"Carbon is a powerful framework designed for building HTTP Discord bots."}],"\n",["$","div",null,{"children":[["$","$L15",null,{"href":"/carbon/getting-started","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[["$","div",null,{"className":"mb-2 w-fit rounded-md border bg-fd-muted p-2 text-fd-muted-foreground [&_svg]:size-4","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"]}]}],["$","h3",null,{"className":"mb-1 font-medium","children":"Getting Started"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"Learn how to get started with Carbon."}]]}],["$","$L15",null,{"href":"/carbon/classes","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[["$","div",null,{"className":"mb-2 w-fit rounded-md border bg-fd-muted p-2 text-fd-muted-foreground [&_svg]:size-4","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"]}]}],["$","h3",null,{"className":"mb-1 font-medium","children":"Code"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"Learn about the different classes that make up Carbon."}]]}],["$","$L15",null,{"href":"/carbon/helpful-guides","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[["$","div",null,{"className":"mb-2 w-fit rounded-md border bg-fd-muted p-2 text-fd-muted-foreground [&_svg]:size-4","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"]}]}],["$","h3",null,{"className":"mb-1 font-medium","children":"Helpful Guides"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"Learn how to use Carbon effectively."}]]}],["$","$L15",null,{"href":"/carbon/even-more","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[["$","div",null,{"className":"mb-2 w-fit rounded-md border bg-fd-muted p-2 text-fd-muted-foreground [&_svg]:size-4","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"]}]}],["$","h3",null,{"className":"mb-1 font-medium","children":"Even More"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"More things you can do with Carbon."}]]}]],"className":"grid grid-cols-1 gap-4 sm:grid-cols-2"}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"join-the-community","children":[["$","a",null,{"href":"#join-the-community","className":"peer","children":"Join the Community"}],["$","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":["Join our community on ",["$","a",null,{"href":"https://go.buape.com/Carbon","rel":"noreferrer noopener","target":"_blank","children":"Discord"}]," to connect with other developers, share your projects, and get support.\n",["$","a",null,{"href":"https://go.buape.com/Carbon","rel":"noreferrer noopener","target":"_blank","children":["$","$L13",null,{"sizes":"(max-width: 768px) 100vw, (max-width: 1200px) 70vw, 900px","alt":"Discord Invite","src":"http://invidget.switchblade.xyz/rT8vZAmVaQ","width":"430","height":"110","className":"rounded-lg"}]}]]}],"\n",["$","p",null,{"children":"We’re excited to see what you create with Carbon!"}]],["$","div",null,{"children":[],"className":"grid grid-cols-1 gap-4 sm:grid-cols-2"}]]}]],["$","div",null,{"className":"mt-auto"}],["$","$L35",null,{"date":"$D2024-09-11T14:49:03.000Z"}],["$","$L36",null,{"items":"$undefined"}]]}]]}],["$","$L37",null,{"header":"$undefined","footer":["$undefined",["$","$30",null,{"fallback":null,"children":[["$","$L31",null,{"moduleIds":"$38"}],"$L39"]}]],"children":["$","$L33",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L3a",null,{"parallelRouterKey":"children","segmentPath":["children","$3b","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3c",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":["$","$L3d",null,{"search":{"enabled":false},"children":["$","$L3a",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3c",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],["$L3e",null]]]] -3f: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"] +0:["ob-je4azGQ3_nWAi-Q2wj",[[["",{"children":[["slug","carbon","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon","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":"Join the Community","url":"#join-the-community","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",["$","$30",null,{"fallback":null,"children":[["$","$L31",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"]}],"$L32"]}]],"children":["$","$L33",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":[["$","$L34",null,{}],[["$","h1",null,{"children":"Introduction","className":"text-3xl font-bold"}],null,["$","div",null,{"className":"prose","children":[[["$","p",null,{"children":["$","$L13",null,{"sizes":"(max-width: 768px) 100vw, (max-width: 1200px) 70vw, 900px","alt":"Wordmark","src":"https://cdn.buape.com/CarbonWordmark.png","width":"6144","height":"2048","className":"rounded-lg"}]}],"\n",["$","p",null,{"children":"Carbon is a powerful framework designed for building HTTP Discord bots."}],"\n",["$","div",null,{"children":[["$","$L15",null,{"href":"/carbon/getting-started","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[["$","div",null,{"className":"mb-2 w-fit rounded-md border bg-fd-muted p-2 text-fd-muted-foreground [&_svg]:size-4","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"]}]}],["$","h3",null,{"className":"mb-1 font-medium","children":"Getting Started"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"Learn how to get started with Carbon."}]]}],["$","$L15",null,{"href":"/carbon/classes","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[["$","div",null,{"className":"mb-2 w-fit rounded-md border bg-fd-muted p-2 text-fd-muted-foreground [&_svg]:size-4","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"]}]}],["$","h3",null,{"className":"mb-1 font-medium","children":"Code"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"Learn about the different classes that make up Carbon."}]]}],["$","$L15",null,{"href":"/carbon/helpful-guides","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[["$","div",null,{"className":"mb-2 w-fit rounded-md border bg-fd-muted p-2 text-fd-muted-foreground [&_svg]:size-4","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"]}]}],["$","h3",null,{"className":"mb-1 font-medium","children":"Helpful Guides"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"Learn how to use Carbon effectively."}]]}],["$","$L15",null,{"href":"/carbon/even-more","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[["$","div",null,{"className":"mb-2 w-fit rounded-md border bg-fd-muted p-2 text-fd-muted-foreground [&_svg]:size-4","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"]}]}],["$","h3",null,{"className":"mb-1 font-medium","children":"Even More"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"More things you can do with Carbon."}]]}]],"className":"grid grid-cols-1 gap-4 sm:grid-cols-2"}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"join-the-community","children":[["$","a",null,{"href":"#join-the-community","className":"peer","children":"Join the Community"}],["$","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":["Join our community on ",["$","a",null,{"href":"https://go.buape.com/Carbon","rel":"noreferrer noopener","target":"_blank","children":"Discord"}]," to connect with other developers, share your projects, and get support.\n",["$","a",null,{"href":"https://go.buape.com/Carbon","rel":"noreferrer noopener","target":"_blank","children":["$","$L13",null,{"sizes":"(max-width: 768px) 100vw, (max-width: 1200px) 70vw, 900px","alt":"Discord Invite","src":"http://invidget.switchblade.xyz/rT8vZAmVaQ","width":"430","height":"110","className":"rounded-lg"}]}]]}],"\n",["$","p",null,{"children":"We’re excited to see what you create with Carbon!"}]],["$","div",null,{"children":[],"className":"grid grid-cols-1 gap-4 sm:grid-cols-2"}]]}]],["$","div",null,{"className":"mt-auto"}],["$","$L35",null,{"date":"$D2024-09-11T20:53:15.000Z"}],["$","$L36",null,{"items":"$undefined"}]]}]]}],["$","$L37",null,{"header":"$undefined","footer":["$undefined",["$","$30",null,{"fallback":null,"children":[["$","$L31",null,{"moduleIds":"$38"}],"$L39"]}]],"children":["$","$L33",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L3a",null,{"parallelRouterKey":"children","segmentPath":["children","$3b","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3c",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":["$","$L3d",null,{"search":{"enabled":false},"children":["$","$L3a",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3c",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],["$L3e",null]]]] +3f: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"] 32:["$","$L3f",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/index.mdx"}] 39:["$","$L3f",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/index.mdx"}] 3e:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","meta","2",{"name":"next-size-adjust"}]] diff --git a/carbon/classes.html b/carbon/classes.html index 97a7cb72..31c4aeba 100644 --- a/carbon/classes.html +++ b/carbon/classes.html @@ -1,2 +1,2 @@ -
Carbon

Classes

Carbon is built upon many sets of classes, that you will extend in your own code, including commands, components, and the Carbon client itself.

-

Each of these classes has a set of properties on the class itself that you can set, as well as methods that Carbon will call, such as Command#run.

Last updated on

On this page

No Headings
Edit on GitHub
\ No newline at end of file +
Carbon

Classes

Carbon is built upon many sets of classes, that you will extend in your own code, including commands, components, and the Carbon client itself.

+

Each of these classes has a set of properties on the class itself that you can set, as well as methods that Carbon will call, such as Command#run.

Last updated on

On this page

No Headings
Edit on GitHub
\ No newline at end of file diff --git a/carbon/classes.txt b/carbon/classes.txt index e46fb796..49a4b7ff 100644 --- a/carbon/classes.txt +++ b/carbon/classes.txt @@ -1,25 +1,25 @@ -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"] 2f:"$Sreact.suspense" -30: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"] -31: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"] -32: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"] -33: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"] -34: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"] -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"],"Footer"] -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"],"Toc"] +30: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"] +31: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"] +32: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"] +33: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"] +34: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"] +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"],"Footer"] +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"],"Toc"] 38:I[1907,[],""] 3a:I[1851,[],""] -3b:I[6225,["808","static/chunks/808-6dceee3f6f2f7cd1.js","185","static/chunks/app/layout-26077b10d25ec523.js"],"RootProvider"] +3b: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"] @@ -54,8 +54,8 @@ f:["$","div",null,"$10"] 25:{"type":"icon","url":"https://github.com/fuma-nama/fumadocs","text":"Github","icon":"$26","external":true} 1e:["$1f","$21","$23","$25"] 2e:[] -37:["../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"] +37:["../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"] 39:["slug","carbon/classes","c"] -0:["ajd-SQ2r2d7teD8cRVxbO",[[["",{"children":[["slug","carbon/classes","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"classes\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/classes","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":[],"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",["$","$2f",null,{"fallback":null,"children":[["$","$L30",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"]}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/classes/index.mdx"}]]}]],"children":["$","$L32",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":[["$","$L33",null,{}],[["$","h1",null,{"children":"Classes","className":"text-3xl font-bold"}],null,["$","div",null,{"className":"prose","children":[[["$","p",null,{"children":"Carbon is built upon many sets of classes, that you will extend in your own code, including commands, components, and the Carbon client itself."}],"\n",["$","p",null,{"children":["Each of these classes has a set of properties on the class itself that you can set, as well as methods that Carbon will call, such as ",["$","$L15",null,{"href":"/carbon/api/classes/Command#run","prefetch":"$undefined","replace":"$undefined","children":"Command#run"}],"."]}]],["$","div",null,{"children":[["$","$L15",null,{"href":"/carbon/classes/client","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[null,["$","h3",null,{"className":"mb-1 font-medium","children":"Client"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"The main class that is used to use Carbon"}]]}],["$","$L15",null,{"href":"/carbon/classes/commands","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[null,["$","h3",null,{"className":"mb-1 font-medium","children":"Commands"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"Commands are the main way to interact with your bot, including Context Menu apps and slash commands"}]]}],["$","$L15",null,{"href":"/carbon/classes/embeds","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[null,["$","h3",null,{"className":"mb-1 font-medium","children":"Embeds"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"Embeds are used to display rich content in messages"}]]}],["$","$L15",null,{"href":"/carbon/classes/modals","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[null,["$","h3",null,{"className":"mb-1 font-medium","children":"Modals"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"Modals are popup forms that can be used to collect user input"}]]}]],"className":"grid grid-cols-1 gap-4 sm:grid-cols-2"}]]}]],["$","div",null,{"className":"mt-auto"}],["$","$L34",null,{"date":"$D2024-09-11T14:49:03.000Z"}],["$","$L35",null,{"items":"$undefined"}]]}]]}],["$","$L36",null,{"header":"$undefined","footer":["$undefined",["$","$2f",null,{"fallback":null,"children":[["$","$L30",null,{"moduleIds":"$37"}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/classes/index.mdx"}]]}]],"children":["$","$L32",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L38",null,{"parallelRouterKey":"children","segmentPath":["children","$39","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3a",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":["$","$L3b",null,{"search":{"enabled":false},"children":["$","$L38",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3a",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],["$L3c",null]]]] +0:["ob-je4azGQ3_nWAi-Q2wj",[[["",{"children":[["slug","carbon/classes","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"classes\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/classes","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":[],"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",["$","$2f",null,{"fallback":null,"children":[["$","$L30",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"]}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/classes/index.mdx"}]]}]],"children":["$","$L32",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":[["$","$L33",null,{}],[["$","h1",null,{"children":"Classes","className":"text-3xl font-bold"}],null,["$","div",null,{"className":"prose","children":[[["$","p",null,{"children":"Carbon is built upon many sets of classes, that you will extend in your own code, including commands, components, and the Carbon client itself."}],"\n",["$","p",null,{"children":["Each of these classes has a set of properties on the class itself that you can set, as well as methods that Carbon will call, such as ",["$","$L15",null,{"href":"/carbon/api/classes/Command#run","prefetch":"$undefined","replace":"$undefined","children":"Command#run"}],"."]}]],["$","div",null,{"children":[["$","$L15",null,{"href":"/carbon/classes/client","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[null,["$","h3",null,{"className":"mb-1 font-medium","children":"Client"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"The main class that is used to use Carbon"}]]}],["$","$L15",null,{"href":"/carbon/classes/commands","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[null,["$","h3",null,{"className":"mb-1 font-medium","children":"Commands"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"Commands are the main way to interact with your bot, including Context Menu apps and slash commands"}]]}],["$","$L15",null,{"href":"/carbon/classes/embeds","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[null,["$","h3",null,{"className":"mb-1 font-medium","children":"Embeds"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"Embeds are used to display rich content in messages"}]]}],["$","$L15",null,{"href":"/carbon/classes/modals","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[null,["$","h3",null,{"className":"mb-1 font-medium","children":"Modals"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"Modals are popup forms that can be used to collect user input"}]]}]],"className":"grid grid-cols-1 gap-4 sm:grid-cols-2"}]]}]],["$","div",null,{"className":"mt-auto"}],["$","$L34",null,{"date":"$D2024-09-11T20:53:15.000Z"}],["$","$L35",null,{"items":"$undefined"}]]}]]}],["$","$L36",null,{"header":"$undefined","footer":["$undefined",["$","$2f",null,{"fallback":null,"children":[["$","$L30",null,{"moduleIds":"$37"}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/classes/index.mdx"}]]}]],"children":["$","$L32",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L38",null,{"parallelRouterKey":"children","segmentPath":["children","$39","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3a",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":["$","$L3b",null,{"search":{"enabled":false},"children":["$","$L38",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3a",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],["$L3c",null]]]] 3c:[["$","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/client.html b/carbon/classes/client.html index 824bc135..794e8333 100644 --- a/carbon/classes/client.html +++ b/carbon/classes/client.html @@ -1,4 +1,4 @@ -
Carbon

Client

The main class that is used to use Carbon

The main class that is used to use Carbon is the Client class. Everything all connects to this one class, and it is the main entry point for your bot.

+
Carbon

Client

The main class that is used to use Carbon

The main class that is used to use Carbon is the Client class. Everything all connects to this one class, and it is the main entry point for your bot.

Creating a Client

To create a client, you need to provide it with your client's options, and a list of commands.

src/index.ts
const client = new Client({
@@ -15,4 +15,4 @@ 

  • mode: The mode of your bot, which is ClientMode.NodeJS in this case
  • And we have also provided it with a list of commands, which in this case is just the PingCommand we created earlier.

    -

    See the Getting Started guide for more information on how to create a client specific to your environment.

    Last updated on

    On this page

    Edit on GitHub
    \ No newline at end of file +

    See the Getting Started guide for more information on how to create a client specific to your environment.

    Last updated on

    On this page

    Edit on GitHub
    \ No newline at end of file diff --git a/carbon/classes/client.txt b/carbon/classes/client.txt index 9e86bc7b..734941bb 100644 --- a/carbon/classes/client.txt +++ b/carbon/classes/client.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"] 30:"$Sreact.suspense" -31: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"] -32: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"] -33: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"] -34: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"] -35: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"] -37: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"] -38: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"] -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"],"Footer"] -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"],"Toc"] +31: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"] +32: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"] +33: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"] +34: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"] +35: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"] +37: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"] +38: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"] +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"],"Footer"] +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"],"Toc"] 3c:I[1907,[],""] 3e:I[1851,[],""] -3f:I[6225,["808","static/chunks/808-6dceee3f6f2f7cd1.js","185","static/chunks/app/layout-26077b10d25ec523.js"],"RootProvider"] +3f: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"] @@ -57,8 +57,8 @@ f:["$","div",null,"$10"] 1e:["$1f","$21","$23","$25"] 2f:{"title":"Creating a Client","url":"#creating-a-client","depth":2} 2e:["$2f"] -36:T4dc,3b:["../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"] +36:T4dc,3b:["../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"] 3d:["slug","carbon/classes/client","c"] -0:["ajd-SQ2r2d7teD8cRVxbO",[[["",{"children":[["slug","carbon/classes/client","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"classes\",\"client\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/classes/client","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 Client","url":"#creating-a-client","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",["$","$30",null,{"fallback":null,"children":[["$","$L31",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"]}],["$","$L32",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/classes/client.mdx"}]]}]],"children":["$","$L33",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":[["$","$L34",null,{}],[["$","h1",null,{"children":"Client","className":"text-3xl font-bold"}],["$","p",null,{"children":"The main class that is used to use Carbon","className":"mb-8 text-lg text-fd-muted-foreground"}],["$","div",null,{"className":"prose","children":[[["$","p",null,{"children":["The main class that is used to use Carbon is the ",["$","$L15",null,{"href":"/carbon/api/classes/Client","prefetch":"$undefined","replace":"$undefined","children":["$","code",null,{"children":"Client"}]}]," class. Everything all connects to this one class, and it is the main entry point for your bot."]}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"creating-a-client","children":[["$","a",null,{"href":"#creating-a-client","className":"peer","children":"Creating a Client"}],["$","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 client, you need to provide it with your client's options, and a list of commands."}],"\n",["$","$L35",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":"$36","children":["$","$L37",null,{"children":["$","code",null,{"children":[["$","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\""}],["$","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":"\tmode: ClientMode.NodeJS"}]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"}, ["}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"new"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" PingCommand"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"()])"}]]}]]}]}]}],"\n",["$","p",null,{"children":"Here we have created a client with the following options:"}],"\n",["$","ul",null,{"children":["\n",["$","li",null,{"children":[["$","code",null,{"children":"clientId"}],": The client ID of your bot"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"publicKey"}],": The public key of your bot"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"token"}],": The token of your bot"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"mode"}],": The mode of your bot, which is ",["$","code",null,{"children":"ClientMode.NodeJS"}]," in this case"]}],"\n"]}],"\n",["$","p",null,{"children":["And we have also provided it with a list of commands, which in this case is just the ",["$","code",null,{"children":"PingCommand"}]," we created earlier."]}],"\n",["$","p",null,{"children":["See the ",["$","$L15",null,{"href":"/carbon/getting-started","prefetch":"$undefined","replace":"$undefined","children":"Getting Started"}]," guide for more information on how to create a client specific to your environment."]}]],null]}]],["$","div",null,{"className":"mt-auto"}],["$","$L38",null,{"date":"$D2024-09-11T14:49:03.000Z"}],["$","$L39",null,{"items":"$undefined"}]]}]]}],["$","$L3a",null,{"header":"$undefined","footer":["$undefined",["$","$30",null,{"fallback":null,"children":[["$","$L31",null,{"moduleIds":"$3b"}],["$","$L32",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/classes/client.mdx"}]]}]],"children":["$","$L33",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L3c",null,{"parallelRouterKey":"children","segmentPath":["children","$3d","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3e",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":["$","$L3f",null,{"search":{"enabled":false},"children":["$","$L3c",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3e",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],["$L40",null]]]] +0:["ob-je4azGQ3_nWAi-Q2wj",[[["",{"children":[["slug","carbon/classes/client","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"classes\",\"client\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/classes/client","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 Client","url":"#creating-a-client","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",["$","$30",null,{"fallback":null,"children":[["$","$L31",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"]}],["$","$L32",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/classes/client.mdx"}]]}]],"children":["$","$L33",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":[["$","$L34",null,{}],[["$","h1",null,{"children":"Client","className":"text-3xl font-bold"}],["$","p",null,{"children":"The main class that is used to use Carbon","className":"mb-8 text-lg text-fd-muted-foreground"}],["$","div",null,{"className":"prose","children":[[["$","p",null,{"children":["The main class that is used to use Carbon is the ",["$","$L15",null,{"href":"/carbon/api/classes/Client","prefetch":"$undefined","replace":"$undefined","children":["$","code",null,{"children":"Client"}]}]," class. Everything all connects to this one class, and it is the main entry point for your bot."]}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"creating-a-client","children":[["$","a",null,{"href":"#creating-a-client","className":"peer","children":"Creating a Client"}],["$","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 client, you need to provide it with your client's options, and a list of commands."}],"\n",["$","$L35",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":"$36","children":["$","$L37",null,{"children":["$","code",null,{"children":[["$","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\""}],["$","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":"\tmode: ClientMode.NodeJS"}]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"}, ["}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"new"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" PingCommand"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"()])"}]]}]]}]}]}],"\n",["$","p",null,{"children":"Here we have created a client with the following options:"}],"\n",["$","ul",null,{"children":["\n",["$","li",null,{"children":[["$","code",null,{"children":"clientId"}],": The client ID of your bot"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"publicKey"}],": The public key of your bot"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"token"}],": The token of your bot"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"mode"}],": The mode of your bot, which is ",["$","code",null,{"children":"ClientMode.NodeJS"}]," in this case"]}],"\n"]}],"\n",["$","p",null,{"children":["And we have also provided it with a list of commands, which in this case is just the ",["$","code",null,{"children":"PingCommand"}]," we created earlier."]}],"\n",["$","p",null,{"children":["See the ",["$","$L15",null,{"href":"/carbon/getting-started","prefetch":"$undefined","replace":"$undefined","children":"Getting Started"}]," guide for more information on how to create a client specific to your environment."]}]],null]}]],["$","div",null,{"className":"mt-auto"}],["$","$L38",null,{"date":"$D2024-09-11T20:53:15.000Z"}],["$","$L39",null,{"items":"$undefined"}]]}]]}],["$","$L3a",null,{"header":"$undefined","footer":["$undefined",["$","$30",null,{"fallback":null,"children":[["$","$L31",null,{"moduleIds":"$3b"}],["$","$L32",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/classes/client.mdx"}]]}]],"children":["$","$L33",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L3c",null,{"parallelRouterKey":"children","segmentPath":["children","$3d","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3e",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":["$","$L3f",null,{"search":{"enabled":false},"children":["$","$L3c",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3e",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],["$L40",null]]]] 40:[["$","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/commands.html b/carbon/classes/commands.html index 9ef7520a..bf9c151d 100644 --- a/carbon/classes/commands.html +++ b/carbon/classes/commands.html @@ -1,4 +1,4 @@ -
    Carbon

    Commands

    Commands are the main way to interact with your bot, including Context Menu apps and slash commands

    Commands are the main way to interact with your bot. They are used to handle user input and respond to it.

    +
    Carbon

    Commands

    Commands are the main way to interact with your bot, including Context Menu apps and slash commands

    Commands are the main way to interact with your bot. They are used to handle user input and respond to it.

    Creating a Command

    To create a command, you need to create a class that extends the Command class. This class will handle the command and its functionality.

    src/commands/ping.ts
    import { Command, type CommandInteraction } from "@buape/carbon"
    @@ -56,4 +56,4 @@ 

    content: "The bot is currently under maintenance. Please try again later." }) } -}

    Last updated on

    On this page

    Edit on GitHub
    \ No newline at end of file +}

    Last updated on

    On this page

    Edit on GitHub
    \ 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

    Components are used to create interactive elements in your bot, such as buttons, select menus, and text inputs.

    +
    Carbon

    Components

    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.

    Last updated on

    On this page

    No Headings
    Edit on GitHub
    \ No newline at end of file +

    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.

    Last updated on

    On this page

    No Headings
    Edit on GitHub
    \ No newline at end of file diff --git a/carbon/classes/components.txt b/carbon/classes/components.txt index d178cf71..a646f9f3 100644 --- a/carbon/classes/components.txt +++ b/carbon/classes/components.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"] 2f:"$Sreact.suspense" -30: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"] -31: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"] -32: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"] -33: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"] -34: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"] -36: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"] -37: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"] -38: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"] -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"],"Toc"] +30: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"] +31: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"] +32: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"] +33: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"] +34: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"] +36: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"] +37: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"] +38: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"] +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"],"Toc"] 3b:I[1907,[],""] 3d:I[1851,[],""] -3e:I[6225,["808","static/chunks/808-6dceee3f6f2f7cd1.js","185","static/chunks/app/layout-26077b10d25ec523.js"],"RootProvider"] +3e: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"] @@ -56,8 +56,8 @@ f:["$","div",null,"$10"] 25:{"type":"icon","url":"https://github.com/fuma-nama/fumadocs","text":"Github","icon":"$26","external":true} 1e:["$1f","$21","$23","$25"] 2e:[] -35:T4dc,3a:["../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"] +35:T4dc,3a:["../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"] 3c:["slug","carbon/classes/components","c"] -0:["ajd-SQ2r2d7teD8cRVxbO",[[["",{"children":[["slug","carbon/classes/components","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"classes\",\"components\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/classes/components","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":[],"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",["$","$2f",null,{"fallback":null,"children":[["$","$L30",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"]}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/classes/components/index.mdx"}]]}]],"children":["$","$L32",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":[["$","$L33",null,{}],[["$","h1",null,{"children":"Components","className":"text-3xl font-bold"}],null,["$","div",null,{"className":"prose","children":[[["$","p",null,{"children":"Components are used to create interactive elements in your bot, such as buttons, select menus, and text inputs."}],"\n",["$","p",null,{"children":["When you create a component, you will need to pass it to the ",["$","$L15",null,{"href":"/carbon/api/classes/CommandInteraction#properties","prefetch":"$undefined","replace":"$undefined","children":[["$","code",null,{"children":"components"}]," property of the ",["$","code",null,{"children":"Command"}]," class"]}],". This will allow it to be registered with the bot as a handler.\nWhen you pass it, make sure you aren't instantiating it, but rather just passing the class itself."]}],"\n",["$","$L34",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":"$35","children":["$","$L36",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":[["$","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":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tcomponents"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" [PingButton]"}]]}],"\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",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"class"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" PingButton"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" extends"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" Button"}],["$","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":"\tcustomId"}],["$","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":"\tlabel"}],["$","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":"\tstyle"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" ButtonStyle.Primary"}]]}],"\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":" ButtonInteraction"}],["$","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":"\"OMG YOU CLICKED THE BUTTON\""}]]}],"\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":["If you don't want to automatically register the components, you can do so manually by setting the ",["$","code",null,{"children":"autoRegister"}]," option to ",["$","code",null,{"children":"false"}]," in the client options."]}]],["$","div",null,{"children":[["$","$L15",null,{"href":"/carbon/classes/components/buttons","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[null,["$","h3",null,{"className":"mb-1 font-medium","children":"Buttons"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"Buttons appear below messages and can be used to trigger actions or link to external sources."}]]}],["$","$L15",null,{"href":"/carbon/classes/components/select-menus","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[null,["$","h3",null,{"className":"mb-1 font-medium","children":"Select Menus"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"Select menus are used to select an option from a list of options in a dropdown"}]]}],["$","$L15",null,{"href":"/carbon/classes/components/text-inputs","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[null,["$","h3",null,{"className":"mb-1 font-medium","children":"Text Inputs"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"Text Inputs are blank text fields used solely within Modals to collect user input"}]]}]],"className":"grid grid-cols-1 gap-4 sm:grid-cols-2"}]]}]],["$","div",null,{"className":"mt-auto"}],["$","$L37",null,{"date":"$D2024-09-11T14:49:03.000Z"}],["$","$L38",null,{"items":"$undefined"}]]}]]}],["$","$L39",null,{"header":"$undefined","footer":["$undefined",["$","$2f",null,{"fallback":null,"children":[["$","$L30",null,{"moduleIds":"$3a"}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/classes/components/index.mdx"}]]}]],"children":["$","$L32",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L3b",null,{"parallelRouterKey":"children","segmentPath":["children","$3c","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3d",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":["$","$L3e",null,{"search":{"enabled":false},"children":["$","$L3b",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3d",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],["$L3f",null]]]] +0:["ob-je4azGQ3_nWAi-Q2wj",[[["",{"children":[["slug","carbon/classes/components","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"classes\",\"components\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/classes/components","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":[],"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",["$","$2f",null,{"fallback":null,"children":[["$","$L30",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"]}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/classes/components/index.mdx"}]]}]],"children":["$","$L32",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":[["$","$L33",null,{}],[["$","h1",null,{"children":"Components","className":"text-3xl font-bold"}],null,["$","div",null,{"className":"prose","children":[[["$","p",null,{"children":"Components are used to create interactive elements in your bot, such as buttons, select menus, and text inputs."}],"\n",["$","p",null,{"children":["When you create a component, you will need to pass it to the ",["$","$L15",null,{"href":"/carbon/api/classes/CommandInteraction#properties","prefetch":"$undefined","replace":"$undefined","children":[["$","code",null,{"children":"components"}]," property of the ",["$","code",null,{"children":"Command"}]," class"]}],". This will allow it to be registered with the bot as a handler.\nWhen you pass it, make sure you aren't instantiating it, but rather just passing the class itself."]}],"\n",["$","$L34",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":"$35","children":["$","$L36",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":[["$","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":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tcomponents"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" [PingButton]"}]]}],"\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",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"class"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" PingButton"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" extends"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" Button"}],["$","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":"\tcustomId"}],["$","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":"\tlabel"}],["$","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":"\tstyle"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" ButtonStyle.Primary"}]]}],"\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":" ButtonInteraction"}],["$","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":"\"OMG YOU CLICKED THE BUTTON\""}]]}],"\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":["If you don't want to automatically register the components, you can do so manually by setting the ",["$","code",null,{"children":"autoRegister"}]," option to ",["$","code",null,{"children":"false"}]," in the client options."]}]],["$","div",null,{"children":[["$","$L15",null,{"href":"/carbon/classes/components/buttons","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[null,["$","h3",null,{"className":"mb-1 font-medium","children":"Buttons"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"Buttons appear below messages and can be used to trigger actions or link to external sources."}]]}],["$","$L15",null,{"href":"/carbon/classes/components/select-menus","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[null,["$","h3",null,{"className":"mb-1 font-medium","children":"Select Menus"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"Select menus are used to select an option from a list of options in a dropdown"}]]}],["$","$L15",null,{"href":"/carbon/classes/components/text-inputs","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[null,["$","h3",null,{"className":"mb-1 font-medium","children":"Text Inputs"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"Text Inputs are blank text fields used solely within Modals to collect user input"}]]}]],"className":"grid grid-cols-1 gap-4 sm:grid-cols-2"}]]}]],["$","div",null,{"className":"mt-auto"}],["$","$L37",null,{"date":"$D2024-09-11T20:53:15.000Z"}],["$","$L38",null,{"items":"$undefined"}]]}]]}],["$","$L39",null,{"header":"$undefined","footer":["$undefined",["$","$2f",null,{"fallback":null,"children":[["$","$L30",null,{"moduleIds":"$3a"}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/classes/components/index.mdx"}]]}]],"children":["$","$L32",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L3b",null,{"parallelRouterKey":"children","segmentPath":["children","$3c","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3d",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":["$","$L3e",null,{"search":{"enabled":false},"children":["$","$L3b",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3d",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],["$L3f",null]]]] 3f:[["$","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/buttons.html b/carbon/classes/components/buttons.html index 10bed6b5..f0d7493d 100644 --- a/carbon/classes/components/buttons.html +++ b/carbon/classes/components/buttons.html @@ -1,4 +1,4 @@ -
    Carbon

    Buttons

    Buttons appear below messages and can be used to trigger actions or link to external sources.

    Buttons appear below messages and can be used to trigger actions or link to external sources.

    +
    Carbon

    Buttons

    Buttons appear below messages and can be used to trigger actions or link to external sources.

    Buttons appear below messages and can be used to trigger actions or link to external sources.

    Creating a Button

    To create a button, you need to create a class that extends the Button class. This class will handle the button and its functionality.

    src/buttons/ping.ts
    import { Button, type ButtonInteraction } from "@buape/carbon"
    @@ -32,4 +32,4 @@ 
    -

    Note that these buttons do not trigger any actions on the bot side, and are only used to link to external sources.

    Last updated on

    On this page

    Edit on GitHub
    \ No newline at end of file +

    Note that these buttons do not trigger any actions on the bot side, and are only used to link to external sources.

    Last updated on

    On this page

    Edit on GitHub
    \ No newline at end of file diff --git a/carbon/classes/components/buttons.txt b/carbon/classes/components/buttons.txt index 9c43a434..113f736f 100644 --- a/carbon/classes/components/buttons.txt +++ b/carbon/classes/components/buttons.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"] 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[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"] -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"],"Pre"] -3b: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"] -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"],"Footer"] -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"],"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[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"] +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"],"Pre"] +3b: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"] +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"],"Footer"] +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"],"Toc"] 3f:I[1907,[],""] 41:I[1851,[],""] -42:I[6225,["808","static/chunks/808-6dceee3f6f2f7cd1.js","185","static/chunks/app/layout-26077b10d25ec523.js"],"RootProvider"] +42: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"] @@ -59,8 +59,8 @@ f:["$","div",null,"$10"] 30:{"title":"Setting the Style","url":"#setting-the-style","depth":3} 31:{"title":"Link Buttons","url":"#link-buttons","depth":2} 2e:["$2f","$30","$31"] -38:T4dc,3a:T4dc,3e:["../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"] +38:T4dc,3a:T4dc,3e:["../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"] 40:["slug","carbon/classes/components/buttons","c"] -0:["ajd-SQ2r2d7teD8cRVxbO",[[["",{"children":[["slug","carbon/classes/components/buttons","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"classes\",\"components\",\"buttons\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/classes/components/buttons","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 Button","url":"#creating-a-button","depth":2},{"title":"Setting the Style","url":"#setting-the-style","depth":3},{"title":"Link Buttons","url":"#link-buttons","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",["$","$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/carbon/classes/components/buttons.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":"Buttons","className":"text-3xl font-bold"}],["$","p",null,{"children":"Buttons appear below messages and can be used to trigger actions or link to external sources.","className":"mb-8 text-lg text-fd-muted-foreground"}],["$","div",null,{"className":"prose","children":[[["$","p",null,{"children":"Buttons appear below messages and can be used to trigger actions or link to external sources."}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"creating-a-button","children":[["$","a",null,{"href":"#creating-a-button","className":"peer","children":"Creating a Button"}],["$","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 button, you need to create a class that extends the ",["$","code",null,{"children":"Button"}]," class. This class will handle the button and its functionality."]}],"\n",["$","$L37",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/buttons/ping.ts","icon":"$38","children":["$","$L39",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":" { Button, "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"type"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" ButtonInteraction } "}],["$","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":" PingButton"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" extends"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" Button"}],["$","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":"\tcustomId"}],["$","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":"\tlabel"}],["$","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":" "}],"\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":" ButtonInteraction"}],["$","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 button that responds with \"Pong\" when the user clicks on it."}],"\n",["$","p",null,{"children":"The custom ID is what is set on the button to differentiate it from other buttons. You cannot have the same custom ID for multiple buttons in a message sent to Discord."}],"\n",["$","h3",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"setting-the-style","children":[["$","a",null,{"href":"#setting-the-style","className":"peer","children":"Setting the Style"}],["$","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":"style"}]," property is used to set the style of the button. This is used to determine the style of the button. The available styles are:"]}],"\n",["$","ul",null,{"children":["\n",["$","li",null,{"children":[["$","code",null,{"children":"Primary"}],": A blurple colored button"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"Secondary"}],": A gray colored button"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"Success"}],": A green colored button"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"Danger"}],": A red colored button"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"Link"}],": A gray button solely used for links"]}],"\n"]}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"link-buttons","children":[["$","a",null,{"href":"#link-buttons","className":"peer","children":"Link Buttons"}],["$","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":["Link buttons are used to link to external sources. They are created by extending the ",["$","$L15",null,{"href":"/carbon/api/classes/LinkButton","prefetch":"$undefined","replace":"$undefined","children":["$","code",null,{"children":"LinkButton"}]}]," class, and adding a ",["$","code",null,{"children":"url"}]," property."]}],"\n",["$","$L37",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/buttons/link.ts","icon":"$3a","children":["$","$L39",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":" { Button, "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"type"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" ButtonInteraction } "}],["$","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":" LinkButton"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" extends"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" Button"}],["$","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":"\tlabel"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"Link\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\turl"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"https://buape.com\""}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"}"}]}]]}]}]}],"\n",["$","p",null,{"children":"Note that these buttons do not trigger any actions on the bot side, and are only used to link to external sources."}]],null]}]],["$","div",null,{"className":"mt-auto"}],["$","$L3b",null,{"date":"$D2024-09-11T14:49:03.000Z"}],["$","$L3c",null,{"items":"$undefined"}]]}]]}],["$","$L3d",null,{"header":"$undefined","footer":["$undefined",["$","$32",null,{"fallback":null,"children":[["$","$L33",null,{"moduleIds":"$3e"}],["$","$L34",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/classes/components/buttons.mdx"}]]}]],"children":["$","$L35",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L3f",null,{"parallelRouterKey":"children","segmentPath":["children","$40","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L41",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":["$","$L42",null,{"search":{"enabled":false},"children":["$","$L3f",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L41",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],["$L43",null]]]] +0:["ob-je4azGQ3_nWAi-Q2wj",[[["",{"children":[["slug","carbon/classes/components/buttons","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"classes\",\"components\",\"buttons\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/classes/components/buttons","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 Button","url":"#creating-a-button","depth":2},{"title":"Setting the Style","url":"#setting-the-style","depth":3},{"title":"Link Buttons","url":"#link-buttons","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",["$","$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/carbon/classes/components/buttons.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":"Buttons","className":"text-3xl font-bold"}],["$","p",null,{"children":"Buttons appear below messages and can be used to trigger actions or link to external sources.","className":"mb-8 text-lg text-fd-muted-foreground"}],["$","div",null,{"className":"prose","children":[[["$","p",null,{"children":"Buttons appear below messages and can be used to trigger actions or link to external sources."}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"creating-a-button","children":[["$","a",null,{"href":"#creating-a-button","className":"peer","children":"Creating a Button"}],["$","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 button, you need to create a class that extends the ",["$","code",null,{"children":"Button"}]," class. This class will handle the button and its functionality."]}],"\n",["$","$L37",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/buttons/ping.ts","icon":"$38","children":["$","$L39",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":" { Button, "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"type"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" ButtonInteraction } "}],["$","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":" PingButton"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" extends"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" Button"}],["$","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":"\tcustomId"}],["$","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":"\tlabel"}],["$","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":" "}],"\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":" ButtonInteraction"}],["$","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 button that responds with \"Pong\" when the user clicks on it."}],"\n",["$","p",null,{"children":"The custom ID is what is set on the button to differentiate it from other buttons. You cannot have the same custom ID for multiple buttons in a message sent to Discord."}],"\n",["$","h3",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"setting-the-style","children":[["$","a",null,{"href":"#setting-the-style","className":"peer","children":"Setting the Style"}],["$","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":"style"}]," property is used to set the style of the button. This is used to determine the style of the button. The available styles are:"]}],"\n",["$","ul",null,{"children":["\n",["$","li",null,{"children":[["$","code",null,{"children":"Primary"}],": A blurple colored button"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"Secondary"}],": A gray colored button"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"Success"}],": A green colored button"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"Danger"}],": A red colored button"]}],"\n",["$","li",null,{"children":[["$","code",null,{"children":"Link"}],": A gray button solely used for links"]}],"\n"]}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"link-buttons","children":[["$","a",null,{"href":"#link-buttons","className":"peer","children":"Link Buttons"}],["$","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":["Link buttons are used to link to external sources. They are created by extending the ",["$","$L15",null,{"href":"/carbon/api/classes/LinkButton","prefetch":"$undefined","replace":"$undefined","children":["$","code",null,{"children":"LinkButton"}]}]," class, and adding a ",["$","code",null,{"children":"url"}]," property."]}],"\n",["$","$L37",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/buttons/link.ts","icon":"$3a","children":["$","$L39",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":" { Button, "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"type"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" ButtonInteraction } "}],["$","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":" LinkButton"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" extends"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" Button"}],["$","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":"\tlabel"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"Link\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\turl"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"https://buape.com\""}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"}"}]}]]}]}]}],"\n",["$","p",null,{"children":"Note that these buttons do not trigger any actions on the bot side, and are only used to link to external sources."}]],null]}]],["$","div",null,{"className":"mt-auto"}],["$","$L3b",null,{"date":"$D2024-09-11T20:53:15.000Z"}],["$","$L3c",null,{"items":"$undefined"}]]}]]}],["$","$L3d",null,{"header":"$undefined","footer":["$undefined",["$","$32",null,{"fallback":null,"children":[["$","$L33",null,{"moduleIds":"$3e"}],["$","$L34",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/classes/components/buttons.mdx"}]]}]],"children":["$","$L35",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L3f",null,{"parallelRouterKey":"children","segmentPath":["children","$40","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L41",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":["$","$L42",null,{"search":{"enabled":false},"children":["$","$L3f",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L41",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],["$L43",null]]]] 43:[["$","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/select-menus.html b/carbon/classes/components/select-menus.html index cd3e1a68..01ddf39e 100644 --- a/carbon/classes/components/select-menus.html +++ b/carbon/classes/components/select-menus.html @@ -1,4 +1,4 @@ -
    Carbon

    Select Menus

    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.

    +
    Carbon

    Select Menus

    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.

    src/components/select-menu.ts
    class StringSelect extends StringSelectMenu {
     	customId = "string-select"
     	placeholder = "String select menu"
    @@ -36,4 +36,4 @@
     		interaction.reply({ content: interaction.values.join(", ") })
     	}
     }
    -

    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)

    Last updated on

    On this page

    No Headings
    Edit on GitHub
    \ No newline at end of file +

    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)

    Last updated on

    On this page

    No Headings
    Edit on GitHub
    \ No newline at end of file diff --git a/carbon/classes/components/select-menus.txt b/carbon/classes/components/select-menus.txt index f92031bc..79af2785 100644 --- a/carbon/classes/components/select-menus.txt +++ b/carbon/classes/components/select-menus.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"] 2f:"$Sreact.suspense" -30: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"] -31: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"] -32: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"] -33: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"] -34: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"] -36: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"] -37: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"] -38: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"] -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"],"Toc"] +30: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"] +31: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"] +32: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"] +33: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"] +34: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"] +36: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"] +37: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"] +38: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"] +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"],"Toc"] 3b:I[1907,[],""] 3d:I[1851,[],""] -3e:I[6225,["808","static/chunks/808-6dceee3f6f2f7cd1.js","185","static/chunks/app/layout-26077b10d25ec523.js"],"RootProvider"] +3e: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"] @@ -56,8 +56,8 @@ f:["$","div",null,"$10"] 25:{"type":"icon","url":"https://github.com/fuma-nama/fumadocs","text":"Github","icon":"$26","external":true} 1e:["$1f","$21","$23","$25"] 2e:[] -35:T4dc,3a:["../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"] +35:T4dc,3a:["../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"] 3c:["slug","carbon/classes/components/select-menus","c"] -0:["ajd-SQ2r2d7teD8cRVxbO",[[["",{"children":[["slug","carbon/classes/components/select-menus","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"classes\",\"components\",\"select-menus\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/classes/components/select-menus","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":[],"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",["$","$2f",null,{"fallback":null,"children":[["$","$L30",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"]}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/classes/components/select-menus.mdx"}]]}]],"children":["$","$L32",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":[["$","$L33",null,{}],[["$","h1",null,{"children":"Select Menus","className":"text-3xl font-bold"}],["$","p",null,{"children":"Select menus are used to select an option from a list of options in a dropdown","className":"mb-8 text-lg text-fd-muted-foreground"}],["$","div",null,{"className":"prose","children":[[["$","p",null,{"children":["Select menus are used to select an option from a list of options in a dropdown. They are created by extending the ",["$","$L15",null,{"href":"/carbon/api/classes/SelectMenu","prefetch":"$undefined","replace":"$undefined","children":["$","code",null,{"children":"SelectMenu"}]}]," class, and adding a ",["$","code",null,{"children":"options"}]," property."]}],"\n",["$","$L34",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/components/select-menu.ts","icon":"$35","children":["$","$L36",null,{"children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"class"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" StringSelect"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" extends"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" StringSelectMenu"}],["$","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":"\tcustomId"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"string-select\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tplaceholder"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"String select menu\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\toptions"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" [{ label: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"Option 1\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":", value: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"option1\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" }, { label: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"Option 2\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":", value: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"option2\""}],["$","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":"\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":" StringSelectMenuInteraction"}],["$","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\tinteraction."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"reply"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"({ content: interaction.values."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"join"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"("}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\", \""}],["$","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}"}]}],"\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":"class"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" RoleSelect"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" extends"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" RoleSelectMenu"}],["$","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":"\tcustomId"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"role-select\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tplaceholder"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"Role select menu\""}]]}],"\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":" RoleSelectMenuInteraction"}],["$","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\tinteraction."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"reply"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"({ content: interaction.values."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"join"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"("}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\", \""}],["$","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}"}]}],"\n",["$","span",null,{"className":"line","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":"class"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" MentionableSelect"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" extends"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" MentionableSelectMenu"}],["$","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":"\tcustomId"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"mentionable-select\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tplaceholder"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"Mentionable select menu\""}]]}],"\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":" MentionableSelectMenuInteraction"}],["$","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\tinteraction."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"reply"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"({ content: interaction.values."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"join"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"("}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\", \""}],["$","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}"}]}],"\n",["$","span",null,{"className":"line","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":"class"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" ChannelSelect"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" extends"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" ChannelSelectMenu"}],["$","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":"\tcustomId"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"channel-select\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tplaceholder"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"Channel select menu\""}]]}],"\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":" ChannelSelectMenuInteraction"}],["$","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\tinteraction."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"reply"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"({ content: interaction.values."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"join"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"("}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\", \""}],["$","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}"}]}],"\n",["$","span",null,{"className":"line","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":"class"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" UserSelect"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" extends"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" UserSelectMenu"}],["$","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":"\tcustomId"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"user-select\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tplaceholder"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"User select menu\""}]]}],"\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":" UserSelectMenuInteraction"}],["$","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\tinteraction."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"reply"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"({ content: interaction.values."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"join"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"("}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\", \""}],["$","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}"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"}"}]}]]}]}]}],"\n",["$","p",null,{"children":"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)"}]],null]}]],["$","div",null,{"className":"mt-auto"}],["$","$L37",null,{"date":"$D2024-09-11T14:49:03.000Z"}],["$","$L38",null,{"items":"$undefined"}]]}]]}],["$","$L39",null,{"header":"$undefined","footer":["$undefined",["$","$2f",null,{"fallback":null,"children":[["$","$L30",null,{"moduleIds":"$3a"}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/classes/components/select-menus.mdx"}]]}]],"children":["$","$L32",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L3b",null,{"parallelRouterKey":"children","segmentPath":["children","$3c","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3d",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":["$","$L3e",null,{"search":{"enabled":false},"children":["$","$L3b",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3d",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],["$L3f",null]]]] +0:["ob-je4azGQ3_nWAi-Q2wj",[[["",{"children":[["slug","carbon/classes/components/select-menus","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"classes\",\"components\",\"select-menus\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/classes/components/select-menus","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":[],"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",["$","$2f",null,{"fallback":null,"children":[["$","$L30",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"]}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/classes/components/select-menus.mdx"}]]}]],"children":["$","$L32",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":[["$","$L33",null,{}],[["$","h1",null,{"children":"Select Menus","className":"text-3xl font-bold"}],["$","p",null,{"children":"Select menus are used to select an option from a list of options in a dropdown","className":"mb-8 text-lg text-fd-muted-foreground"}],["$","div",null,{"className":"prose","children":[[["$","p",null,{"children":["Select menus are used to select an option from a list of options in a dropdown. They are created by extending the ",["$","$L15",null,{"href":"/carbon/api/classes/SelectMenu","prefetch":"$undefined","replace":"$undefined","children":["$","code",null,{"children":"SelectMenu"}]}]," class, and adding a ",["$","code",null,{"children":"options"}]," property."]}],"\n",["$","$L34",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/components/select-menu.ts","icon":"$35","children":["$","$L36",null,{"children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"class"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" StringSelect"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" extends"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" StringSelectMenu"}],["$","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":"\tcustomId"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"string-select\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tplaceholder"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"String select menu\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\toptions"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" [{ label: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"Option 1\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":", value: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"option1\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" }, { label: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"Option 2\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":", value: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"option2\""}],["$","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":"\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":" StringSelectMenuInteraction"}],["$","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\tinteraction."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"reply"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"({ content: interaction.values."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"join"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"("}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\", \""}],["$","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}"}]}],"\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":"class"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" RoleSelect"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" extends"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" RoleSelectMenu"}],["$","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":"\tcustomId"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"role-select\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tplaceholder"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"Role select menu\""}]]}],"\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":" RoleSelectMenuInteraction"}],["$","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\tinteraction."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"reply"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"({ content: interaction.values."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"join"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"("}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\", \""}],["$","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}"}]}],"\n",["$","span",null,{"className":"line","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":"class"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" MentionableSelect"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" extends"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" MentionableSelectMenu"}],["$","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":"\tcustomId"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"mentionable-select\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tplaceholder"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"Mentionable select menu\""}]]}],"\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":" MentionableSelectMenuInteraction"}],["$","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\tinteraction."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"reply"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"({ content: interaction.values."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"join"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"("}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\", \""}],["$","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}"}]}],"\n",["$","span",null,{"className":"line","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":"class"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" ChannelSelect"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" extends"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" ChannelSelectMenu"}],["$","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":"\tcustomId"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"channel-select\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tplaceholder"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"Channel select menu\""}]]}],"\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":" ChannelSelectMenuInteraction"}],["$","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\tinteraction."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"reply"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"({ content: interaction.values."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"join"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"("}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\", \""}],["$","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}"}]}],"\n",["$","span",null,{"className":"line","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":"class"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" UserSelect"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" extends"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" UserSelectMenu"}],["$","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":"\tcustomId"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"user-select\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tplaceholder"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"User select menu\""}]]}],"\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":" UserSelectMenuInteraction"}],["$","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\tinteraction."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"reply"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"({ content: interaction.values."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"join"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"("}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\", \""}],["$","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}"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"}"}]}]]}]}]}],"\n",["$","p",null,{"children":"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)"}]],null]}]],["$","div",null,{"className":"mt-auto"}],["$","$L37",null,{"date":"$D2024-09-11T20:53:15.000Z"}],["$","$L38",null,{"items":"$undefined"}]]}]]}],["$","$L39",null,{"header":"$undefined","footer":["$undefined",["$","$2f",null,{"fallback":null,"children":[["$","$L30",null,{"moduleIds":"$3a"}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/classes/components/select-menus.mdx"}]]}]],"children":["$","$L32",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L3b",null,{"parallelRouterKey":"children","segmentPath":["children","$3c","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3d",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":["$","$L3e",null,{"search":{"enabled":false},"children":["$","$L3b",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3d",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],["$L3f",null]]]] 3f:[["$","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/text-inputs.html b/carbon/classes/components/text-inputs.html index 89a6f2ef..c8be5155 100644 --- a/carbon/classes/components/text-inputs.html +++ b/carbon/classes/components/text-inputs.html @@ -1,4 +1,4 @@ -
    Carbon

    Text Inputs

    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.

    +
    Carbon

    Text Inputs

    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.

    Last updated on

    On this page

    No Headings
    Edit on GitHub
    \ No newline at end of file +

    Here we have 2 examples of text inputs, one in a large paragraph form, and one in a short form.

    Last updated on

    On this page

    No Headings
    Edit on GitHub
    \ No newline at end of file diff --git a/carbon/classes/components/text-inputs.txt b/carbon/classes/components/text-inputs.txt index 9507fb6f..e2f238b7 100644 --- a/carbon/classes/components/text-inputs.txt +++ b/carbon/classes/components/text-inputs.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"] 2f:"$Sreact.suspense" -30: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"] -31: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"] -32: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"] -33: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"] -34: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"] -36: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"] -37: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"] -38: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"] -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"],"Toc"] +30: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"] +31: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"] +32: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"] +33: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"] +34: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"] +36: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"] +37: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"] +38: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"] +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"],"Toc"] 3b:I[1907,[],""] 3d:I[1851,[],""] -3e:I[6225,["808","static/chunks/808-6dceee3f6f2f7cd1.js","185","static/chunks/app/layout-26077b10d25ec523.js"],"RootProvider"] +3e: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"] @@ -56,8 +56,8 @@ f:["$","div",null,"$10"] 25:{"type":"icon","url":"https://github.com/fuma-nama/fumadocs","text":"Github","icon":"$26","external":true} 1e:["$1f","$21","$23","$25"] 2e:[] -35:T4dc,3a:["../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"] +35:T4dc,3a:["../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"] 3c:["slug","carbon/classes/components/text-inputs","c"] -0:["ajd-SQ2r2d7teD8cRVxbO",[[["",{"children":[["slug","carbon/classes/components/text-inputs","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"classes\",\"components\",\"text-inputs\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/classes/components/text-inputs","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":[],"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",["$","$2f",null,{"fallback":null,"children":[["$","$L30",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"]}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/classes/components/text-inputs.mdx"}]]}]],"children":["$","$L32",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":[["$","$L33",null,{}],[["$","h1",null,{"children":"Text Inputs","className":"text-3xl font-bold"}],["$","p",null,{"children":"Text Inputs are blank text fields used solely within Modals to collect user input","className":"mb-8 text-lg text-fd-muted-foreground"}],["$","div",null,{"className":"prose","children":[[["$","p",null,{"children":["Text Inputs are blank text fields used solely within ",["$","$L15",null,{"href":"/carbon/classes/modals","prefetch":"$undefined","replace":"$undefined","children":"Modals"}]," to collect user input. They are created by extending the ",["$","$L15",null,{"href":"/carbon/api/classes/TextInput","prefetch":"$undefined","replace":"$undefined","children":["$","code",null,{"children":"TextInput"}]}]," class, and adding a ",["$","code",null,{"children":"label"}]," and ",["$","code",null,{"children":"placeholder"}]," property."]}],"\n",["$","$L34",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/components/text-input.ts","icon":"$35","children":["$","$L36",null,{"children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"class"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" TextInputHi"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" extends"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" TextInput"}],["$","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":"\tlabel"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"Tell me about your life\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tcustomId"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"life\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tstyle"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" TextInputStyle.Paragraph"}]]}],"\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":"class"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" TextInputAge"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" extends"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" TextInput"}],["$","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":"\tlabel"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"How old are you?\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tcustomId"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"age\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tstyle"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" TextInputStyle.Short"}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"}"}]}]]}]}]}],"\n",["$","p",null,{"children":"Here we have 2 examples of text inputs, one in a large paragraph form, and one in a short form."}]],null]}]],["$","div",null,{"className":"mt-auto"}],["$","$L37",null,{"date":"$D2024-09-11T14:49:03.000Z"}],["$","$L38",null,{"items":"$undefined"}]]}]]}],["$","$L39",null,{"header":"$undefined","footer":["$undefined",["$","$2f",null,{"fallback":null,"children":[["$","$L30",null,{"moduleIds":"$3a"}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/classes/components/text-inputs.mdx"}]]}]],"children":["$","$L32",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L3b",null,{"parallelRouterKey":"children","segmentPath":["children","$3c","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3d",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":["$","$L3e",null,{"search":{"enabled":false},"children":["$","$L3b",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3d",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],["$L3f",null]]]] +0:["ob-je4azGQ3_nWAi-Q2wj",[[["",{"children":[["slug","carbon/classes/components/text-inputs","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"classes\",\"components\",\"text-inputs\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/classes/components/text-inputs","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":[],"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",["$","$2f",null,{"fallback":null,"children":[["$","$L30",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"]}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/classes/components/text-inputs.mdx"}]]}]],"children":["$","$L32",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":[["$","$L33",null,{}],[["$","h1",null,{"children":"Text Inputs","className":"text-3xl font-bold"}],["$","p",null,{"children":"Text Inputs are blank text fields used solely within Modals to collect user input","className":"mb-8 text-lg text-fd-muted-foreground"}],["$","div",null,{"className":"prose","children":[[["$","p",null,{"children":["Text Inputs are blank text fields used solely within ",["$","$L15",null,{"href":"/carbon/classes/modals","prefetch":"$undefined","replace":"$undefined","children":"Modals"}]," to collect user input. They are created by extending the ",["$","$L15",null,{"href":"/carbon/api/classes/TextInput","prefetch":"$undefined","replace":"$undefined","children":["$","code",null,{"children":"TextInput"}]}]," class, and adding a ",["$","code",null,{"children":"label"}]," and ",["$","code",null,{"children":"placeholder"}]," property."]}],"\n",["$","$L34",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/components/text-input.ts","icon":"$35","children":["$","$L36",null,{"children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"class"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" TextInputHi"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" extends"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" TextInput"}],["$","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":"\tlabel"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"Tell me about your life\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tcustomId"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"life\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tstyle"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" TextInputStyle.Paragraph"}]]}],"\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":"class"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" TextInputAge"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" extends"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" TextInput"}],["$","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":"\tlabel"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"How old are you?\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tcustomId"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"age\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tstyle"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" TextInputStyle.Short"}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"}"}]}]]}]}]}],"\n",["$","p",null,{"children":"Here we have 2 examples of text inputs, one in a large paragraph form, and one in a short form."}]],null]}]],["$","div",null,{"className":"mt-auto"}],["$","$L37",null,{"date":"$D2024-09-11T20:53:15.000Z"}],["$","$L38",null,{"items":"$undefined"}]]}]]}],["$","$L39",null,{"header":"$undefined","footer":["$undefined",["$","$2f",null,{"fallback":null,"children":[["$","$L30",null,{"moduleIds":"$3a"}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/classes/components/text-inputs.mdx"}]]}]],"children":["$","$L32",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L3b",null,{"parallelRouterKey":"children","segmentPath":["children","$3c","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3d",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":["$","$L3e",null,{"search":{"enabled":false},"children":["$","$L3b",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3d",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],["$L3f",null]]]] 3f:[["$","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/embeds.html b/carbon/classes/embeds.html index f9f875d5..e928c891 100644 --- a/carbon/classes/embeds.html +++ b/carbon/classes/embeds.html @@ -1,4 +1,4 @@ -
    Carbon

    Embeds

    Embeds are used to display rich content in messages

    Embeds are used to display rich content in messages. They are created by extending the Embed class, and adding a title, description, and url property.

    +
    Carbon

    Embeds

    Embeds are used to display rich content in messages

    Embeds are used to display rich content in messages. They are created by extending the Embed class, and adding a title, description, and url property.

    src/components/embed.ts
    class Embed extends Embed {
     	title = "Embed Test"
     	description = "This is an embed test"
    @@ -35,4 +35,4 @@ 

    inline: true } ] -}

    Last updated on

    On this page

    Edit on GitHub
    \ No newline at end of file +}

    Last updated on

    On this page

    Edit on GitHub
    \ No newline at end of file diff --git a/carbon/classes/embeds.txt b/carbon/classes/embeds.txt index 76da51af..d548156a 100644 --- a/carbon/classes/embeds.txt +++ b/carbon/classes/embeds.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"] 30:"$Sreact.suspense" -31: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"] -32: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"] -33: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"] -34: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"] -35: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"] -37: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"] -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"],"LastUpdate"] -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"],"Footer"] -3b: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"] +31: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"] +32: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"] +33: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"] +34: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"] +35: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"] +37: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"] +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"],"LastUpdate"] +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"],"Footer"] +3b: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"] 3d:I[1907,[],""] 3f:I[1851,[],""] -40:I[6225,["808","static/chunks/808-6dceee3f6f2f7cd1.js","185","static/chunks/app/layout-26077b10d25ec523.js"],"RootProvider"] +40: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"] @@ -57,8 +57,8 @@ f:["$","div",null,"$10"] 1e:["$1f","$21","$23","$25"] 2f:{"title":"Example Embed","url":"#example-embed","depth":2} 2e:["$2f"] -36:T4dc,38:T4dc,3c:["../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"] +36:T4dc,38:T4dc,3c:["../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"] 3e:["slug","carbon/classes/embeds","c"] -0:["ajd-SQ2r2d7teD8cRVxbO",[[["",{"children":[["slug","carbon/classes/embeds","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"classes\",\"embeds\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/classes/embeds","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":"Example Embed","url":"#example-embed","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",["$","$30",null,{"fallback":null,"children":[["$","$L31",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"]}],["$","$L32",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/classes/embeds.mdx"}]]}]],"children":["$","$L33",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":[["$","$L34",null,{}],[["$","h1",null,{"children":"Embeds","className":"text-3xl font-bold"}],["$","p",null,{"children":"Embeds are used to display rich content in messages","className":"mb-8 text-lg text-fd-muted-foreground"}],["$","div",null,{"className":"prose","children":[[["$","p",null,{"children":["Embeds are used to display rich content in messages. They are created by extending the ",["$","$L15",null,{"href":"/carbon/api/classes/Embed","prefetch":"$undefined","replace":"$undefined","children":["$","code",null,{"children":"Embed"}]}]," class, and adding a ",["$","code",null,{"children":"title"}],", ",["$","code",null,{"children":"description"}],", and ",["$","code",null,{"children":"url"}]," property."]}],"\n",["$","$L35",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/components/embed.ts","icon":"$36","children":["$","$L37",null,{"children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"class"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" Embed"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" extends"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" Embed"}],["$","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":"\ttitle"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"Embed Test\""}]]}],"\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":" \"This is an embed test\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\turl"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"https://buape.com\""}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"}"}]}]]}]}]}],"\n",["$","p",null,{"children":["Here we have created an embed with a title, description, and URL. You can use this embed in a message by using the ",["$","$L15",null,{"href":"/carbon/api/classes/Embed","prefetch":"$undefined","replace":"$undefined","children":["$","code",null,{"children":"Embed"}]}]," class."]}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"example-embed","children":[["$","a",null,{"href":"#example-embed","className":"peer","children":"Example Embed"}],["$","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":"Here is an example embed with all the properties you can use."}],"\n",["$","$L35",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","icon":"$38","children":["$","$L37",null,{"children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"class"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" E"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" extends"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" Embed"}],["$","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":"\ttitle"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"Embed Test\""}]]}],"\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":" \"This is an embed test\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\turl"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"https://buape.com\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\ttimestamp"}],["$","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":" Date"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"()."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"toString"}],["$","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":"\tcolor"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" 16711680"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tfooter"}],["$","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":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t\ttext: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"Footer Text\""}],["$","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\ticon: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"https://cdn.buape.com/CarbonWordmark.png\""}]]}],"\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":"#E36209","--shiki-dark":"#FFAB70"},"children":"\timage"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"https://cdn.buape.com/CarbonWordmark.png\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tthumbnail"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"https://cdn.buape.com/CarbonWordmark.png\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tauthor"}],["$","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":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t\tname: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"Author Name\""}],["$","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\ticon: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"https://buape.com\""}]]}],"\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":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tfields"}],["$","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":"#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\tname: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"Field 1\""}],["$","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\tvalue: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"Value 1\""}],["$","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\tinline: "}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"true"}]]}],"\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{"}]}],"\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":"\"Field 2\""}],["$","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\tvalue: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"Value 2\""}],["$","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\tinline: "}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"true"}]]}],"\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"}],["$","$L39",null,{"date":"$D2024-09-11T14:49:03.000Z"}],["$","$L3a",null,{"items":"$undefined"}]]}]]}],["$","$L3b",null,{"header":"$undefined","footer":["$undefined",["$","$30",null,{"fallback":null,"children":[["$","$L31",null,{"moduleIds":"$3c"}],["$","$L32",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/classes/embeds.mdx"}]]}]],"children":["$","$L33",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L3d",null,{"parallelRouterKey":"children","segmentPath":["children","$3e","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3f",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":["$","$L40",null,{"search":{"enabled":false},"children":["$","$L3d",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3f",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],["$L41",null]]]] +0:["ob-je4azGQ3_nWAi-Q2wj",[[["",{"children":[["slug","carbon/classes/embeds","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"classes\",\"embeds\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/classes/embeds","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":"Example Embed","url":"#example-embed","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",["$","$30",null,{"fallback":null,"children":[["$","$L31",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"]}],["$","$L32",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/classes/embeds.mdx"}]]}]],"children":["$","$L33",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":[["$","$L34",null,{}],[["$","h1",null,{"children":"Embeds","className":"text-3xl font-bold"}],["$","p",null,{"children":"Embeds are used to display rich content in messages","className":"mb-8 text-lg text-fd-muted-foreground"}],["$","div",null,{"className":"prose","children":[[["$","p",null,{"children":["Embeds are used to display rich content in messages. They are created by extending the ",["$","$L15",null,{"href":"/carbon/api/classes/Embed","prefetch":"$undefined","replace":"$undefined","children":["$","code",null,{"children":"Embed"}]}]," class, and adding a ",["$","code",null,{"children":"title"}],", ",["$","code",null,{"children":"description"}],", and ",["$","code",null,{"children":"url"}]," property."]}],"\n",["$","$L35",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/components/embed.ts","icon":"$36","children":["$","$L37",null,{"children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"class"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" Embed"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" extends"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" Embed"}],["$","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":"\ttitle"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"Embed Test\""}]]}],"\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":" \"This is an embed test\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\turl"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"https://buape.com\""}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"}"}]}]]}]}]}],"\n",["$","p",null,{"children":["Here we have created an embed with a title, description, and URL. You can use this embed in a message by using the ",["$","$L15",null,{"href":"/carbon/api/classes/Embed","prefetch":"$undefined","replace":"$undefined","children":["$","code",null,{"children":"Embed"}]}]," class."]}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"example-embed","children":[["$","a",null,{"href":"#example-embed","className":"peer","children":"Example Embed"}],["$","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":"Here is an example embed with all the properties you can use."}],"\n",["$","$L35",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","icon":"$38","children":["$","$L37",null,{"children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"class"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" E"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" extends"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" Embed"}],["$","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":"\ttitle"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"Embed Test\""}]]}],"\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":" \"This is an embed test\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\turl"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"https://buape.com\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\ttimestamp"}],["$","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":" Date"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"()."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"toString"}],["$","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":"\tcolor"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" 16711680"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tfooter"}],["$","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":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t\ttext: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"Footer Text\""}],["$","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\ticon: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"https://cdn.buape.com/CarbonWordmark.png\""}]]}],"\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":"#E36209","--shiki-dark":"#FFAB70"},"children":"\timage"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"https://cdn.buape.com/CarbonWordmark.png\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tthumbnail"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"https://cdn.buape.com/CarbonWordmark.png\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tauthor"}],["$","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":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t\tname: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"Author Name\""}],["$","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\ticon: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"https://buape.com\""}]]}],"\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":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tfields"}],["$","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":"#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\tname: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"Field 1\""}],["$","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\tvalue: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"Value 1\""}],["$","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\tinline: "}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"true"}]]}],"\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{"}]}],"\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":"\"Field 2\""}],["$","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\tvalue: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"Value 2\""}],["$","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\tinline: "}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"true"}]]}],"\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"}],["$","$L39",null,{"date":"$D2024-09-11T20:53:15.000Z"}],["$","$L3a",null,{"items":"$undefined"}]]}]]}],["$","$L3b",null,{"header":"$undefined","footer":["$undefined",["$","$30",null,{"fallback":null,"children":[["$","$L31",null,{"moduleIds":"$3c"}],["$","$L32",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/classes/embeds.mdx"}]]}]],"children":["$","$L33",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L3d",null,{"parallelRouterKey":"children","segmentPath":["children","$3e","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3f",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":["$","$L40",null,{"search":{"enabled":false},"children":["$","$L3d",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3f",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],["$L41",null]]]] 41:[["$","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/modals.html b/carbon/classes/modals.html index fac71cb9..841e5d10 100644 --- a/carbon/classes/modals.html +++ b/carbon/classes/modals.html @@ -1,4 +1,4 @@ -
    Carbon

    Modals

    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.

    +
    Carbon

    Modals

    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
    -}

    Last updated on

    On this page

    No Headings
    Edit on GitHub
    \ No newline at end of file +}

    Last updated on

    On this page

    No Headings
    Edit on GitHub
    \ No newline at end of file diff --git a/carbon/classes/modals.txt b/carbon/classes/modals.txt index a7950d07..53829607 100644 --- a/carbon/classes/modals.txt +++ b/carbon/classes/modals.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"] 2f:"$Sreact.suspense" -30: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"] -31: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"] -32: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"] -33: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"] -34: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"] -36: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"] -37: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"] -38: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"] -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"],"Toc"] +30: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"] +31: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"] +32: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"] +33: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"] +34: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"] +36: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"] +37: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"] +38: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"] +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"],"Toc"] 3b:I[1907,[],""] 3d:I[1851,[],""] -3e:I[6225,["808","static/chunks/808-6dceee3f6f2f7cd1.js","185","static/chunks/app/layout-26077b10d25ec523.js"],"RootProvider"] +3e: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"] @@ -56,8 +56,8 @@ f:["$","div",null,"$10"] 25:{"type":"icon","url":"https://github.com/fuma-nama/fumadocs","text":"Github","icon":"$26","external":true} 1e:["$1f","$21","$23","$25"] 2e:[] -35:T4dc,3a:["../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"] +35:T4dc,3a:["../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"] 3c:["slug","carbon/classes/modals","c"] -0:["ajd-SQ2r2d7teD8cRVxbO",[[["",{"children":[["slug","carbon/classes/modals","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"classes\",\"modals\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/classes/modals","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":[],"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",["$","$2f",null,{"fallback":null,"children":[["$","$L30",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"]}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/classes/modals.mdx"}]]}]],"children":["$","$L32",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":[["$","$L33",null,{}],[["$","h1",null,{"children":"Modals","className":"text-3xl font-bold"}],["$","p",null,{"children":"Modals are popup forms that can be used to collect user input","className":"mb-8 text-lg text-fd-muted-foreground"}],["$","div",null,{"className":"prose","children":[[["$","p",null,{"children":["Modals are popup forms that can be used to collect user input. They are created by extending the ",["$","$L15",null,{"href":"/carbon/api/classes/Modal","prefetch":"$undefined","replace":"$undefined","children":["$","code",null,{"children":"Modal"}]}]," class, and adding a ",["$","code",null,{"children":"title"}]," and ",["$","code",null,{"children":"components"}]," property. All the components must be ",["$","$L15",null,{"href":"/carbon/classes/TextInput","prefetch":"$undefined","replace":"$undefined","children":["$","code",null,{"children":"TextInput"}]}]," classes."]}],"\n",["$","$L34",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/modal.ts","icon":"$35","children":["$","$L36",null,{"children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"class"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" ModalCommand"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" extends"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" Modal"}],["$","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":"\ttitle"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"Test Modal\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tcustomId"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"test-modal\""}]]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tcomponents"}],["$","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\tnew"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" Row"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(["}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"new"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" TextInputHi"}],["$","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\tnew"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" Row"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(["}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"new"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" TextInputAge"}],["$","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]"}]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"\trun"}],["$","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":" ModalInteraction"}],["$","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":"`Hi ${"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"interaction"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"."}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"fields"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"getText"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"("}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"name\""}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":")"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"}, you are ${"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"interaction"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"."}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"fields"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"getText"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"("}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"age\""}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":")"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"} years old, and your favorite color is ${"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"interaction"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"."}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"fields"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"getText"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"("}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"color\""}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":")"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"}. You are ${"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"interaction"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"."}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"fields"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"getText"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"("}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"height\""}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":") "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"||"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"not\"} tall.`"}]]}],"\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",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"class"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" TextInputHi"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" extends"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" TextInput"}],["$","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":"\tlabel"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"Tell me about your life\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tcustomId"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"life\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tstyle"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" TextInputStyle.Paragraph"}]]}],"\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":"class"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" TextInputAge"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" extends"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" TextInput"}],["$","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":"\tlabel"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"How old are you?\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tcustomId"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"age\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tstyle"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" TextInputStyle.Short"}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"}"}]}]]}]}]}]],null]}]],["$","div",null,{"className":"mt-auto"}],["$","$L37",null,{"date":"$D2024-09-11T14:49:03.000Z"}],["$","$L38",null,{"items":"$undefined"}]]}]]}],["$","$L39",null,{"header":"$undefined","footer":["$undefined",["$","$2f",null,{"fallback":null,"children":[["$","$L30",null,{"moduleIds":"$3a"}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/classes/modals.mdx"}]]}]],"children":["$","$L32",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L3b",null,{"parallelRouterKey":"children","segmentPath":["children","$3c","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3d",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":["$","$L3e",null,{"search":{"enabled":false},"children":["$","$L3b",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3d",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],["$L3f",null]]]] +0:["ob-je4azGQ3_nWAi-Q2wj",[[["",{"children":[["slug","carbon/classes/modals","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"classes\",\"modals\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/classes/modals","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":[],"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",["$","$2f",null,{"fallback":null,"children":[["$","$L30",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"]}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/classes/modals.mdx"}]]}]],"children":["$","$L32",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":[["$","$L33",null,{}],[["$","h1",null,{"children":"Modals","className":"text-3xl font-bold"}],["$","p",null,{"children":"Modals are popup forms that can be used to collect user input","className":"mb-8 text-lg text-fd-muted-foreground"}],["$","div",null,{"className":"prose","children":[[["$","p",null,{"children":["Modals are popup forms that can be used to collect user input. They are created by extending the ",["$","$L15",null,{"href":"/carbon/api/classes/Modal","prefetch":"$undefined","replace":"$undefined","children":["$","code",null,{"children":"Modal"}]}]," class, and adding a ",["$","code",null,{"children":"title"}]," and ",["$","code",null,{"children":"components"}]," property. All the components must be ",["$","$L15",null,{"href":"/carbon/classes/TextInput","prefetch":"$undefined","replace":"$undefined","children":["$","code",null,{"children":"TextInput"}]}]," classes."]}],"\n",["$","$L34",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/modal.ts","icon":"$35","children":["$","$L36",null,{"children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"class"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" ModalCommand"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" extends"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" Modal"}],["$","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":"\ttitle"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"Test Modal\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tcustomId"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"test-modal\""}]]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tcomponents"}],["$","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\tnew"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" Row"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(["}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"new"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" TextInputHi"}],["$","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\tnew"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" Row"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(["}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"new"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" TextInputAge"}],["$","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]"}]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"\trun"}],["$","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":" ModalInteraction"}],["$","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":"`Hi ${"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"interaction"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"."}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"fields"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"getText"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"("}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"name\""}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":")"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"}, you are ${"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"interaction"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"."}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"fields"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"getText"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"("}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"age\""}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":")"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"} years old, and your favorite color is ${"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"interaction"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"."}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"fields"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"getText"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"("}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"color\""}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":")"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"}. You are ${"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"interaction"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"."}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"fields"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"getText"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"("}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"height\""}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":") "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"||"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"not\"} tall.`"}]]}],"\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",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"class"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" TextInputHi"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" extends"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" TextInput"}],["$","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":"\tlabel"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"Tell me about your life\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tcustomId"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"life\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tstyle"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" TextInputStyle.Paragraph"}]]}],"\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":"class"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" TextInputAge"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" extends"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" TextInput"}],["$","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":"\tlabel"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"How old are you?\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tcustomId"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"age\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tstyle"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" TextInputStyle.Short"}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"}"}]}]]}]}]}]],null]}]],["$","div",null,{"className":"mt-auto"}],["$","$L37",null,{"date":"$D2024-09-11T20:53:15.000Z"}],["$","$L38",null,{"items":"$undefined"}]]}]]}],["$","$L39",null,{"header":"$undefined","footer":["$undefined",["$","$2f",null,{"fallback":null,"children":[["$","$L30",null,{"moduleIds":"$3a"}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/classes/modals.mdx"}]]}]],"children":["$","$L32",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L3b",null,{"parallelRouterKey":"children","segmentPath":["children","$3c","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3d",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":["$","$L3e",null,{"search":{"enabled":false},"children":["$","$L3b",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3d",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],["$L3f",null]]]] 3f:[["$","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/even-more.html b/carbon/even-more.html index a72764d1..f9a74246 100644 --- a/carbon/even-more.html +++ b/carbon/even-more.html @@ -1 +1 @@ -
    Carbon

    On this page

    No Headings
    Edit on GitHub
    \ No newline at end of file +
    Carbon

    On this page

    No Headings
    Edit on GitHub
    \ No newline at end of file diff --git a/carbon/even-more.txt b/carbon/even-more.txt index 283d3356..1029bcdf 100644 --- a/carbon/even-more.txt +++ b/carbon/even-more.txt @@ -1,25 +1,25 @@ -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"] 2f:"$Sreact.suspense" -30: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"] -31: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"] -32: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"] -33: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"] -34: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"] -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"],"Footer"] -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"],"Toc"] +30: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"] +31: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"] +32: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"] +33: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"] +34: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"] +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"],"Footer"] +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"],"Toc"] 38:I[1907,[],""] 3a:I[1851,[],""] -3b:I[6225,["808","static/chunks/808-6dceee3f6f2f7cd1.js","185","static/chunks/app/layout-26077b10d25ec523.js"],"RootProvider"] +3b: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"] @@ -54,8 +54,8 @@ f:["$","div",null,"$10"] 25:{"type":"icon","url":"https://github.com/fuma-nama/fumadocs","text":"Github","icon":"$26","external":true} 1e:["$1f","$21","$23","$25"] 2e:[] -37:["../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"] +37:["../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"] 39:["slug","carbon/even-more","c"] -0:["ajd-SQ2r2d7teD8cRVxbO",[[["",{"children":[["slug","carbon/even-more","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"even-more\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/even-more","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":[],"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",["$","$2f",null,{"fallback":null,"children":[["$","$L30",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"]}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/even-more/index.mdx"}]]}]],"children":["$","$L32",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":[["$","$L33",null,{}],[["$","h1",null,{"children":"Even More","className":"text-3xl font-bold"}],null,["$","div",null,{"className":"prose","children":["$undefined",["$","div",null,{"children":[["$","$L15",null,{"href":"/carbon/even-more/contributing","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[null,["$","h3",null,{"className":"mb-1 font-medium","children":"Contributing"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"Learn how to contribute to Carbon."}]]}],["$","$L15",null,{"href":"/carbon/even-more/powered-by-carbon","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[null,["$","h3",null,{"className":"mb-1 font-medium","children":"Powered by Carbon"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"See some cool apps powered by Carbon"}]]}]],"className":"grid grid-cols-1 gap-4 sm:grid-cols-2"}]]}]],["$","div",null,{"className":"mt-auto"}],["$","$L34",null,{"date":"$D2024-09-11T14:49:03.000Z"}],["$","$L35",null,{"items":"$undefined"}]]}]]}],["$","$L36",null,{"header":"$undefined","footer":["$undefined",["$","$2f",null,{"fallback":null,"children":[["$","$L30",null,{"moduleIds":"$37"}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/even-more/index.mdx"}]]}]],"children":["$","$L32",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L38",null,{"parallelRouterKey":"children","segmentPath":["children","$39","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3a",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":["$","$L3b",null,{"search":{"enabled":false},"children":["$","$L38",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3a",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],["$L3c",null]]]] +0:["ob-je4azGQ3_nWAi-Q2wj",[[["",{"children":[["slug","carbon/even-more","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"even-more\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/even-more","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":[],"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",["$","$2f",null,{"fallback":null,"children":[["$","$L30",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"]}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/even-more/index.mdx"}]]}]],"children":["$","$L32",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":[["$","$L33",null,{}],[["$","h1",null,{"children":"Even More","className":"text-3xl font-bold"}],null,["$","div",null,{"className":"prose","children":["$undefined",["$","div",null,{"children":[["$","$L15",null,{"href":"/carbon/even-more/contributing","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[null,["$","h3",null,{"className":"mb-1 font-medium","children":"Contributing"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"Learn how to contribute to Carbon."}]]}],["$","$L15",null,{"href":"/carbon/even-more/powered-by-carbon","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[null,["$","h3",null,{"className":"mb-1 font-medium","children":"Powered by Carbon"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"See some cool apps powered by Carbon"}]]}]],"className":"grid grid-cols-1 gap-4 sm:grid-cols-2"}]]}]],["$","div",null,{"className":"mt-auto"}],["$","$L34",null,{"date":"$D2024-09-11T20:53:15.000Z"}],["$","$L35",null,{"items":"$undefined"}]]}]]}],["$","$L36",null,{"header":"$undefined","footer":["$undefined",["$","$2f",null,{"fallback":null,"children":[["$","$L30",null,{"moduleIds":"$37"}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/even-more/index.mdx"}]]}]],"children":["$","$L32",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L38",null,{"parallelRouterKey":"children","segmentPath":["children","$39","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3a",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":["$","$L3b",null,{"search":{"enabled":false},"children":["$","$L38",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3a",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],["$L3c",null]]]] 3c:[["$","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/even-more/contributing.html b/carbon/even-more/contributing.html index 911fea56..0e3b0d60 100644 --- a/carbon/even-more/contributing.html +++ b/carbon/even-more/contributing.html @@ -1,4 +1,4 @@ -
    Carbon

    Contributing

    Learn how to contribute to Carbon.

    First off, thanks for taking the time to contribute! ❤️

    +
    Carbon

    Contributing

    Learn how to contribute to Carbon.

    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:

      @@ -15,4 +15,4 @@

    Last updated on

    On this page

    Edit on GitHub
    \ No newline at end of file +

    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.

    Last updated on

    On this page

    Edit on GitHub
    \ No newline at end of file diff --git a/carbon/even-more/contributing.txt b/carbon/even-more/contributing.txt index 236dbb50..9db69afc 100644 --- a/carbon/even-more/contributing.txt +++ b/carbon/even-more/contributing.txt @@ -1,25 +1,25 @@ -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"] 30:"$Sreact.suspense" -31: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"] -32: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"] -33: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"] -34: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"] -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"],"LastUpdate"] -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"],"Footer"] -37: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"] +31: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"] +32: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"] +33: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"] +34: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"] +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"],"LastUpdate"] +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"],"Footer"] +37: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"] 39:I[1907,[],""] 3b:I[1851,[],""] -3c:I[6225,["808","static/chunks/808-6dceee3f6f2f7cd1.js","185","static/chunks/app/layout-26077b10d25ec523.js"],"RootProvider"] +3c: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"] @@ -55,8 +55,8 @@ f:["$","div",null,"$10"] 1e:["$1f","$21","$23","$25"] 2f:{"title":"Contributing Guidelines","url":"#contributing-guidelines","depth":2} 2e:["$2f"] -38:["../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"] +38:["../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"] 3a:["slug","carbon/even-more/contributing","c"] -0:["ajd-SQ2r2d7teD8cRVxbO",[[["",{"children":[["slug","carbon/even-more/contributing","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"even-more\",\"contributing\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/even-more/contributing","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":"Contributing Guidelines","url":"#contributing-guidelines","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",["$","$30",null,{"fallback":null,"children":[["$","$L31",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"]}],["$","$L32",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/even-more/contributing.mdx"}]]}]],"children":["$","$L33",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":[["$","$L34",null,{}],[["$","h1",null,{"children":"Contributing","className":"text-3xl font-bold"}],["$","p",null,{"children":"Learn how to contribute to Carbon.","className":"mb-8 text-lg text-fd-muted-foreground"}],["$","div",null,{"className":"prose","children":[[["$","p",null,{"children":"First off, thanks for taking the time to contribute! ❤️"}],"\n",["$","p",null,{"children":"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."}],"\n",["$","p",null,{"children":"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:"}],"\n",["$","ul",null,{"children":["\n",["$","li",null,{"children":"Star us on GitHub"}],"\n",["$","li",null,{"children":["$","a",null,{"href":"https://github.com/sponsors/buape","rel":"noreferrer noopener","target":"_blank","children":"Sponsor us"}]}],"\n",["$","li",null,{"children":"Refer this project in your project's readme"}],"\n",["$","li",null,{"children":"Tell others about us!"}],"\n"]}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"contributing-guidelines","children":[["$","a",null,{"href":"#contributing-guidelines","className":"peer","children":"Contributing Guidelines"}],["$","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",["$","ul",null,{"children":["\n",["$","li",null,{"children":"All contributions must be made in the form of a pull request."}],"\n",["$","li",null,{"children":"All pull requests must be reviewed and approved by at least one maintainer before they can be merged."}],"\n",["$","li",null,{"children":["All pull requests must be made to the ",["$","code",null,{"children":"main"}]," branch."]}],"\n",["$","li",null,{"children":"All pull requests must pass the CI checks."}],"\n",["$","li",null,{"children":"All pull requests must have a clear and concise description of the changes made, and how they have been tested."}],"\n"]}],"\n",["$","p",null,{"children":"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."}]],null]}]],["$","div",null,{"className":"mt-auto"}],["$","$L35",null,{"date":"$D2024-09-11T14:49:03.000Z"}],["$","$L36",null,{"items":"$undefined"}]]}]]}],["$","$L37",null,{"header":"$undefined","footer":["$undefined",["$","$30",null,{"fallback":null,"children":[["$","$L31",null,{"moduleIds":"$38"}],["$","$L32",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/even-more/contributing.mdx"}]]}]],"children":["$","$L33",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L39",null,{"parallelRouterKey":"children","segmentPath":["children","$3a","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3b",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":["$","$L3c",null,{"search":{"enabled":false},"children":["$","$L39",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3b",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],["$L3d",null]]]] +0:["ob-je4azGQ3_nWAi-Q2wj",[[["",{"children":[["slug","carbon/even-more/contributing","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"even-more\",\"contributing\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/even-more/contributing","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":"Contributing Guidelines","url":"#contributing-guidelines","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",["$","$30",null,{"fallback":null,"children":[["$","$L31",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"]}],["$","$L32",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/even-more/contributing.mdx"}]]}]],"children":["$","$L33",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":[["$","$L34",null,{}],[["$","h1",null,{"children":"Contributing","className":"text-3xl font-bold"}],["$","p",null,{"children":"Learn how to contribute to Carbon.","className":"mb-8 text-lg text-fd-muted-foreground"}],["$","div",null,{"className":"prose","children":[[["$","p",null,{"children":"First off, thanks for taking the time to contribute! ❤️"}],"\n",["$","p",null,{"children":"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."}],"\n",["$","p",null,{"children":"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:"}],"\n",["$","ul",null,{"children":["\n",["$","li",null,{"children":"Star us on GitHub"}],"\n",["$","li",null,{"children":["$","a",null,{"href":"https://github.com/sponsors/buape","rel":"noreferrer noopener","target":"_blank","children":"Sponsor us"}]}],"\n",["$","li",null,{"children":"Refer this project in your project's readme"}],"\n",["$","li",null,{"children":"Tell others about us!"}],"\n"]}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"contributing-guidelines","children":[["$","a",null,{"href":"#contributing-guidelines","className":"peer","children":"Contributing Guidelines"}],["$","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",["$","ul",null,{"children":["\n",["$","li",null,{"children":"All contributions must be made in the form of a pull request."}],"\n",["$","li",null,{"children":"All pull requests must be reviewed and approved by at least one maintainer before they can be merged."}],"\n",["$","li",null,{"children":["All pull requests must be made to the ",["$","code",null,{"children":"main"}]," branch."]}],"\n",["$","li",null,{"children":"All pull requests must pass the CI checks."}],"\n",["$","li",null,{"children":"All pull requests must have a clear and concise description of the changes made, and how they have been tested."}],"\n"]}],"\n",["$","p",null,{"children":"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."}]],null]}]],["$","div",null,{"className":"mt-auto"}],["$","$L35",null,{"date":"$D2024-09-11T20:53:15.000Z"}],["$","$L36",null,{"items":"$undefined"}]]}]]}],["$","$L37",null,{"header":"$undefined","footer":["$undefined",["$","$30",null,{"fallback":null,"children":[["$","$L31",null,{"moduleIds":"$38"}],["$","$L32",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/even-more/contributing.mdx"}]]}]],"children":["$","$L33",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L39",null,{"parallelRouterKey":"children","segmentPath":["children","$3a","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3b",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":["$","$L3c",null,{"search":{"enabled":false},"children":["$","$L39",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3b",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],["$L3d",null]]]] 3d:[["$","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/even-more/powered-by-carbon.html b/carbon/even-more/powered-by-carbon.html index c636ffb5..abaa766e 100644 --- a/carbon/even-more/powered-by-carbon.html +++ b/carbon/even-more/powered-by-carbon.html @@ -1 +1 @@ -
    Carbon

    On this page

    No Headings
    Edit on GitHub
    \ No newline at end of file +
    Carbon

    On this page

    No Headings
    Edit on GitHub
    \ No newline at end of file diff --git a/carbon/even-more/powered-by-carbon.txt b/carbon/even-more/powered-by-carbon.txt index 320de7a3..a5279ff2 100644 --- a/carbon/even-more/powered-by-carbon.txt +++ b/carbon/even-more/powered-by-carbon.txt @@ -1,25 +1,25 @@ -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"] 2f:"$Sreact.suspense" -30: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"] -31: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"] -32: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"] -33: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"] -34: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"] -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"],"Footer"] -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"],"Toc"] +30: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"] +31: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"] +32: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"] +33: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"] +34: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"] +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"],"Footer"] +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"],"Toc"] 38:I[1907,[],""] 3a:I[1851,[],""] -3b:I[6225,["808","static/chunks/808-6dceee3f6f2f7cd1.js","185","static/chunks/app/layout-26077b10d25ec523.js"],"RootProvider"] +3b: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"] @@ -54,8 +54,8 @@ f:["$","div",null,"$10"] 25:{"type":"icon","url":"https://github.com/fuma-nama/fumadocs","text":"Github","icon":"$26","external":true} 1e:["$1f","$21","$23","$25"] 2e:[] -37:["../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"] +37:["../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"] 39:["slug","carbon/even-more/powered-by-carbon","c"] -0:["ajd-SQ2r2d7teD8cRVxbO",[[["",{"children":[["slug","carbon/even-more/powered-by-carbon","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"even-more\",\"powered-by-carbon\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/even-more/powered-by-carbon","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":[],"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",["$","$2f",null,{"fallback":null,"children":[["$","$L30",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"]}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/even-more/powered-by-carbon.mdx"}]]}]],"children":["$","$L32",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":[["$","$L33",null,{}],[["$","h1",null,{"children":"Powered by Carbon","className":"text-3xl font-bold"}],["$","p",null,{"children":"See some cool apps powered by Carbon","className":"mb-8 text-lg text-fd-muted-foreground"}],["$","div",null,{"className":"prose","children":[["$","p",null,{"children":"Coming soon!"}],null]}]],["$","div",null,{"className":"mt-auto"}],["$","$L34",null,{"date":"$D2024-09-11T14:49:03.000Z"}],["$","$L35",null,{"items":"$undefined"}]]}]]}],["$","$L36",null,{"header":"$undefined","footer":["$undefined",["$","$2f",null,{"fallback":null,"children":[["$","$L30",null,{"moduleIds":"$37"}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/even-more/powered-by-carbon.mdx"}]]}]],"children":["$","$L32",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L38",null,{"parallelRouterKey":"children","segmentPath":["children","$39","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3a",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":["$","$L3b",null,{"search":{"enabled":false},"children":["$","$L38",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3a",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],["$L3c",null]]]] +0:["ob-je4azGQ3_nWAi-Q2wj",[[["",{"children":[["slug","carbon/even-more/powered-by-carbon","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"even-more\",\"powered-by-carbon\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/even-more/powered-by-carbon","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":[],"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",["$","$2f",null,{"fallback":null,"children":[["$","$L30",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"]}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/even-more/powered-by-carbon.mdx"}]]}]],"children":["$","$L32",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":[["$","$L33",null,{}],[["$","h1",null,{"children":"Powered by Carbon","className":"text-3xl font-bold"}],["$","p",null,{"children":"See some cool apps powered by Carbon","className":"mb-8 text-lg text-fd-muted-foreground"}],["$","div",null,{"className":"prose","children":[["$","p",null,{"children":"Coming soon!"}],null]}]],["$","div",null,{"className":"mt-auto"}],["$","$L34",null,{"date":"$D2024-09-11T20:53:15.000Z"}],["$","$L35",null,{"items":"$undefined"}]]}]]}],["$","$L36",null,{"header":"$undefined","footer":["$undefined",["$","$2f",null,{"fallback":null,"children":[["$","$L30",null,{"moduleIds":"$37"}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/even-more/powered-by-carbon.mdx"}]]}]],"children":["$","$L32",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L38",null,{"parallelRouterKey":"children","segmentPath":["children","$39","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3a",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":["$","$L3b",null,{"search":{"enabled":false},"children":["$","$L38",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3a",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],["$L3c",null]]]] 3c:[["$","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/getting-started.html b/carbon/getting-started.html index 779ac9b9..db0fbab6 100644 --- a/carbon/getting-started.html +++ b/carbon/getting-started.html @@ -1 +1,13 @@ -
    Carbon

    On this page

    No Headings
    Edit on GitHub
    \ No newline at end of file +
    Carbon

    Getting Started

    Getting started with Carbon

    Which runtime should I use?

    +

    Cloudflare Workers

    +

    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

    +

    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

    +

    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

    +

    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.

    +

    Other Runtimes

    +

    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.

    +

    Ready to get started?

    +

    Choose your runtime, and start building your bot!

    Last updated on

    On this page

    Edit on GitHub
    \ No newline at end of file diff --git a/carbon/getting-started.txt b/carbon/getting-started.txt index 0d6aafee..3b66f054 100644 --- a/carbon/getting-started.txt +++ b/carbon/getting-started.txt @@ -1,25 +1,25 @@ -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"] -2f:"$Sreact.suspense" -30: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"] -31: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"] -32: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"] -33: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"] -34: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"] -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"],"Footer"] -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"],"Toc"] -38:I[1907,[],""] -3a:I[1851,[],""] -3b:I[6225,["808","static/chunks/808-6dceee3f6f2f7cd1.js","185","static/chunks/app/layout-26077b10d25ec523.js"],"RootProvider"] +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,["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[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"] +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"],"Footer"] +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"],"Toc"] +3f:I[1907,[],""] +41:I[1851,[],""] +42: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"] @@ -53,9 +53,16 @@ f:["$","div",null,"$10"] 26:["$","svg",null,"$27"] 25:{"type":"icon","url":"https://github.com/fuma-nama/fumadocs","text":"Github","icon":"$26","external":true} 1e:["$1f","$21","$23","$25"] -2e:[] -37:["../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"] -39:["slug","carbon/getting-started","c"] -0:["ajd-SQ2r2d7teD8cRVxbO",[[["",{"children":[["slug","carbon/getting-started","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"getting-started\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/getting-started","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":[],"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",["$","$2f",null,{"fallback":null,"children":[["$","$L30",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"]}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/getting-started/index.mdx"}]]}]],"children":["$","$L32",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":[["$","$L33",null,{}],[["$","h1",null,{"children":"Getting Started","className":"text-3xl font-bold"}],["$","p",null,{"children":"Getting started with Carbon","className":"mb-8 text-lg text-fd-muted-foreground"}],["$","div",null,{"className":"prose","children":["$undefined",["$","div",null,{"children":[["$","$L15",null,{"href":"/carbon/getting-started/bun","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[null,["$","h3",null,{"className":"mb-1 font-medium","children":"Bun"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"No Description"}]]}],["$","$L15",null,{"href":"/carbon/getting-started/cloudflare-workers","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[null,["$","h3",null,{"className":"mb-1 font-medium","children":"Cloudflare Workers"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"No Description"}]]}],["$","$L15",null,{"href":"/carbon/getting-started/nextjs","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[null,["$","h3",null,{"className":"mb-1 font-medium","children":"Next.js"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"No Description"}]]}],["$","$L15",null,{"href":"/carbon/getting-started/nodejs","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[null,["$","h3",null,{"className":"mb-1 font-medium","children":"Node.js"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"No Description"}]]}]],"className":"grid grid-cols-1 gap-4 sm:grid-cols-2"}]]}]],["$","div",null,{"className":"mt-auto"}],["$","$L34",null,{"date":"$D2024-09-11T14:49:03.000Z"}],["$","$L35",null,{"items":"$undefined"}]]}]]}],["$","$L36",null,{"header":"$undefined","footer":["$undefined",["$","$2f",null,{"fallback":null,"children":[["$","$L30",null,{"moduleIds":"$37"}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/getting-started/index.mdx"}]]}]],"children":["$","$L32",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L38",null,{"parallelRouterKey":"children","segmentPath":["children","$39","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3a",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":["$","$L3b",null,{"search":{"enabled":false},"children":["$","$L38",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3a",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],["$L3c",null]]]] -3c:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","meta","2",{"name":"next-size-adjust"}]] +2f:{"title":"Which runtime should I use?","url":"#which-runtime-should-i-use","depth":2} +30:{"title":"Cloudflare Workers","url":"#cloudflare-workers","depth":2} +31:{"title":"Node.js","url":"#nodejs","depth":2} +32:{"title":"Next.js","url":"#nextjs","depth":2} +33:{"title":"Bun","url":"#bun","depth":2} +34:{"title":"Other Runtimes","url":"#other-runtimes","depth":2} +35:{"title":"Ready to get started?","url":"#ready-to-get-started","depth":2} +2e:["$2f","$30","$31","$32","$33","$34","$35"] +3e:["../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"] +40:["slug","carbon/getting-started","c"] +0:["ob-je4azGQ3_nWAi-Q2wj",[[["",{"children":[["slug","carbon/getting-started","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"getting-started\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/getting-started","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":"Which runtime should I use?","url":"#which-runtime-should-i-use","depth":2},{"title":"Cloudflare Workers","url":"#cloudflare-workers","depth":2},{"title":"Node.js","url":"#nodejs","depth":2},{"title":"Next.js","url":"#nextjs","depth":2},{"title":"Bun","url":"#bun","depth":2},{"title":"Other Runtimes","url":"#other-runtimes","depth":2},{"title":"Ready to get started?","url":"#ready-to-get-started","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/getting-started/index.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":"Getting Started","className":"text-3xl font-bold"}],["$","p",null,{"children":"Getting started with Carbon","className":"mb-8 text-lg text-fd-muted-foreground"}],["$","div",null,{"className":"prose","children":[[["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"which-runtime-should-i-use","children":[["$","a",null,{"href":"#which-runtime-should-i-use","className":"peer","children":"Which runtime should I use?"}],["$","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",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"cloudflare-workers","children":[["$","a",null,{"href":"#cloudflare-workers","className":"peer","children":"Cloudflare Workers"}],["$","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":["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 ",["$","code",null,{"children":"handle"}]," method on the client, and you're good to go!"]}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"nodejs","children":[["$","a",null,{"href":"#nodejs","className":"peer","children":"Node.js"}],["$","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":["Node.js is a great choice if you want a bot that can run on any server. You simply install the ",["$","code",null,{"children":"@buape/carbon-nodejs"}]," package, and use the server provided there!"]}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"nextjs","children":[["$","a",null,{"href":"#nextjs","className":"peer","children":"Next.js"}],["$","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":"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."}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"bun","children":[["$","a",null,{"href":"#bun","className":"peer","children":"Bun"}],["$","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":"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."}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"other-runtimes","children":[["$","a",null,{"href":"#other-runtimes","className":"peer","children":"Other Runtimes"}],["$","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":["If you want to use Carbon on a server that is not one of the above, you can use the ",["$","code",null,{"children":"handle"}]," method on the client. Check out the ",["$","$L15",null,{"href":"/carbon/helpful-guides/custom-router","prefetch":"$undefined","replace":"$undefined","children":"Custom Router"}]," guide for more information on how to use it."]}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"ready-to-get-started","children":[["$","a",null,{"href":"#ready-to-get-started","className":"peer","children":"Ready to get started?"}],["$","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":"Choose your runtime, and start building your bot!"}]],["$","div",null,{"children":[["$","$L15",null,{"href":"/carbon/getting-started/bun","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[null,["$","h3",null,{"className":"mb-1 font-medium","children":"Node.js"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"Getting started with Carbon on Node.js"}]]}],["$","$L15",null,{"href":"/carbon/getting-started/cloudflare-workers","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[null,["$","h3",null,{"className":"mb-1 font-medium","children":"Cloudflare Workers"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"Getting started with Carbon on Cloudflare Workers"}]]}],["$","$L15",null,{"href":"/carbon/getting-started/nextjs","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[null,["$","h3",null,{"className":"mb-1 font-medium","children":"Next.js"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"Getting started with Carbon on Next.js"}]]}],["$","$L15",null,{"href":"/carbon/getting-started/nodejs","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[null,["$","h3",null,{"className":"mb-1 font-medium","children":"Node.js"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"Getting started with Carbon on Node.js"}]]}]],"className":"grid grid-cols-1 gap-4 sm:grid-cols-2"}]]}]],["$","div",null,{"className":"mt-auto"}],["$","$L3b",null,{"date":"$D2024-09-11T20:53:15.000Z"}],["$","$L3c",null,{"items":"$undefined"}]]}]]}],["$","$L3d",null,{"header":"$undefined","footer":["$undefined",["$","$36",null,{"fallback":null,"children":[["$","$L37",null,{"moduleIds":"$3e"}],["$","$L38",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/getting-started/index.mdx"}]]}]],"children":["$","$L39",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L3f",null,{"parallelRouterKey":"children","segmentPath":["children","$40","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L41",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":["$","$L42",null,{"search":{"enabled":false},"children":["$","$L3f",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L41",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],["$L43",null]]]] +43:[["$","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/getting-started/bun.html b/carbon/getting-started/bun.html index 9cf14338..1c2587e0 100644 --- a/carbon/getting-started/bun.html +++ b/carbon/getting-started/bun.html @@ -1 +1,74 @@ -
    Carbon

    On this page

    No Headings
    Edit on GitHub
    \ No newline at end of file +
    Carbon

    Node.js

    Getting started with Carbon on Node.js

    File Structure

    +
    index.ts
    ping.ts
    .env
    package.json
    +

    Getting Started

    +

    Installation

    +

    First, we need to install Carbon and its NodeJS package, as well as env-cmd to help us set our environment variables, and the typings for node.

    +
    bun add @buape/carbon env-cmd
    +

    Setting up your .env

    +

    Let's start by creating your .env file, which will contain the secrets and tokens for your app.

    +
    .env
    CLIENT_ID=""
    +PUBLIC_KEY=""
    +DISCORD_TOKEN=""
    +

    Now, you need to get your client ID, public key, and token, and fill those out there. You can learn more about these here.

    +

    Creating a Client

    +

    Now let's start your index.ts file. It will be the entry point for your worker, and the main file that will be executed when your worker is deployed.

    +

    First, we need to import the Carbon client.

    +
    // Import the Carbon client
    +import { Client, ClientMode } from "@buape/carbon"
    +

    Now, let's make our Client.

    +
    const client = new Client(
    +	{
    +		clientId: process.env.CLIENT_ID,
    +		publicKey: process.env.PUBLIC_KEY,
    +		token: process.env.DISCORD_TOKEN,
    +		mode: ClientMode.NodeJS,
    +		port: 3000
    +	},
    +	[] // We'll add commands here later
    +)
    +

    Adding Commands

    +

    Now that we have our client, we can start adding commands to it. Let's create a new file called ping.ts in the src/commands folder.

    +
    src/commands/ping.ts
    import { Command, type CommandInteraction } from "@buape/carbon"
    + 
    +export default class PingCommand extends Command {
    +	name = "ping"
    +	description = "A simple ping command"
    +	defer = false
    + 
    +	async run(interaction: CommandInteraction) {
    +		return interaction.reply({
    +			content: "Pong!"
    +		})
    +	}
    +}
    +

    This is a basic command, you set the name and description, and then add a run function that will be called when the command is used.

    +

    Now, let's add this command to our client.

    +
    src/index.ts
    import { PingCommand } from "./commands/ping.js"
    +const client = new Client(
    +	{
    +		clientId: env.CLIENT_ID,
    +		publicKey: env.PUBLIC_KEY,
    +		token: env.DISCORD_TOKEN,
    +		mode: ClientMode.NodeJS,
    +	},
    +	[new PingCommand()]
    +)
    +

    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.

    +

    Running

    +

    To run your bot, let's add some scripts to your package.json file.

    +

    Let's also add some scripts to our package.json file.

    +
    package.json
    {
    +	// ...
    + 
    +	"scripts": {
    +		"start": "bun run index.ts"
    +	},
    + 
    +	// ...
    +}
    +

    Then you can use this command:

    +
    +

    This will compile your code, and run your bot with the environment variables from your .env file.

    +

    Now you'll need to setup your bot on the Discord Developer Portal. Take a look at the following cards for more information.

    +

    Last updated on

    On this page

    Edit on GitHub
    \ No newline at end of file diff --git a/carbon/getting-started/bun.txt b/carbon/getting-started/bun.txt index 8b187223..877b618e 100644 --- a/carbon/getting-started/bun.txt +++ b/carbon/getting-started/bun.txt @@ -1,25 +1,32 @@ -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"] -2f:"$Sreact.suspense" -30: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"] -31: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"] -32: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"] -33: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"] -34: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"] -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"],"Footer"] -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"],"Toc"] -38:I[1907,[],""] -3a:I[1851,[],""] -3b:I[6225,["808","static/chunks/808-6dceee3f6f2f7cd1.js","185","static/chunks/app/layout-26077b10d25ec523.js"],"RootProvider"] +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,["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[4772,["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"],"Files"] +3c:I[4772,["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"],"Folder"] +3d:I[4772,["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"],"File"] +3e: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"] +3f: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"] +40: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"] +41: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"] +45: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"] +46: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"] +47: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"] +49:I[1907,[],""] +4b:I[1851,[],""] +4c: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"] @@ -53,9 +60,16 @@ f:["$","div",null,"$10"] 26:["$","svg",null,"$27"] 25:{"type":"icon","url":"https://github.com/fuma-nama/fumadocs","text":"Github","icon":"$26","external":true} 1e:["$1f","$21","$23","$25"] -2e:[] -37:["../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"] -39:["slug","carbon/getting-started/bun","c"] -0:["ajd-SQ2r2d7teD8cRVxbO",[[["",{"children":[["slug","carbon/getting-started/bun","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"getting-started\",\"bun\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/getting-started/bun","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":[],"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",["$","$2f",null,{"fallback":null,"children":[["$","$L30",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"]}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/getting-started/bun.mdx"}]]}]],"children":["$","$L32",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":[["$","$L33",null,{}],[["$","h1",null,{"children":"Bun","className":"text-3xl font-bold"}],null,["$","div",null,{"className":"prose","children":[["$","p",null,{"children":"Coming soon!"}],null]}]],["$","div",null,{"className":"mt-auto"}],["$","$L34",null,{"date":"$D2024-09-11T14:49:03.000Z"}],["$","$L35",null,{"items":"$undefined"}]]}]]}],["$","$L36",null,{"header":"$undefined","footer":["$undefined",["$","$2f",null,{"fallback":null,"children":[["$","$L30",null,{"moduleIds":"$37"}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/getting-started/bun.mdx"}]]}]],"children":["$","$L32",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L38",null,{"parallelRouterKey":"children","segmentPath":["children","$39","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3a",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":["$","$L3b",null,{"search":{"enabled":false},"children":["$","$L38",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3a",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],["$L3c",null]]]] -3c:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","meta","2",{"name":"next-size-adjust"}]] +2f:{"title":"File Structure","url":"#file-structure","depth":2} +30:{"title":"Getting Started","url":"#getting-started","depth":2} +31:{"title":"Installation","url":"#installation","depth":3} +32:{"title":"Setting up your .env","url":"#setting-up-your-env","depth":3} +33:{"title":"Creating a Client","url":"#creating-a-client","depth":3} +34:{"title":"Adding Commands","url":"#adding-commands","depth":3} +35:{"title":"Running","url":"#running","depth":2} +2e:["$2f","$30","$31","$32","$33","$34","$35"] +42:T4dc,43:T4dc,44:T4dc,48:["../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"] +4a:["slug","carbon/getting-started/bun","c"] +0:["ob-je4azGQ3_nWAi-Q2wj",[[["",{"children":[["slug","carbon/getting-started/bun","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"getting-started\",\"bun\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/getting-started/bun","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":"File Structure","url":"#file-structure","depth":2},{"title":"Getting Started","url":"#getting-started","depth":2},{"title":"Installation","url":"#installation","depth":3},{"title":"Setting up your .env","url":"#setting-up-your-env","depth":3},{"title":"Creating a Client","url":"#creating-a-client","depth":3},{"title":"Adding Commands","url":"#adding-commands","depth":3},{"title":"Running","url":"#running","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/getting-started/bun.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":"Node.js","className":"text-3xl font-bold"}],["$","p",null,{"children":"Getting started with Carbon on Node.js","className":"mb-8 text-lg text-fd-muted-foreground"}],["$","div",null,{"className":"prose","children":[[["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"file-structure","children":[["$","a",null,{"href":"#file-structure","className":"peer","children":"File Structure"}],["$","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",["$","$L3b",null,{"children":[["$","$L3c",null,{"name":"src","defaultOpen":true,"children":[["$","$L3d",null,{"name":"index.ts"}],["$","$L3c",null,{"name":"commands","defaultOpen":true,"children":["$","$L3d",null,{"name":"ping.ts"}]}]]}],["$","$L3d",null,{"name":".env"}],["$","$L3d",null,{"name":"package.json"}]]}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"getting-started","children":[["$","a",null,{"href":"#getting-started","className":"peer","children":"Getting Started"}],["$","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",["$","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",["$","p",null,{"children":"First, we need to install Carbon and its NodeJS package, as well as env-cmd to help us set our environment variables, and the typings for node."}],"\n",["$","$L3e",null,{"items":["bun"],"id":"package-manager","children":[["$","$L3f","bun",{"value":"bun","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":"bun add @buape/carbon env-cmd"}]}]}]]}],"\n",["$","h3",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"setting-up-your-env","children":[["$","a",null,{"href":"#setting-up-your-env","className":"peer","children":"Setting up your .env"}],["$","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":["Let's start by creating your ",["$","code",null,{"children":".env"}]," file, which will contain the secrets and tokens for your app."]}],"\n",["$","$L40",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":".env","icon":"","children":["$","$L41",null,{"children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":["$","span",null,{"children":"CLIENT_ID=\"\""}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"children":"PUBLIC_KEY=\"\""}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"children":"DISCORD_TOKEN=\"\""}]}]]}]}]}],"\n",["$","p",null,{"children":["Now, you need to get your client ID, public key, and token, and fill those out there. ",["$","$L15",null,{"href":"/carbon/developer-portal/create-a-bot","prefetch":"$undefined","replace":"$undefined","children":"You can learn more about these here."}]]}],"\n",["$","h3",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"creating-a-client","children":[["$","a",null,{"href":"#creating-a-client","className":"peer","children":"Creating a Client"}],["$","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":["Now let's start your ",["$","code",null,{"children":"index.ts"}]," file. It will be the entry point for your worker, and the main file that will be executed when your worker is deployed."]}],"\n",["$","p",null,{"children":"First, we need to import the Carbon client."}],"\n",["$","$L40",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","icon":"$42","children":["$","$L41",null,{"children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#6A737D","--shiki-dark":"#6A737D"},"children":"// Import the Carbon client"}]}],"\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":" { Client, ClientMode } "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"from"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"@buape/carbon\""}]]}]]}]}]}],"\n",["$","p",null,{"children":"Now, let's make our Client."}],"\n",["$","$L40",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","icon":"","children":["$","$L41",null,{"children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":["$","span",null,{"children":"const client = new Client("}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"children":"\t{"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"children":"\t\tclientId: process.env.CLIENT_ID,"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"children":"\t\tpublicKey: process.env.PUBLIC_KEY,"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"children":"\t\ttoken: process.env.DISCORD_TOKEN,"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"children":"\t\tmode: ClientMode.NodeJS,"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"children":"\t\tport: 3000"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"children":"\t},"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"children":"\t[] // We'll add commands here later"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"children":")"}]}]]}]}]}],"\n",["$","h3",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"adding-commands","children":[["$","a",null,{"href":"#adding-commands","className":"peer","children":"Adding 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":["Now that we have our client, we can start adding commands to it. Let's create a new file called ",["$","code",null,{"children":"ping.ts"}]," in the ",["$","code",null,{"children":"src/commands"}]," folder."]}],"\n",["$","$L40",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":"$43","children":["$","$L41",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":[["$","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":"\"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":"This is a basic command, you set the name and description, and then add a run function that will be called when the command is used."}],"\n",["$","p",null,{"children":"Now, let's add this command to our client."}],"\n",["$","$L40",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":"$44","children":["$","$L41",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":" { PingCommand } "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"from"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"./commands/ping.js\""}]]}],"\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":"\t{"}]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t\tclientId: env."}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"CLIENT_ID"}],["$","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\tpublicKey: env."}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"PUBLIC_KEY"}],["$","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\ttoken: env."}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"DISCORD_TOKEN"}],["$","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\tmode: ClientMode.NodeJS,"}]}],"\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":"\t["}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"new"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" PingCommand"}],["$","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":")"}]}]]}]}]}],"\n",["$","p",null,{"children":["And that's it! You now have a basic Carbon bot running on Bun.\nIf you want to add more commands, just create more classes in the ",["$","code",null,{"children":"src/commands"}]," folder, and add them to the client in the ",["$","code",null,{"children":"src/index.ts"}]," file."]}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"running","children":[["$","a",null,{"href":"#running","className":"peer","children":"Running"}],["$","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 run your bot, let's add some scripts to your ",["$","code",null,{"children":"package.json"}]," file."]}],"\n",["$","p",null,{"children":["Let's also add some scripts to our ",["$","code",null,{"children":"package.json"}]," file."]}],"\n",["$","$L40",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":"package.json","icon":"","children":["$","$L41",null,{"children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"{"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#6A737D","--shiki-dark":"#6A737D"},"children":"\t// ..."}]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"\t\"scripts\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":": {"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"\t\t\"start\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":": "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"bun run index.ts\""}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t},"}]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#6A737D","--shiki-dark":"#6A737D"},"children":"\t// ..."}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"}"}]}]]}]}]}],"\n",["$","p",null,{"children":"Then you can use this command:"}],"\n",["$","$L3e",null,{"items":["bun"],"id":"package-manager","children":[["$","$L3f","bun",{"value":"bun","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":""}]}]}]]}],"\n",["$","p",null,{"children":["This will compile your code, and run your bot with the environment variables from your ",["$","code",null,{"children":".env"}]," file."]}],"\n",["$","p",null,{"children":["Now you'll need to setup your bot on the ",["$","a",null,{"href":"https://discord.com/developers/applications","rel":"noreferrer noopener","target":"_blank","children":"Discord Developer Portal"}],". Take a look at the following cards for more information."]}],"\n",["$","div",null,{"children":[["$","$L15",null,{"href":"/","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[["$","div",null,{"className":"mb-2 w-fit rounded-md border bg-fd-muted p-2 text-fd-muted-foreground [&_svg]:size-4","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-layout-dashboard","children":[["$","rect","10lvy0",{"width":"7","height":"9","x":"3","y":"3","rx":"1"}],["$","rect","16une8",{"width":"7","height":"5","x":"14","y":"3","rx":"1"}],["$","rect","1hutg5",{"width":"7","height":"9","x":"14","y":"12","rx":"1"}],["$","rect","ldoo1y",{"width":"7","height":"5","x":"3","y":"16","rx":"1"}],"$undefined"]}]}],["$","h3",null,{"className":"mb-1 font-medium","children":"Discord Developer Portal"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"Learn how to setup your bot on the Discord Developer Portal."}]]}],["$","$L15",null,{"href":"/","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[["$","div",null,{"className":"mb-2 w-fit rounded-md border bg-fd-muted p-2 text-fd-muted-foreground [&_svg]:size-4","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-folder-git","children":[["$","circle","1c1ljs",{"cx":"12","cy":"13","r":"2"}],["$","path","1kt360",{"d":"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"}],["$","path","1dgedf",{"d":"M14 13h3"}],["$","path","1pygq7",{"d":"M7 13h3"}],"$undefined"]}]}],["$","h3",null,{"className":"mb-1 font-medium","children":"Example Project"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"See a full example project for Carbon on NodeJS."}]]}]],"className":"grid grid-cols-1 gap-4 sm:grid-cols-2"}]],null]}]],["$","div",null,{"className":"mt-auto"}],["$","$L45",null,{"date":"$D2024-09-11T20:53:15.000Z"}],["$","$L46",null,{"items":"$undefined"}]]}]]}],["$","$L47",null,{"header":"$undefined","footer":["$undefined",["$","$36",null,{"fallback":null,"children":[["$","$L37",null,{"moduleIds":"$48"}],["$","$L38",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/getting-started/bun.mdx"}]]}]],"children":["$","$L39",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L49",null,{"parallelRouterKey":"children","segmentPath":["children","$4a","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4b",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":["$","$L4c",null,{"search":{"enabled":false},"children":["$","$L49",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4b",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],["$L4d",null]]]] +4d:[["$","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/getting-started/cloudflare-workers.html b/carbon/getting-started/cloudflare-workers.html index badf1d47..77e16888 100644 --- a/carbon/getting-started/cloudflare-workers.html +++ b/carbon/getting-started/cloudflare-workers.html @@ -1,12 +1,12 @@ -
    Carbon

    Cloudflare Workers

    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.

    +
    Carbon

    Cloudflare Workers

    Getting started with Carbon on Cloudflare Workers

    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.

    File Structure

    index.ts
    ping.ts
    package.json
    wrangler.toml

    Getting Started

    Installation

    First, we need to install Carbon, as well as Wrangler to help us deploy our worker.

    -
    pnpm add @buape/carbon wrangler
    +
    pnpm add @buape/carbon wrangler

    Let's also add @cloudflare/workers-types, so that we can use the ExecutionContext type.

    -
    pnpm add @cloudflare/workers-types -D
    +
    pnpm add @cloudflare/workers-types -D

    Setting up your Worker

    Let's start by creating your wrangler.toml file, which will contain the configuration for your worker.

    wrangler.toml
    name = "my-carbon-worker"
    @@ -14,9 +14,9 @@ 

    compatibility_date = "2024-09-03"

    Now, you need to get your client ID, public key, and token. You can learn more about these here.

    Let's add these to your worker:

    -
    pnpm dlx wrangler secret put CLIENT_ID
    +
    pnpm dlx wrangler secret put CLIENT_ID
     pnpm dlx wrangler secret put PUBLIC_KEY
    -pnpm dlx wrangler secret put DISCORD_TOKEN
    +pnpm dlx wrangler secret put DISCORD_TOKEN

    After each of these commands, you'l be prompted to enter the value.

    Creating a Client

    Now let's start your index.ts file. It will be the entry point for your worker, and the main file that will be executed when your worker is deployed.

    @@ -106,8 +106,8 @@

    // ... }

    Then you can use these like this:

    -
    pnpm run build
    -pnpm run tail
    +
    pnpm run build
    +pnpm run tail

    This will push your code to Cloudflare, and deploy your worker. You can also use the tail command to see the logs from your worker.

    Now you'll need to setup your bot on the Discord Developer Portal. Take a look at the following cards for more information.

    -

    Last updated on

    On this page

    Edit on GitHub
    \ No newline at end of file +

    Last updated on

    On this page

    Edit on GitHub
    \ No newline at end of file diff --git a/carbon/getting-started/cloudflare-workers.txt b/carbon/getting-started/cloudflare-workers.txt index f67e9340..12919c82 100644 --- a/carbon/getting-started/cloudflare-workers.txt +++ b/carbon/getting-started/cloudflare-workers.txt @@ -1,32 +1,32 @@ -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[2186,["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"],"Files"] -3c:I[2186,["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"],"Folder"] -3d:I[2186,["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"],"File"] -3e: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"] -3f: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"] -40: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"] -41: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"] -49: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"] -4a: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"] -4b: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[4772,["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"],"Files"] +3c:I[4772,["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"],"Folder"] +3d:I[4772,["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"],"File"] +3e: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"] +3f: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"] +40: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"] +41: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"] +49: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"] +4a: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"] +4b: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"] 4d:I[1907,[],""] 4f:I[1851,[],""] -50:I[6225,["808","static/chunks/808-6dceee3f6f2f7cd1.js","185","static/chunks/app/layout-26077b10d25ec523.js"],"RootProvider"] +50: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"] @@ -68,8 +68,8 @@ f:["$","div",null,"$10"] 34:{"title":"Adding Commands","url":"#adding-commands","depth":3} 35:{"title":"Deploying","url":"#deploying","depth":2} 2e:["$2f","$30","$31","$32","$33","$34","$35"] -42:T4dc,43:T4dc,44:T4dc,45:T4dc,46:T4dc,47:T4dc,48:T4dc,4c:["../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"] +42:T4dc,43:T4dc,44:T4dc,45:T4dc,46:T4dc,47:T4dc,48:T4dc,4c:["../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"] 4e:["slug","carbon/getting-started/cloudflare-workers","c"] -0:["ajd-SQ2r2d7teD8cRVxbO",[[["",{"children":[["slug","carbon/getting-started/cloudflare-workers","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"getting-started\",\"cloudflare-workers\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/getting-started/cloudflare-workers","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":"File Structure","url":"#file-structure","depth":2},{"title":"Getting Started","url":"#getting-started","depth":2},{"title":"Installation","url":"#installation","depth":3},{"title":"Setting up your Worker","url":"#setting-up-your-worker","depth":3},{"title":"Creating a Client","url":"#creating-a-client","depth":3},{"title":"Adding Commands","url":"#adding-commands","depth":3},{"title":"Deploying","url":"#deploying","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/getting-started/cloudflare-workers.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":"Cloudflare Workers","className":"text-3xl font-bold"}],null,["$","div",null,{"className":"prose","children":[[["$","p",null,{"children":"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."}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"file-structure","children":[["$","a",null,{"href":"#file-structure","className":"peer","children":"File Structure"}],["$","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",["$","$L3b",null,{"children":[["$","$L3c",null,{"name":"src","defaultOpen":true,"children":[["$","$L3d",null,{"name":"index.ts"}],["$","$L3c",null,{"name":"commands","defaultOpen":true,"children":["$","$L3d",null,{"name":"ping.ts"}]}]]}],["$","$L3d",null,{"name":"package.json"}],["$","$L3d",null,{"name":"wrangler.toml"}]]}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"getting-started","children":[["$","a",null,{"href":"#getting-started","className":"peer","children":"Getting Started"}],["$","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",["$","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",["$","p",null,{"children":"First, we need to install Carbon, as well as Wrangler to help us deploy our worker."}],"\n",["$","$L3e",null,{"items":["pnpm","bun","npm","yarn"],"id":"package-manager","children":[["$","$L3f","pnpm",{"value":"pnpm","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":"pnpm add @buape/carbon wrangler"}]}]}],["$","$L3f","bun",{"value":"bun","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":"bun add @buape/carbon wrangler"}]}]}],["$","$L3f","npm",{"value":"npm","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":"npm install @buape/carbon wrangler"}]}]}],["$","$L3f","yarn",{"value":"yarn","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":"yarn add @buape/carbon wrangler"}]}]}]]}],"\n",["$","p",null,{"children":["Let's also add ",["$","code",null,{"children":"@cloudflare/workers-types"}],", so that we can use the ",["$","code",null,{"children":"ExecutionContext"}]," type."]}],"\n",["$","$L3e",null,{"items":["pnpm","bun","npm","yarn"],"id":"package-manager","children":[["$","$L3f","pnpm",{"value":"pnpm","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":"pnpm add @cloudflare/workers-types -D"}]}]}],["$","$L3f","bun",{"value":"bun","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":"bun add @cloudflare/workers-types -D"}]}]}],["$","$L3f","npm",{"value":"npm","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":"npm install @cloudflare/workers-types -D"}]}]}],["$","$L3f","yarn",{"value":"yarn","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":"yarn add @cloudflare/workers-types -D"}]}]}]]}],"\n",["$","h3",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"setting-up-your-worker","children":[["$","a",null,{"href":"#setting-up-your-worker","className":"peer","children":"Setting up your Worker"}],["$","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":["Let's start by creating your ",["$","code",null,{"children":"wrangler.toml"}]," file, which will contain the configuration for your worker."]}],"\n",["$","$L40",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":"wrangler.toml","icon":"","children":["$","$L41",null,{"children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"name = "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"my-carbon-worker\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"main = "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"src/index.ts\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"compatibility_date = "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"2024-09-03\""}]]}]]}]}]}],"\n",["$","p",null,{"children":["Now, you need to get your client ID, public key, and token. ",["$","$L15",null,{"href":"/carbon/developer-portal/create-a-bot","prefetch":"$undefined","replace":"$undefined","children":"You can learn more about these here."}]]}],"\n",["$","p",null,{"children":"Let's add these to your worker:"}],"\n",["$","$L3e",null,{"items":["pnpm","bun","npm","yarn"],"id":"package-manager","children":[["$","$L3f","pnpm",{"value":"pnpm","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":"pnpm dlx wrangler secret put CLIENT_ID\npnpm dlx wrangler secret put PUBLIC_KEY\npnpm dlx wrangler secret put DISCORD_TOKEN"}]}]}],["$","$L3f","bun",{"value":"bun","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":"bunx wrangler secret put CLIENT_ID\nbunx wrangler secret put PUBLIC_KEY\nbunx wrangler secret put DISCORD_TOKEN"}]}]}],["$","$L3f","npm",{"value":"npm","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":"npx wrangler secret put CLIENT_ID\nnpx wrangler secret put PUBLIC_KEY\nnpx wrangler secret put DISCORD_TOKEN"}]}]}],["$","$L3f","yarn",{"value":"yarn","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":"yarn dlx wrangler secret put CLIENT_ID\nyarn dlx wrangler secret put PUBLIC_KEY\nyarn dlx wrangler secret put DISCORD_TOKEN"}]}]}]]}],"\n",["$","p",null,{"children":"After each of these commands, you'l be prompted to enter the value."}],"\n",["$","h3",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"creating-a-client","children":[["$","a",null,{"href":"#creating-a-client","className":"peer","children":"Creating a Client"}],["$","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":["Now let's start your ",["$","code",null,{"children":"index.ts"}]," file. It will be the entry point for your worker, and the main file that will be executed when your worker is deployed."]}],"\n",["$","p",null,{"children":"First, we need to import the Carbon client."}],"\n",["$","$L40",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","icon":"$42","children":["$","$L41",null,{"children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#6A737D","--shiki-dark":"#6A737D"},"children":"// Import the Carbon client"}]}],"\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":" { Client, ClientMode } "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"from"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"@buape/carbon\""}]]}]]}]}]}],"\n",["$","p",null,{"children":["We also need to get two types: we need to create a type for our environment variables that we set in the wrangler.toml file, and we need to import the ",["$","code",null,{"children":"ExecutionContext"}]," type from ",["$","code",null,{"children":"@cloudflare/workers-types"}],"."]}],"\n",["$","$L40",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","icon":"$43","children":["$","$L41",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":"#D73A49","--shiki-dark":"#F97583"},"children":" type"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" { ExecutionContext } "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"from"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"@cloudflare/workers-types/2023-07-01\""}]]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"type"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" Env"}],["$","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":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tCLIENT_ID"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":":"}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" string"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tPUBLIC_KEY"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":":"}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" string"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tDISCORD_TOKEN"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":":"}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" string"}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"}"}]}]]}]}]}],"\n",["$","p",null,{"children":["In Cloudflare Workers, everything is exported in one object. The ",["$","code",null,{"children":"fetch"}]," function is the entry point for your worker."]}],"\n",["$","$L40",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","icon":"$44","children":["$","$L41",null,{"children":["$","code",null,{"children":[["$","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":"#24292E","--shiki-dark":"#E1E4E8"},"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":" fetch"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"("}],["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"request"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":":"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" Request"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":", "}],["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"_env"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":":"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" Env"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":", "}],["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"ctx"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":":"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" ExecutionContext"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":") {"}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#6A737D","--shiki-dark":"#6A737D"},"children":"\t\t// Place your code here."}]}],"\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":"Now, let's add some code to actually use Carbon. First, we will create a new Carbon client."}],"\n",["$","$L40",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","icon":"$45","children":["$","$L41",null,{"children":["$","code",null,{"children":[["$","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":"#24292E","--shiki-dark":"#E1E4E8"},"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":" fetch"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"("}],["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"request"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":":"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" Request"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":", "}],["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"env"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":":"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" Env"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":", "}],["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"ctx"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":":"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" ExecutionContext"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":") {"}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#6A737D","--shiki-dark":"#6A737D"},"children":"\t\t// Create a new Carbon client."}]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"\t\tconst"}],["$","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":"\t\t\t{"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#6A737D","--shiki-dark":"#6A737D"},"children":"\t\t\t\t// Put your client ID, public key, and token here, _env will have them from your `wrangler.toml` file."}]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t\t\t\tclientId: env."}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"CLIENT_ID"}],["$","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\t\tpublicKey: env."}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"PUBLIC_KEY"}],["$","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\t\ttoken: env."}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"DISCORD_TOKEN"}],["$","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\t\tmode: ClientMode.CloudflareWorkers"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t\t\t},"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t\t\t[]"}]}],"\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":"#6A737D","--shiki-dark":"#6A737D"},"children":"\t\t// This is how you pass control from your cf worker to Carbon. Make sure you pass the ctx part as well, so that awaits work properly within Carbon."}]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"\t\tconst"}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" response"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" await"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" client.router."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"fetch"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(request, ctx)"}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#6A737D","--shiki-dark":"#6A737D"},"children":"\t\t// Finally, return the response from Carbon."}]}],"\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":" response"}]]}],"\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",["$","h3",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"adding-commands","children":[["$","a",null,{"href":"#adding-commands","className":"peer","children":"Adding 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":["Now that we have our client, we can start adding commands to it. Let's create a new file called ",["$","code",null,{"children":"ping.ts"}]," in the ",["$","code",null,{"children":"src/commands"}]," folder."]}],"\n",["$","$L40",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":"$46","children":["$","$L41",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":[["$","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":"\"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":"This is a basic command, you set the name and description, and then add a run function that will be called when the command is used."}],"\n",["$","p",null,{"children":"Now, let's add this command to our client."}],"\n",["$","$L40",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":"$47","children":["$","$L41",null,{"children":["$","code",null,{"children":[["$","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":"\t{"}]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t\tclientId: env."}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"CLIENT_ID"}],["$","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\tpublicKey: env."}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"PUBLIC_KEY"}],["$","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\ttoken: env."}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"DISCORD_TOKEN"}],["$","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\tmode: ClientMode.CloudflareWorkers"}]}],"\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":"\t["}]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"\t\tnew"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" PingCommand"}],["$","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]"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":")"}]}]]}]}]}],"\n",["$","p",null,{"children":["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.\nAdd this right above the ",["$","code",null,{"children":"client.router.fetch"}]," line:"]}],"\n",["$","$L40",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":"$48","children":["$","$L41",null,{"children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"client.router."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"get"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"("}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"/deploy\""}],["$","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":"\treturn"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" client."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"deployCommands"}],["$","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":"})"}]}]]}]}]}],"\n",["$","p",null,{"children":["And that's it! You now have a basic Carbon bot running on Cloudflare Workers.\nIf you want to add more commands, just create more classes in the ",["$","code",null,{"children":"src/commands"}]," folder, and add them to the client in the ",["$","code",null,{"children":"src/index.ts"}]," file."]}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"deploying","children":[["$","a",null,{"href":"#deploying","className":"peer","children":"Deploying"}],["$","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 deploy your bot, let's add some scripts to your ",["$","code",null,{"children":"package.json"}]," file."]}],"\n",["$","p",null,{"children":["Let's also add some scripts to our ",["$","code",null,{"children":"package.json"}]," file."]}],"\n",["$","$L40",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":"package.json","icon":"","children":["$","$L41",null,{"children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"{"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#6A737D","--shiki-dark":"#6A737D"},"children":"\t// ..."}]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"\t\"scripts\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":": {"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"\t\t\"build\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":": "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"wrangler deploy\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":","}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"\t\t\"tail\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":": "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"wrangler tail\""}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t}"}]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#6A737D","--shiki-dark":"#6A737D"},"children":"\t// ..."}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"}"}]}]]}]}]}],"\n",["$","p",null,{"children":"Then you can use these like this:"}],"\n",["$","$L3e",null,{"items":["pnpm","bun","npm","yarn"],"id":"package-manager","children":[["$","$L3f","pnpm",{"value":"pnpm","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":"pnpm run build\npnpm run tail"}]}]}],["$","$L3f","bun",{"value":"bun","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":"bun run build\nbun run tail"}]}]}],["$","$L3f","npm",{"value":"npm","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":"npm run build\nnpm run tail"}]}]}],["$","$L3f","yarn",{"value":"yarn","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":"yarn run build\nyarn run tail"}]}]}]]}],"\n",["$","p",null,{"children":["This will push your code to Cloudflare, and deploy your worker. You can also use the ",["$","code",null,{"children":"tail"}]," command to see the logs from your worker."]}],"\n",["$","p",null,{"children":["Now you'll need to setup your bot on the ",["$","a",null,{"href":"https://discord.com/developers/applications","rel":"noreferrer noopener","target":"_blank","children":"Discord Developer Portal"}],". Take a look at the following cards for more information."]}],"\n",["$","div",null,{"children":[["$","$L15",null,{"href":"/","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[["$","div",null,{"className":"mb-2 w-fit rounded-md border bg-fd-muted p-2 text-fd-muted-foreground [&_svg]:size-4","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-layout-dashboard","children":[["$","rect","10lvy0",{"width":"7","height":"9","x":"3","y":"3","rx":"1"}],["$","rect","16une8",{"width":"7","height":"5","x":"14","y":"3","rx":"1"}],["$","rect","1hutg5",{"width":"7","height":"9","x":"14","y":"12","rx":"1"}],["$","rect","ldoo1y",{"width":"7","height":"5","x":"3","y":"16","rx":"1"}],"$undefined"]}]}],["$","h3",null,{"className":"mb-1 font-medium","children":"Discord Developer Portal"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"Learn how to setup your bot on the Discord Developer Portal."}]]}],["$","$L15",null,{"href":"/","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[["$","div",null,{"className":"mb-2 w-fit rounded-md border bg-fd-muted p-2 text-fd-muted-foreground [&_svg]:size-4","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-folder-git","children":[["$","circle","1c1ljs",{"cx":"12","cy":"13","r":"2"}],["$","path","1kt360",{"d":"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"}],["$","path","1dgedf",{"d":"M14 13h3"}],["$","path","1pygq7",{"d":"M7 13h3"}],"$undefined"]}]}],["$","h3",null,{"className":"mb-1 font-medium","children":"Example Project"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"See a full example project for Carbon on Cloudflare Workers."}]]}]],"className":"grid grid-cols-1 gap-4 sm:grid-cols-2"}]],null]}]],["$","div",null,{"className":"mt-auto"}],["$","$L49",null,{"date":"$D2024-09-11T14:49:03.000Z"}],["$","$L4a",null,{"items":"$undefined"}]]}]]}],["$","$L4b",null,{"header":"$undefined","footer":["$undefined",["$","$36",null,{"fallback":null,"children":[["$","$L37",null,{"moduleIds":"$4c"}],["$","$L38",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/getting-started/cloudflare-workers.mdx"}]]}]],"children":["$","$L39",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L4d",null,{"parallelRouterKey":"children","segmentPath":["children","$4e","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4f",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":["$","$L50",null,{"search":{"enabled":false},"children":["$","$L4d",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4f",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],["$L51",null]]]] +0:["ob-je4azGQ3_nWAi-Q2wj",[[["",{"children":[["slug","carbon/getting-started/cloudflare-workers","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"getting-started\",\"cloudflare-workers\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/getting-started/cloudflare-workers","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":"File Structure","url":"#file-structure","depth":2},{"title":"Getting Started","url":"#getting-started","depth":2},{"title":"Installation","url":"#installation","depth":3},{"title":"Setting up your Worker","url":"#setting-up-your-worker","depth":3},{"title":"Creating a Client","url":"#creating-a-client","depth":3},{"title":"Adding Commands","url":"#adding-commands","depth":3},{"title":"Deploying","url":"#deploying","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/getting-started/cloudflare-workers.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":"Cloudflare Workers","className":"text-3xl font-bold"}],["$","p",null,{"children":"Getting started with Carbon on Cloudflare Workers","className":"mb-8 text-lg text-fd-muted-foreground"}],["$","div",null,{"className":"prose","children":[[["$","p",null,{"children":"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."}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"file-structure","children":[["$","a",null,{"href":"#file-structure","className":"peer","children":"File Structure"}],["$","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",["$","$L3b",null,{"children":[["$","$L3c",null,{"name":"src","defaultOpen":true,"children":[["$","$L3d",null,{"name":"index.ts"}],["$","$L3c",null,{"name":"commands","defaultOpen":true,"children":["$","$L3d",null,{"name":"ping.ts"}]}]]}],["$","$L3d",null,{"name":"package.json"}],["$","$L3d",null,{"name":"wrangler.toml"}]]}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"getting-started","children":[["$","a",null,{"href":"#getting-started","className":"peer","children":"Getting Started"}],["$","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",["$","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",["$","p",null,{"children":"First, we need to install Carbon, as well as Wrangler to help us deploy our worker."}],"\n",["$","$L3e",null,{"items":["pnpm","npm","yarn"],"id":"package-manager","children":[["$","$L3f","pnpm",{"value":"pnpm","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":"pnpm add @buape/carbon wrangler"}]}]}],["$","$L3f","npm",{"value":"npm","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":"npm install @buape/carbon wrangler"}]}]}],["$","$L3f","yarn",{"value":"yarn","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":"yarn add @buape/carbon wrangler"}]}]}]]}],"\n",["$","p",null,{"children":["Let's also add ",["$","code",null,{"children":"@cloudflare/workers-types"}],", so that we can use the ",["$","code",null,{"children":"ExecutionContext"}]," type."]}],"\n",["$","$L3e",null,{"items":["pnpm","npm","yarn"],"id":"package-manager","children":[["$","$L3f","pnpm",{"value":"pnpm","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":"pnpm add @cloudflare/workers-types -D"}]}]}],["$","$L3f","npm",{"value":"npm","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":"npm install @cloudflare/workers-types -D"}]}]}],["$","$L3f","yarn",{"value":"yarn","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":"yarn add @cloudflare/workers-types -D"}]}]}]]}],"\n",["$","h3",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"setting-up-your-worker","children":[["$","a",null,{"href":"#setting-up-your-worker","className":"peer","children":"Setting up your Worker"}],["$","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":["Let's start by creating your ",["$","code",null,{"children":"wrangler.toml"}]," file, which will contain the configuration for your worker."]}],"\n",["$","$L40",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":"wrangler.toml","icon":"","children":["$","$L41",null,{"children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"name = "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"my-carbon-worker\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"main = "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"src/index.ts\""}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"compatibility_date = "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"2024-09-03\""}]]}]]}]}]}],"\n",["$","p",null,{"children":["Now, you need to get your client ID, public key, and token. ",["$","$L15",null,{"href":"/carbon/developer-portal/create-a-bot","prefetch":"$undefined","replace":"$undefined","children":"You can learn more about these here."}]]}],"\n",["$","p",null,{"children":"Let's add these to your worker:"}],"\n",["$","$L3e",null,{"items":["pnpm","npm","yarn"],"id":"package-manager","children":[["$","$L3f","pnpm",{"value":"pnpm","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":"pnpm dlx wrangler secret put CLIENT_ID\npnpm dlx wrangler secret put PUBLIC_KEY\npnpm dlx wrangler secret put DISCORD_TOKEN"}]}]}],["$","$L3f","npm",{"value":"npm","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":"npx wrangler secret put CLIENT_ID\nnpx wrangler secret put PUBLIC_KEY\nnpx wrangler secret put DISCORD_TOKEN"}]}]}],["$","$L3f","yarn",{"value":"yarn","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":"yarn dlx wrangler secret put CLIENT_ID\nyarn dlx wrangler secret put PUBLIC_KEY\nyarn dlx wrangler secret put DISCORD_TOKEN"}]}]}]]}],"\n",["$","p",null,{"children":"After each of these commands, you'l be prompted to enter the value."}],"\n",["$","h3",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"creating-a-client","children":[["$","a",null,{"href":"#creating-a-client","className":"peer","children":"Creating a Client"}],["$","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":["Now let's start your ",["$","code",null,{"children":"index.ts"}]," file. It will be the entry point for your worker, and the main file that will be executed when your worker is deployed."]}],"\n",["$","p",null,{"children":"First, we need to import the Carbon client."}],"\n",["$","$L40",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","icon":"$42","children":["$","$L41",null,{"children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#6A737D","--shiki-dark":"#6A737D"},"children":"// Import the Carbon client"}]}],"\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":" { Client, ClientMode } "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"from"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"@buape/carbon\""}]]}]]}]}]}],"\n",["$","p",null,{"children":["We also need to get two types: we need to create a type for our environment variables that we set in the wrangler.toml file, and we need to import the ",["$","code",null,{"children":"ExecutionContext"}]," type from ",["$","code",null,{"children":"@cloudflare/workers-types"}],"."]}],"\n",["$","$L40",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","icon":"$43","children":["$","$L41",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":"#D73A49","--shiki-dark":"#F97583"},"children":" type"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" { ExecutionContext } "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"from"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"@cloudflare/workers-types/2023-07-01\""}]]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"type"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" Env"}],["$","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":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tCLIENT_ID"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":":"}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" string"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tPUBLIC_KEY"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":":"}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" string"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"\tDISCORD_TOKEN"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":":"}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" string"}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"}"}]}]]}]}]}],"\n",["$","p",null,{"children":["In Cloudflare Workers, everything is exported in one object. The ",["$","code",null,{"children":"fetch"}]," function is the entry point for your worker."]}],"\n",["$","$L40",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","icon":"$44","children":["$","$L41",null,{"children":["$","code",null,{"children":[["$","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":"#24292E","--shiki-dark":"#E1E4E8"},"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":" fetch"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"("}],["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"request"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":":"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" Request"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":", "}],["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"_env"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":":"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" Env"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":", "}],["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"ctx"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":":"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" ExecutionContext"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":") {"}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#6A737D","--shiki-dark":"#6A737D"},"children":"\t\t// Place your code here."}]}],"\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":"Now, let's add some code to actually use Carbon. First, we will create a new Carbon client."}],"\n",["$","$L40",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","icon":"$45","children":["$","$L41",null,{"children":["$","code",null,{"children":[["$","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":"#24292E","--shiki-dark":"#E1E4E8"},"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":" fetch"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"("}],["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"request"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":":"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" Request"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":", "}],["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"env"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":":"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" Env"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":", "}],["$","span",null,{"style":{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},"children":"ctx"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":":"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" ExecutionContext"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":") {"}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#6A737D","--shiki-dark":"#6A737D"},"children":"\t\t// Create a new Carbon client."}]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"\t\tconst"}],["$","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":"\t\t\t{"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#6A737D","--shiki-dark":"#6A737D"},"children":"\t\t\t\t// Put your client ID, public key, and token here, _env will have them from your `wrangler.toml` file."}]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t\t\t\tclientId: env."}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"CLIENT_ID"}],["$","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\t\tpublicKey: env."}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"PUBLIC_KEY"}],["$","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\t\ttoken: env."}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"DISCORD_TOKEN"}],["$","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\t\tmode: ClientMode.CloudflareWorkers"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t\t\t},"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t\t\t[]"}]}],"\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":"#6A737D","--shiki-dark":"#6A737D"},"children":"\t\t// This is how you pass control from your cf worker to Carbon. Make sure you pass the ctx part as well, so that awaits work properly within Carbon."}]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"\t\tconst"}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" response"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" await"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" client.router."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"fetch"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(request, ctx)"}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#6A737D","--shiki-dark":"#6A737D"},"children":"\t\t// Finally, return the response from Carbon."}]}],"\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":" response"}]]}],"\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",["$","h3",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"adding-commands","children":[["$","a",null,{"href":"#adding-commands","className":"peer","children":"Adding 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":["Now that we have our client, we can start adding commands to it. Let's create a new file called ",["$","code",null,{"children":"ping.ts"}]," in the ",["$","code",null,{"children":"src/commands"}]," folder."]}],"\n",["$","$L40",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":"$46","children":["$","$L41",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":[["$","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":"\"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":"This is a basic command, you set the name and description, and then add a run function that will be called when the command is used."}],"\n",["$","p",null,{"children":"Now, let's add this command to our client."}],"\n",["$","$L40",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":"$47","children":["$","$L41",null,{"children":["$","code",null,{"children":[["$","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":"\t{"}]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t\tclientId: env."}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"CLIENT_ID"}],["$","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\tpublicKey: env."}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"PUBLIC_KEY"}],["$","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\ttoken: env."}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"DISCORD_TOKEN"}],["$","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\tmode: ClientMode.CloudflareWorkers"}]}],"\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":"\t["}]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"\t\tnew"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" PingCommand"}],["$","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]"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":")"}]}]]}]}]}],"\n",["$","p",null,{"children":["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.\nAdd this right above the ",["$","code",null,{"children":"client.router.fetch"}]," line:"]}],"\n",["$","$L40",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":"$48","children":["$","$L41",null,{"children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"client.router."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"get"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"("}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"/deploy\""}],["$","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":"\treturn"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" client."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"deployCommands"}],["$","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":"})"}]}]]}]}]}],"\n",["$","p",null,{"children":["And that's it! You now have a basic Carbon bot running on Cloudflare Workers.\nIf you want to add more commands, just create more classes in the ",["$","code",null,{"children":"src/commands"}]," folder, and add them to the client in the ",["$","code",null,{"children":"src/index.ts"}]," file."]}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"deploying","children":[["$","a",null,{"href":"#deploying","className":"peer","children":"Deploying"}],["$","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 deploy your bot, let's add some scripts to your ",["$","code",null,{"children":"package.json"}]," file."]}],"\n",["$","p",null,{"children":["Let's also add some scripts to our ",["$","code",null,{"children":"package.json"}]," file."]}],"\n",["$","$L40",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":"package.json","icon":"","children":["$","$L41",null,{"children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"{"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#6A737D","--shiki-dark":"#6A737D"},"children":"\t// ..."}]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"\t\"scripts\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":": {"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"\t\t\"build\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":": "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"wrangler deploy\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":","}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"\t\t\"tail\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":": "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"wrangler tail\""}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t}"}]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#6A737D","--shiki-dark":"#6A737D"},"children":"\t// ..."}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"}"}]}]]}]}]}],"\n",["$","p",null,{"children":"Then you can use these like this:"}],"\n",["$","$L3e",null,{"items":["pnpm","npm","yarn"],"id":"package-manager","children":[["$","$L3f","pnpm",{"value":"pnpm","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":"pnpm run build\npnpm run tail"}]}]}],["$","$L3f","npm",{"value":"npm","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":"npm run build\nnpm run tail"}]}]}],["$","$L3f","yarn",{"value":"yarn","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":"yarn run build\nyarn run tail"}]}]}]]}],"\n",["$","p",null,{"children":["This will push your code to Cloudflare, and deploy your worker. You can also use the ",["$","code",null,{"children":"tail"}]," command to see the logs from your worker."]}],"\n",["$","p",null,{"children":["Now you'll need to setup your bot on the ",["$","a",null,{"href":"https://discord.com/developers/applications","rel":"noreferrer noopener","target":"_blank","children":"Discord Developer Portal"}],". Take a look at the following cards for more information."]}],"\n",["$","div",null,{"children":[["$","$L15",null,{"href":"/","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[["$","div",null,{"className":"mb-2 w-fit rounded-md border bg-fd-muted p-2 text-fd-muted-foreground [&_svg]:size-4","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-layout-dashboard","children":[["$","rect","10lvy0",{"width":"7","height":"9","x":"3","y":"3","rx":"1"}],["$","rect","16une8",{"width":"7","height":"5","x":"14","y":"3","rx":"1"}],["$","rect","1hutg5",{"width":"7","height":"9","x":"14","y":"12","rx":"1"}],["$","rect","ldoo1y",{"width":"7","height":"5","x":"3","y":"16","rx":"1"}],"$undefined"]}]}],["$","h3",null,{"className":"mb-1 font-medium","children":"Discord Developer Portal"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"Learn how to setup your bot on the Discord Developer Portal."}]]}],["$","$L15",null,{"href":"/","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[["$","div",null,{"className":"mb-2 w-fit rounded-md border bg-fd-muted p-2 text-fd-muted-foreground [&_svg]:size-4","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-folder-git","children":[["$","circle","1c1ljs",{"cx":"12","cy":"13","r":"2"}],["$","path","1kt360",{"d":"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"}],["$","path","1dgedf",{"d":"M14 13h3"}],["$","path","1pygq7",{"d":"M7 13h3"}],"$undefined"]}]}],["$","h3",null,{"className":"mb-1 font-medium","children":"Example Project"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"See a full example project for Carbon on Cloudflare Workers."}]]}]],"className":"grid grid-cols-1 gap-4 sm:grid-cols-2"}]],null]}]],["$","div",null,{"className":"mt-auto"}],["$","$L49",null,{"date":"$D2024-09-11T20:53:15.000Z"}],["$","$L4a",null,{"items":"$undefined"}]]}]]}],["$","$L4b",null,{"header":"$undefined","footer":["$undefined",["$","$36",null,{"fallback":null,"children":[["$","$L37",null,{"moduleIds":"$4c"}],["$","$L38",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/getting-started/cloudflare-workers.mdx"}]]}]],"children":["$","$L39",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L4d",null,{"parallelRouterKey":"children","segmentPath":["children","$4e","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4f",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":["$","$L50",null,{"search":{"enabled":false},"children":["$","$L4d",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4f",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],["$L51",null]]]] 51:[["$","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/getting-started/nextjs.html b/carbon/getting-started/nextjs.html index 87ad7c54..cb52066b 100644 --- a/carbon/getting-started/nextjs.html +++ b/carbon/getting-started/nextjs.html @@ -1 +1,63 @@ -
    Carbon

    On this page

    No Headings
    Edit on GitHub
    \ No newline at end of file +
    Carbon

    Next.js

    Getting started with Carbon on Next.js

    Next.js is a great React framework for building web apps, and works great with Carbon.

    +

    File Structure

    +
    route.ts
    ping.ts
    route.ts
    +

    Getting Started

    +

    Installation

    +

    First, we need to install Carbon.

    +
    pnpm add @buape/carbon
    +

    We're going to assume that you already have a working Next.js app and that it's hosted on Vercel, so we'll just add Carbon on top of it.

    +

    Creating a Client

    +

    Now let's start your route.ts file. The route.ts file is where Next.js will look for your API routes, and Carbon will be running on one of those.

    +

    First, we need to import the Carbon client.

    +
    // Import the Carbon client
    +import { Client, ClientMode } from "@buape/carbon"
    +

    Now, let's add some code to actually use Carbon. First, we will create a new Carbon client.

    +
    const client = new Client({
    +	clientId: env.DISCORD_CLIENT_ID,
    +	publicKey: env.DISCORD_PUBLIC_KEY,
    +	token: env.DISCORD_TOKEN,
    +	mode: ClientMode.Vercel,
    +	redirectUrl: getBaseUrl()
    +}, [])
    +

    Adding Commands

    +

    Now that we have our client, we can start adding commands to it. Let's create a new file called ping.ts in the commands folder.

    +
    app/discord/commands/ping.ts
    import { Command, type CommandInteraction } from "@buape/carbon"
    + 
    +export class PingCommand extends Command {
    +	name = "ping"
    +	description = "A simple ping command"
    +	defer = false
    + 
    +	async run(interaction: CommandInteraction) {
    +		return interaction.reply({
    +			content: "Pong!"
    +		})
    +	}
    +}
    +

    This is a basic command, you set the name and description, and then add a run function that will be called when the command is used.

    +

    Now, let's add this command to our client.

    +
    const client = new Client(
    +	{
    +		clientId: env.CLIENT_ID,
    +		publicKey: env.PUBLIC_KEY,
    +		token: env.DISCORD_TOKEN,
    +		mode: ClientMode.Vercel
    +	},
    +	[
    +		new PingCommand()
    +	]
    +)
    +

    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.

    +

    Last updated on

    On this page

    Edit on GitHub
    \ No newline at end of file diff --git a/carbon/getting-started/nextjs.txt b/carbon/getting-started/nextjs.txt index 67fd7ea5..b755d41f 100644 --- a/carbon/getting-started/nextjs.txt +++ b/carbon/getting-started/nextjs.txt @@ -1,25 +1,32 @@ -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"] -2f:"$Sreact.suspense" -30: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"] -31: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"] -32: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"] -33: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"] -34: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"] -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"],"Footer"] -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"],"Toc"] -38:I[1907,[],""] -3a:I[1851,[],""] -3b:I[6225,["808","static/chunks/808-6dceee3f6f2f7cd1.js","185","static/chunks/app/layout-26077b10d25ec523.js"],"RootProvider"] +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"] +34:"$Sreact.suspense" +35: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"] +36: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"] +37: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"] +38: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"] +39:I[4772,["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"],"Files"] +3a:I[4772,["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"],"Folder"] +3b:I[4772,["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"],"File"] +3c: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"] +3d: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"] +3e: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"] +3f: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"] +45: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"] +46: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"] +47: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"] +49:I[1907,[],""] +4b:I[1851,[],""] +4c: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"] @@ -53,9 +60,14 @@ f:["$","div",null,"$10"] 26:["$","svg",null,"$27"] 25:{"type":"icon","url":"https://github.com/fuma-nama/fumadocs","text":"Github","icon":"$26","external":true} 1e:["$1f","$21","$23","$25"] -2e:[] -37:["../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"] -39:["slug","carbon/getting-started/nextjs","c"] -0:["ajd-SQ2r2d7teD8cRVxbO",[[["",{"children":[["slug","carbon/getting-started/nextjs","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"getting-started\",\"nextjs\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/getting-started/nextjs","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":[],"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",["$","$2f",null,{"fallback":null,"children":[["$","$L30",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"]}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/getting-started/nextjs.mdx"}]]}]],"children":["$","$L32",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":[["$","$L33",null,{}],[["$","h1",null,{"children":"Next.js","className":"text-3xl font-bold"}],null,["$","div",null,{"className":"prose","children":[["$","p",null,{"children":"Coming soon!"}],null]}]],["$","div",null,{"className":"mt-auto"}],["$","$L34",null,{"date":"$D2024-09-11T14:49:03.000Z"}],["$","$L35",null,{"items":"$undefined"}]]}]]}],["$","$L36",null,{"header":"$undefined","footer":["$undefined",["$","$2f",null,{"fallback":null,"children":[["$","$L30",null,{"moduleIds":"$37"}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/getting-started/nextjs.mdx"}]]}]],"children":["$","$L32",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L38",null,{"parallelRouterKey":"children","segmentPath":["children","$39","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3a",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":["$","$L3b",null,{"search":{"enabled":false},"children":["$","$L38",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3a",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],["$L3c",null]]]] -3c:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","meta","2",{"name":"next-size-adjust"}]] +2f:{"title":"File Structure","url":"#file-structure","depth":2} +30:{"title":"Getting Started","url":"#getting-started","depth":2} +31:{"title":"Installation","url":"#installation","depth":3} +32:{"title":"Creating a Client","url":"#creating-a-client","depth":3} +33:{"title":"Adding Commands","url":"#adding-commands","depth":3} +2e:["$2f","$30","$31","$32","$33"] +40:T4dc,41:T4dc,42:T4dc,43:T4dc,44:T4dc,48:["../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"] +4a:["slug","carbon/getting-started/nextjs","c"] +0:["ob-je4azGQ3_nWAi-Q2wj",[[["",{"children":[["slug","carbon/getting-started/nextjs","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"getting-started\",\"nextjs\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/getting-started/nextjs","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":"File Structure","url":"#file-structure","depth":2},{"title":"Getting Started","url":"#getting-started","depth":2},{"title":"Installation","url":"#installation","depth":3},{"title":"Creating a Client","url":"#creating-a-client","depth":3},{"title":"Adding Commands","url":"#adding-commands","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",["$","$34",null,{"fallback":null,"children":[["$","$L35",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"]}],["$","$L36",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/getting-started/nextjs.mdx"}]]}]],"children":["$","$L37",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":[["$","$L38",null,{}],[["$","h1",null,{"children":"Next.js","className":"text-3xl font-bold"}],["$","p",null,{"children":"Getting started with Carbon on Next.js","className":"mb-8 text-lg text-fd-muted-foreground"}],["$","div",null,{"className":"prose","children":[[["$","p",null,{"children":"Next.js is a great React framework for building web apps, and works great with Carbon."}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"file-structure","children":[["$","a",null,{"href":"#file-structure","className":"peer","children":"File Structure"}],["$","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,{"children":["$","$L3a",null,{"name":"app","defaultOpen":true,"children":["$","$L3a",null,{"name":"discord","defaultOpen":true,"children":[["$","$L3b",null,{"name":"route.ts"}],["$","$L3a",null,{"name":"commands","defaultOpen":true,"children":["$","$L3b",null,{"name":"ping.ts"}]}],["$","$L3a",null,{"name":"deploy","defaultOpen":true,"children":["$","$L3b",null,{"name":"route.ts"}]}]]}]}]}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"getting-started","children":[["$","a",null,{"href":"#getting-started","className":"peer","children":"Getting Started"}],["$","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",["$","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",["$","p",null,{"children":"First, we need to install Carbon."}],"\n",["$","$L3c",null,{"items":["pnpm","npm","yarn"],"id":"package-manager","children":[["$","$L3d","pnpm",{"value":"pnpm","children":["$","$L3e",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L3f",null,{"children":"pnpm add @buape/carbon"}]}]}],["$","$L3d","npm",{"value":"npm","children":["$","$L3e",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L3f",null,{"children":"npm install @buape/carbon"}]}]}],["$","$L3d","yarn",{"value":"yarn","children":["$","$L3e",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L3f",null,{"children":"yarn add @buape/carbon"}]}]}]]}],"\n",["$","p",null,{"children":"We're going to assume that you already have a working Next.js app and that it's hosted on Vercel, so we'll just add Carbon on top of it."}],"\n",["$","h3",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"creating-a-client","children":[["$","a",null,{"href":"#creating-a-client","className":"peer","children":"Creating a Client"}],["$","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":["Now let's start your ",["$","code",null,{"children":"route.ts"}]," file. The route.ts file is where Next.js will look for your API routes, and Carbon will be running on one of those."]}],"\n",["$","p",null,{"children":"First, we need to import the Carbon client."}],"\n",["$","$L3e",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","icon":"$40","children":["$","$L3f",null,{"children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#6A737D","--shiki-dark":"#6A737D"},"children":"// Import the Carbon client"}]}],"\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":" { Client, ClientMode } "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"from"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"@buape/carbon\""}]]}]]}]}]}],"\n",["$","p",null,{"children":"Now, let's add some code to actually use Carbon. First, we will create a new Carbon client."}],"\n",["$","$L3e",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","icon":"$41","children":["$","$L3f",null,{"children":["$","code",null,{"children":[["$","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: env."}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"DISCORD_CLIENT_ID"}],["$","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: env."}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"DISCORD_PUBLIC_KEY"}],["$","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: env."}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"DISCORD_TOKEN"}],["$","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":"\tmode: ClientMode.Vercel,"}]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\tredirectUrl: "}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"getBaseUrl"}],["$","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":"}, [])"}]}]]}]}]}],"\n",["$","h3",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"adding-commands","children":[["$","a",null,{"href":"#adding-commands","className":"peer","children":"Adding 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":["Now that we have our client, we can start adding commands to it. Let's create a new file called ",["$","code",null,{"children":"ping.ts"}]," in the ",["$","code",null,{"children":"commands"}]," folder."]}],"\n",["$","$L3e",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":"app/discord/commands/ping.ts","icon":"$42","children":["$","$L3f",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":" 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":[["$","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":"\"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":"This is a basic command, you set the name and description, and then add a run function that will be called when the command is used."}],"\n",["$","p",null,{"children":"Now, let's add this command to our client."}],"\n",["$","$L3e",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","icon":"$43","children":["$","$L3f",null,{"children":["$","code",null,{"children":[["$","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":"\t{"}]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t\tclientId: env."}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"CLIENT_ID"}],["$","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\tpublicKey: env."}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"PUBLIC_KEY"}],["$","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\ttoken: env."}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"DISCORD_TOKEN"}],["$","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\tmode: ClientMode.Vercel"}]}],"\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":"\t["}]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"\t\tnew"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" PingCommand"}],["$","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]"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":")"}]}]]}]}]}],"\n",["$","p",null,{"children":["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.\nAdd this right above the ",["$","code",null,{"children":"client.router.fetch"}]," line:"]}],"\n",["$","$L3e",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":"app/discord/deploy/route.ts","icon":"$44","children":["$","$L3f",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":" \"../route\""}]]}],"\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":" function"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" GET"}],["$","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":"\tclient."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"deployCommands"}],["$","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":"\treturn"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" new"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" Response"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"("}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"null"}],["$","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\tstatus: "}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"200"}]]}],"\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":["And that's it! You now have a basic Carbon bot running on Cloudflare Workers.\nIf you want to add more commands, just create more classes in the ",["$","code",null,{"children":"commands"}]," folder, and add them to the client in the ",["$","code",null,{"children":"route.ts"}]," file."]}],"\n",["$","p",null,{"children":["Now you'll need to setup your bot on the ",["$","a",null,{"href":"https://discord.com/developers/applications","rel":"noreferrer noopener","target":"_blank","children":"Discord Developer Portal"}],". Take a look at the following cards for more information."]}],"\n",["$","div",null,{"children":[["$","$L15",null,{"href":"/","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[["$","div",null,{"className":"mb-2 w-fit rounded-md border bg-fd-muted p-2 text-fd-muted-foreground [&_svg]:size-4","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-layout-dashboard","children":[["$","rect","10lvy0",{"width":"7","height":"9","x":"3","y":"3","rx":"1"}],["$","rect","16une8",{"width":"7","height":"5","x":"14","y":"3","rx":"1"}],["$","rect","1hutg5",{"width":"7","height":"9","x":"14","y":"12","rx":"1"}],["$","rect","ldoo1y",{"width":"7","height":"5","x":"3","y":"16","rx":"1"}],"$undefined"]}]}],["$","h3",null,{"className":"mb-1 font-medium","children":"Discord Developer Portal"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"Learn how to setup your bot on the Discord Developer Portal."}]]}],["$","$L15",null,{"href":"/","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[["$","div",null,{"className":"mb-2 w-fit rounded-md border bg-fd-muted p-2 text-fd-muted-foreground [&_svg]:size-4","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-folder-git","children":[["$","circle","1c1ljs",{"cx":"12","cy":"13","r":"2"}],["$","path","1kt360",{"d":"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"}],["$","path","1dgedf",{"d":"M14 13h3"}],["$","path","1pygq7",{"d":"M7 13h3"}],"$undefined"]}]}],["$","h3",null,{"className":"mb-1 font-medium","children":"Example Project"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"See a full example project for Carbon on Cloudflare Workers."}]]}]],"className":"grid grid-cols-1 gap-4 sm:grid-cols-2"}]],null]}]],["$","div",null,{"className":"mt-auto"}],["$","$L45",null,{"date":"$D2024-09-11T20:53:15.000Z"}],["$","$L46",null,{"items":"$undefined"}]]}]]}],["$","$L47",null,{"header":"$undefined","footer":["$undefined",["$","$34",null,{"fallback":null,"children":[["$","$L35",null,{"moduleIds":"$48"}],["$","$L36",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/getting-started/nextjs.mdx"}]]}]],"children":["$","$L37",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L49",null,{"parallelRouterKey":"children","segmentPath":["children","$4a","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4b",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":["$","$L4c",null,{"search":{"enabled":false},"children":["$","$L49",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4b",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],["$L4d",null]]]] +4d:[["$","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/getting-started/nodejs.html b/carbon/getting-started/nodejs.html index 59cb4cd5..6903e065 100644 --- a/carbon/getting-started/nodejs.html +++ b/carbon/getting-started/nodejs.html @@ -1,10 +1,10 @@ -
    Carbon

    Node.js

    Node.js is a popular choice for running your bot, and has first-class support from Carbon.

    +
    Carbon

    Node.js

    Getting started with Carbon on Node.js

    Node.js is a popular choice for running your bot, and has first-class support from Carbon.

    File Structure

    index.ts
    ping.ts
    .env
    package.json

    Getting Started

    Installation

    First, we need to install Carbon and its NodeJS package, as well as env-cmd to help us set our environment variables, and the typings for node.

    -
    pnpm add @buape/carbon @buape/carbon-nodejs env-cmd @types/node
    +
    pnpm add @buape/carbon @buape/carbon-nodejs env-cmd @types/node

    Setting up your .env

    Let's start by creating your .env file, which will contain the secrets and tokens for your app.

    .env
    CLIENT_ID=""
    @@ -74,7 +74,7 @@ 

    // ... }

    Then you can use this command:

    -
    pnpm run start
    +
    pnpm run start

    This will compile your code, and run your bot with the environment variables from your .env file.

    Now you'll need to setup your bot on the Discord Developer Portal. Take a look at the following cards for more information.

    -

    Last updated on

    On this page

    Edit on GitHub
    \ No newline at end of file +

    Last updated on

    On this page

    Edit on GitHub
    \ No newline at end of file diff --git a/carbon/getting-started/nodejs.txt b/carbon/getting-started/nodejs.txt index 524d8085..196795ea 100644 --- a/carbon/getting-started/nodejs.txt +++ b/carbon/getting-started/nodejs.txt @@ -1,32 +1,32 @@ -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[2186,["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"],"Files"] -3c:I[2186,["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"],"Folder"] -3d:I[2186,["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"],"File"] -3e: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"] -3f: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"] -40: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"] -41: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"] -47: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"] -48: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"] -49: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[4772,["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"],"Files"] +3c:I[4772,["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"],"Folder"] +3d:I[4772,["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"],"File"] +3e: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"] +3f: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"] +40: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"] +41: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"] +47: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"] +48: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"] +49: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"] 4b:I[1907,[],""] 4d:I[1851,[],""] -4e:I[6225,["808","static/chunks/808-6dceee3f6f2f7cd1.js","185","static/chunks/app/layout-26077b10d25ec523.js"],"RootProvider"] +4e: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"] @@ -68,8 +68,8 @@ f:["$","div",null,"$10"] 34:{"title":"Adding Commands","url":"#adding-commands","depth":3} 35:{"title":"Running","url":"#running","depth":2} 2e:["$2f","$30","$31","$32","$33","$34","$35"] -42:T4dc,43:T4dc,44:T4dc,45:T4dc,46:T4dc,4a:["../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"] +42:T4dc,43:T4dc,44:T4dc,45:T4dc,46:T4dc,4a:["../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"] 4c:["slug","carbon/getting-started/nodejs","c"] -0:["ajd-SQ2r2d7teD8cRVxbO",[[["",{"children":[["slug","carbon/getting-started/nodejs","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"getting-started\",\"nodejs\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/getting-started/nodejs","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":"File Structure","url":"#file-structure","depth":2},{"title":"Getting Started","url":"#getting-started","depth":2},{"title":"Installation","url":"#installation","depth":3},{"title":"Setting up your .env","url":"#setting-up-your-env","depth":3},{"title":"Creating a Client","url":"#creating-a-client","depth":3},{"title":"Adding Commands","url":"#adding-commands","depth":3},{"title":"Running","url":"#running","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/getting-started/nodejs.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":"Node.js","className":"text-3xl font-bold"}],null,["$","div",null,{"className":"prose","children":[[["$","p",null,{"children":"Node.js is a popular choice for running your bot, and has first-class support from Carbon."}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"file-structure","children":[["$","a",null,{"href":"#file-structure","className":"peer","children":"File Structure"}],["$","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",["$","$L3b",null,{"children":[["$","$L3c",null,{"name":"src","defaultOpen":true,"children":[["$","$L3d",null,{"name":"index.ts"}],["$","$L3c",null,{"name":"commands","defaultOpen":true,"children":["$","$L3d",null,{"name":"ping.ts"}]}]]}],["$","$L3d",null,{"name":".env"}],["$","$L3d",null,{"name":"package.json"}]]}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"getting-started","children":[["$","a",null,{"href":"#getting-started","className":"peer","children":"Getting Started"}],["$","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",["$","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",["$","p",null,{"children":"First, we need to install Carbon and its NodeJS package, as well as env-cmd to help us set our environment variables, and the typings for node."}],"\n",["$","$L3e",null,{"items":["pnpm","bun","npm","yarn"],"id":"package-manager","children":[["$","$L3f","pnpm",{"value":"pnpm","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":"pnpm add @buape/carbon @buape/carbon-nodejs env-cmd @types/node"}]}]}],["$","$L3f","bun",{"value":"bun","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":"bun add @buape/carbon @buape/carbon-nodejs env-cmd @types/node"}]}]}],["$","$L3f","npm",{"value":"npm","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":"npm install @buape/carbon @buape/carbon-nodejs env-cmd @types/node"}]}]}],["$","$L3f","yarn",{"value":"yarn","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":"yarn add @buape/carbon @buape/carbon-nodejs env-cmd @types/node"}]}]}]]}],"\n",["$","h3",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"setting-up-your-env","children":[["$","a",null,{"href":"#setting-up-your-env","className":"peer","children":"Setting up your .env"}],["$","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":["Let's start by creating your ",["$","code",null,{"children":".env"}]," file, which will contain the secrets and tokens for your app."]}],"\n",["$","$L40",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":".env","icon":"","children":["$","$L41",null,{"children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":["$","span",null,{"children":"CLIENT_ID=\"\""}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"children":"PUBLIC_KEY=\"\""}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"children":"DISCORD_TOKEN=\"\""}]}]]}]}]}],"\n",["$","p",null,{"children":["Now, you need to get your client ID, public key, and token, and fill those out there. ",["$","$L15",null,{"href":"/carbon/developer-portal/create-a-bot","prefetch":"$undefined","replace":"$undefined","children":"You can learn more about these here."}]]}],"\n",["$","h3",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"creating-a-client","children":[["$","a",null,{"href":"#creating-a-client","className":"peer","children":"Creating a Client"}],["$","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":["Now let's start your ",["$","code",null,{"children":"index.ts"}]," file. It will be the entry point for your worker, and the main file that will be executed when your worker is deployed."]}],"\n",["$","p",null,{"children":"First, we need to import the Carbon client."}],"\n",["$","$L40",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","icon":"$42","children":["$","$L41",null,{"children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#6A737D","--shiki-dark":"#6A737D"},"children":"// Import the Carbon client"}]}],"\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":" { Client, ClientMode } "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"from"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"@buape/carbon\""}]]}]]}]}]}],"\n",["$","p",null,{"children":["We also need to import the NodeJS helpers from ",["$","code",null,{"children":"@buape/carbon-nodejs"}],"."]}],"\n",["$","$L40",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","icon":"$43","children":["$","$L41",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":" { dirname } "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"from"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"node:path\""}]]}],"\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":" { fileURLToPath } "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"from"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"node:url\""}]]}],"\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":" { loadCommands, serve } "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"from"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"@buape/carbon-nodejs\""}]]}],"\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":" __dirname"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" dirname"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"("}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"fileURLToPath"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"("}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"import"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"."}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"meta"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":".url))"}]]}]]}]}]}],"\n",["$","p",null,{"children":"Now, let's make our Client."}],"\n",["$","$L40",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","icon":"","children":["$","$L41",null,{"children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":["$","span",null,{"children":"const client = new Client("}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"children":"\t{"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"children":"\t\tclientId: process.env.CLIENT_ID,"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"children":"\t\tpublicKey: process.env.PUBLIC_KEY,"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"children":"\t\ttoken: process.env.DISCORD_TOKEN,"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"children":"\t\tmode: ClientMode.NodeJS,"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"children":"\t},"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"children":"\tawait loadCommands(\"commands\", __dirname)"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"children":")"}]}]]}]}]}],"\n",["$","p",null,{"children":"And finally, we need to host Carbon on a port."}],"\n",["$","$L40",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","icon":"$44","children":["$","$L41",null,{"children":["$","code",null,{"children":["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"serve"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(client, { port: "}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"3000"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" })"}]]}]}]}]}],"\n",["$","h3",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"adding-commands","children":[["$","a",null,{"href":"#adding-commands","className":"peer","children":"Adding 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":["Now that we have our client, we can start adding commands to it. Let's create a new file called ",["$","code",null,{"children":"ping.ts"}]," in the ",["$","code",null,{"children":"src/commands"}]," folder."]}],"\n",["$","$L40",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":"$45","children":["$","$L41",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":[["$","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":"\"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":"This is a basic command, you set the name and description, and then add a run function that will be called when the command is used."}],"\n",["$","p",null,{"children":["Now, let's add this command to our client. We already created the ",["$","code",null,{"children":"__dirname"}]," variable for where our code is running earlier, so we can use that and load all the commands in that folder."]}],"\n",["$","$L40",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":"$46","children":["$","$L41",null,{"children":["$","code",null,{"children":[["$","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":"\t{"}]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t\tclientId: env."}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"CLIENT_ID"}],["$","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\tpublicKey: env."}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"PUBLIC_KEY"}],["$","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\ttoken: env."}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"DISCORD_TOKEN"}],["$","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\tmode: ClientMode.NodeJS,"}]}],"\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":"#D73A49","--shiki-dark":"#F97583"},"children":"\tawait"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" loadCommands"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"("}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"commands\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":", __dirname)"}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":")"}]}]]}]}]}],"\n",["$","p",null,{"children":["And that's it! You now have a basic Carbon bot running on NodeJS.\nIf you want to add more commands, just create more classes in the ",["$","code",null,{"children":"src/commands"}]," folder, and add them to the client in the ",["$","code",null,{"children":"src/index.ts"}]," file."]}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"running","children":[["$","a",null,{"href":"#running","className":"peer","children":"Running"}],["$","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 run your bot, let's add some scripts to your ",["$","code",null,{"children":"package.json"}]," file."]}],"\n",["$","p",null,{"children":["Let's also add some scripts to our ",["$","code",null,{"children":"package.json"}]," file."]}],"\n",["$","$L40",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":"package.json","icon":"","children":["$","$L41",null,{"children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"{"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#6A737D","--shiki-dark":"#6A737D"},"children":"\t// ..."}]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"\t\"scripts\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":": {"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"\t\t\"start\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":": "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"tsc && env-cmd --node .\""}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t},"}]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#6A737D","--shiki-dark":"#6A737D"},"children":"\t// ..."}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"}"}]}]]}]}]}],"\n",["$","p",null,{"children":"Then you can use this command:"}],"\n",["$","$L3e",null,{"items":["pnpm","bun","npm","yarn"],"id":"package-manager","children":[["$","$L3f","pnpm",{"value":"pnpm","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":"pnpm run start"}]}]}],["$","$L3f","bun",{"value":"bun","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":"bun run start"}]}]}],["$","$L3f","npm",{"value":"npm","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":"npm run start"}]}]}],["$","$L3f","yarn",{"value":"yarn","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":"yarn run start"}]}]}]]}],"\n",["$","p",null,{"children":["This will compile your code, and run your bot with the environment variables from your ",["$","code",null,{"children":".env"}]," file."]}],"\n",["$","p",null,{"children":["Now you'll need to setup your bot on the ",["$","a",null,{"href":"https://discord.com/developers/applications","rel":"noreferrer noopener","target":"_blank","children":"Discord Developer Portal"}],". Take a look at the following cards for more information."]}],"\n",["$","div",null,{"children":[["$","$L15",null,{"href":"/","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[["$","div",null,{"className":"mb-2 w-fit rounded-md border bg-fd-muted p-2 text-fd-muted-foreground [&_svg]:size-4","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-layout-dashboard","children":[["$","rect","10lvy0",{"width":"7","height":"9","x":"3","y":"3","rx":"1"}],["$","rect","16une8",{"width":"7","height":"5","x":"14","y":"3","rx":"1"}],["$","rect","1hutg5",{"width":"7","height":"9","x":"14","y":"12","rx":"1"}],["$","rect","ldoo1y",{"width":"7","height":"5","x":"3","y":"16","rx":"1"}],"$undefined"]}]}],["$","h3",null,{"className":"mb-1 font-medium","children":"Discord Developer Portal"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"Learn how to setup your bot on the Discord Developer Portal."}]]}],["$","$L15",null,{"href":"/","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[["$","div",null,{"className":"mb-2 w-fit rounded-md border bg-fd-muted p-2 text-fd-muted-foreground [&_svg]:size-4","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-folder-git","children":[["$","circle","1c1ljs",{"cx":"12","cy":"13","r":"2"}],["$","path","1kt360",{"d":"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"}],["$","path","1dgedf",{"d":"M14 13h3"}],["$","path","1pygq7",{"d":"M7 13h3"}],"$undefined"]}]}],["$","h3",null,{"className":"mb-1 font-medium","children":"Example Project"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"See a full example project for Carbon on NodeJS."}]]}]],"className":"grid grid-cols-1 gap-4 sm:grid-cols-2"}]],null]}]],["$","div",null,{"className":"mt-auto"}],["$","$L47",null,{"date":"$D2024-09-11T14:49:03.000Z"}],["$","$L48",null,{"items":"$undefined"}]]}]]}],["$","$L49",null,{"header":"$undefined","footer":["$undefined",["$","$36",null,{"fallback":null,"children":[["$","$L37",null,{"moduleIds":"$4a"}],["$","$L38",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/getting-started/nodejs.mdx"}]]}]],"children":["$","$L39",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L4b",null,{"parallelRouterKey":"children","segmentPath":["children","$4c","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4d",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":["$","$L4e",null,{"search":{"enabled":false},"children":["$","$L4b",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4d",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],["$L4f",null]]]] +0:["ob-je4azGQ3_nWAi-Q2wj",[[["",{"children":[["slug","carbon/getting-started/nodejs","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"getting-started\",\"nodejs\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/getting-started/nodejs","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":"File Structure","url":"#file-structure","depth":2},{"title":"Getting Started","url":"#getting-started","depth":2},{"title":"Installation","url":"#installation","depth":3},{"title":"Setting up your .env","url":"#setting-up-your-env","depth":3},{"title":"Creating a Client","url":"#creating-a-client","depth":3},{"title":"Adding Commands","url":"#adding-commands","depth":3},{"title":"Running","url":"#running","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/getting-started/nodejs.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":"Node.js","className":"text-3xl font-bold"}],["$","p",null,{"children":"Getting started with Carbon on Node.js","className":"mb-8 text-lg text-fd-muted-foreground"}],["$","div",null,{"className":"prose","children":[[["$","p",null,{"children":"Node.js is a popular choice for running your bot, and has first-class support from Carbon."}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"file-structure","children":[["$","a",null,{"href":"#file-structure","className":"peer","children":"File Structure"}],["$","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",["$","$L3b",null,{"children":[["$","$L3c",null,{"name":"src","defaultOpen":true,"children":[["$","$L3d",null,{"name":"index.ts"}],["$","$L3c",null,{"name":"commands","defaultOpen":true,"children":["$","$L3d",null,{"name":"ping.ts"}]}]]}],["$","$L3d",null,{"name":".env"}],["$","$L3d",null,{"name":"package.json"}]]}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"getting-started","children":[["$","a",null,{"href":"#getting-started","className":"peer","children":"Getting Started"}],["$","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",["$","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",["$","p",null,{"children":"First, we need to install Carbon and its NodeJS package, as well as env-cmd to help us set our environment variables, and the typings for node."}],"\n",["$","$L3e",null,{"items":["pnpm","npm","yarn"],"id":"package-manager","children":[["$","$L3f","pnpm",{"value":"pnpm","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":"pnpm add @buape/carbon @buape/carbon-nodejs env-cmd @types/node"}]}]}],["$","$L3f","npm",{"value":"npm","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":"npm install @buape/carbon @buape/carbon-nodejs env-cmd @types/node"}]}]}],["$","$L3f","yarn",{"value":"yarn","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":"yarn add @buape/carbon @buape/carbon-nodejs env-cmd @types/node"}]}]}]]}],"\n",["$","h3",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"setting-up-your-env","children":[["$","a",null,{"href":"#setting-up-your-env","className":"peer","children":"Setting up your .env"}],["$","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":["Let's start by creating your ",["$","code",null,{"children":".env"}]," file, which will contain the secrets and tokens for your app."]}],"\n",["$","$L40",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":".env","icon":"","children":["$","$L41",null,{"children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":["$","span",null,{"children":"CLIENT_ID=\"\""}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"children":"PUBLIC_KEY=\"\""}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"children":"DISCORD_TOKEN=\"\""}]}]]}]}]}],"\n",["$","p",null,{"children":["Now, you need to get your client ID, public key, and token, and fill those out there. ",["$","$L15",null,{"href":"/carbon/developer-portal/create-a-bot","prefetch":"$undefined","replace":"$undefined","children":"You can learn more about these here."}]]}],"\n",["$","h3",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"creating-a-client","children":[["$","a",null,{"href":"#creating-a-client","className":"peer","children":"Creating a Client"}],["$","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":["Now let's start your ",["$","code",null,{"children":"index.ts"}]," file. It will be the entry point for your worker, and the main file that will be executed when your worker is deployed."]}],"\n",["$","p",null,{"children":"First, we need to import the Carbon client."}],"\n",["$","$L40",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","icon":"$42","children":["$","$L41",null,{"children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#6A737D","--shiki-dark":"#6A737D"},"children":"// Import the Carbon client"}]}],"\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":" { Client, ClientMode } "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"from"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"@buape/carbon\""}]]}]]}]}]}],"\n",["$","p",null,{"children":["We also need to import the NodeJS helpers from ",["$","code",null,{"children":"@buape/carbon-nodejs"}],"."]}],"\n",["$","$L40",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","icon":"$43","children":["$","$L41",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":" { dirname } "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"from"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"node:path\""}]]}],"\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":" { fileURLToPath } "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"from"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"node:url\""}]]}],"\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":" { loadCommands, serve } "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"from"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" \"@buape/carbon-nodejs\""}]]}],"\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":" __dirname"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" dirname"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"("}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"fileURLToPath"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"("}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"import"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"."}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"meta"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":".url))"}]]}]]}]}]}],"\n",["$","p",null,{"children":"Now, let's make our Client."}],"\n",["$","$L40",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","icon":"","children":["$","$L41",null,{"children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":["$","span",null,{"children":"const client = new Client("}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"children":"\t{"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"children":"\t\tclientId: process.env.CLIENT_ID,"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"children":"\t\tpublicKey: process.env.PUBLIC_KEY,"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"children":"\t\ttoken: process.env.DISCORD_TOKEN,"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"children":"\t\tmode: ClientMode.NodeJS,"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"children":"\t},"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"children":"\tawait loadCommands(\"commands\", __dirname)"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"children":")"}]}]]}]}]}],"\n",["$","p",null,{"children":"And finally, we need to host Carbon on a port."}],"\n",["$","$L40",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","icon":"$44","children":["$","$L41",null,{"children":["$","code",null,{"children":["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"serve"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(client, { port: "}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"3000"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" })"}]]}]}]}]}],"\n",["$","h3",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"adding-commands","children":[["$","a",null,{"href":"#adding-commands","className":"peer","children":"Adding 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":["Now that we have our client, we can start adding commands to it. Let's create a new file called ",["$","code",null,{"children":"ping.ts"}]," in the ",["$","code",null,{"children":"src/commands"}]," folder."]}],"\n",["$","$L40",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":"$45","children":["$","$L41",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":[["$","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":"\"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":"This is a basic command, you set the name and description, and then add a run function that will be called when the command is used."}],"\n",["$","p",null,{"children":["Now, let's add this command to our client. We already created the ",["$","code",null,{"children":"__dirname"}]," variable for where our code is running earlier, so we can use that and load all the commands in that folder."]}],"\n",["$","$L40",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":"$46","children":["$","$L41",null,{"children":["$","code",null,{"children":[["$","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":"\t{"}]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t\tclientId: env."}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"CLIENT_ID"}],["$","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\tpublicKey: env."}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"PUBLIC_KEY"}],["$","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\ttoken: env."}],["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"DISCORD_TOKEN"}],["$","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\tmode: ClientMode.NodeJS,"}]}],"\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":"#D73A49","--shiki-dark":"#F97583"},"children":"\tawait"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" loadCommands"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"("}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"commands\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":", __dirname)"}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":")"}]}]]}]}]}],"\n",["$","p",null,{"children":["And that's it! You now have a basic Carbon bot running on NodeJS.\nIf you want to add more commands, just create more classes in the ",["$","code",null,{"children":"src/commands"}]," folder, and add them to the client in the ",["$","code",null,{"children":"src/index.ts"}]," file."]}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"running","children":[["$","a",null,{"href":"#running","className":"peer","children":"Running"}],["$","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 run your bot, let's add some scripts to your ",["$","code",null,{"children":"package.json"}]," file."]}],"\n",["$","p",null,{"children":["Let's also add some scripts to our ",["$","code",null,{"children":"package.json"}]," file."]}],"\n",["$","$L40",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":"package.json","icon":"","children":["$","$L41",null,{"children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"{"}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#6A737D","--shiki-dark":"#6A737D"},"children":"\t// ..."}]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"\t\"scripts\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":": {"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":"\t\t\"start\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":": "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"tsc && env-cmd --node .\""}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"\t},"}]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#6A737D","--shiki-dark":"#6A737D"},"children":"\t// ..."}]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"}"}]}]]}]}]}],"\n",["$","p",null,{"children":"Then you can use this command:"}],"\n",["$","$L3e",null,{"items":["pnpm","npm","yarn"],"id":"package-manager","children":[["$","$L3f","pnpm",{"value":"pnpm","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":"pnpm run start"}]}]}],["$","$L3f","npm",{"value":"npm","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":"npm run start"}]}]}],["$","$L3f","yarn",{"value":"yarn","children":["$","$L40",null,{"allowCopy":true,"keepBackground":true,"children":["$","$L41",null,{"children":"yarn run start"}]}]}]]}],"\n",["$","p",null,{"children":["This will compile your code, and run your bot with the environment variables from your ",["$","code",null,{"children":".env"}]," file."]}],"\n",["$","p",null,{"children":["Now you'll need to setup your bot on the ",["$","a",null,{"href":"https://discord.com/developers/applications","rel":"noreferrer noopener","target":"_blank","children":"Discord Developer Portal"}],". Take a look at the following cards for more information."]}],"\n",["$","div",null,{"children":[["$","$L15",null,{"href":"/","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[["$","div",null,{"className":"mb-2 w-fit rounded-md border bg-fd-muted p-2 text-fd-muted-foreground [&_svg]:size-4","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-layout-dashboard","children":[["$","rect","10lvy0",{"width":"7","height":"9","x":"3","y":"3","rx":"1"}],["$","rect","16une8",{"width":"7","height":"5","x":"14","y":"3","rx":"1"}],["$","rect","1hutg5",{"width":"7","height":"9","x":"14","y":"12","rx":"1"}],["$","rect","ldoo1y",{"width":"7","height":"5","x":"3","y":"16","rx":"1"}],"$undefined"]}]}],["$","h3",null,{"className":"mb-1 font-medium","children":"Discord Developer Portal"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"Learn how to setup your bot on the Discord Developer Portal."}]]}],["$","$L15",null,{"href":"/","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[["$","div",null,{"className":"mb-2 w-fit rounded-md border bg-fd-muted p-2 text-fd-muted-foreground [&_svg]:size-4","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-folder-git","children":[["$","circle","1c1ljs",{"cx":"12","cy":"13","r":"2"}],["$","path","1kt360",{"d":"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"}],["$","path","1dgedf",{"d":"M14 13h3"}],["$","path","1pygq7",{"d":"M7 13h3"}],"$undefined"]}]}],["$","h3",null,{"className":"mb-1 font-medium","children":"Example Project"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"See a full example project for Carbon on NodeJS."}]]}]],"className":"grid grid-cols-1 gap-4 sm:grid-cols-2"}]],null]}]],["$","div",null,{"className":"mt-auto"}],["$","$L47",null,{"date":"$D2024-09-11T20:53:15.000Z"}],["$","$L48",null,{"items":"$undefined"}]]}]]}],["$","$L49",null,{"header":"$undefined","footer":["$undefined",["$","$36",null,{"fallback":null,"children":[["$","$L37",null,{"moduleIds":"$4a"}],["$","$L38",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/getting-started/nodejs.mdx"}]]}]],"children":["$","$L39",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L4b",null,{"parallelRouterKey":"children","segmentPath":["children","$4c","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4d",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":["$","$L4e",null,{"search":{"enabled":false},"children":["$","$L4b",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4d",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],["$L4f",null]]]] 4f:[["$","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/helpful-guides.html b/carbon/helpful-guides.html index 0c7493f1..b21baa77 100644 --- a/carbon/helpful-guides.html +++ b/carbon/helpful-guides.html @@ -1 +1 @@ -
    Carbon

    On this page

    No Headings
    Edit on GitHub
    \ No newline at end of file +
    Carbon

    On this page

    No Headings
    Edit on GitHub
    \ No newline at end of file diff --git a/carbon/helpful-guides.txt b/carbon/helpful-guides.txt index fd47538c..ab9a9ce6 100644 --- a/carbon/helpful-guides.txt +++ b/carbon/helpful-guides.txt @@ -1,25 +1,25 @@ -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"] 2f:"$Sreact.suspense" -30: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"] -31: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"] -32: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"] -33: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"] -34: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"] -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"],"Footer"] -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"],"Toc"] +30: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"] +31: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"] +32: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"] +33: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"] +34: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"] +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"],"Footer"] +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"],"Toc"] 38:I[1907,[],""] 3a:I[1851,[],""] -3b:I[6225,["808","static/chunks/808-6dceee3f6f2f7cd1.js","185","static/chunks/app/layout-26077b10d25ec523.js"],"RootProvider"] +3b: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"] @@ -54,8 +54,8 @@ f:["$","div",null,"$10"] 25:{"type":"icon","url":"https://github.com/fuma-nama/fumadocs","text":"Github","icon":"$26","external":true} 1e:["$1f","$21","$23","$25"] 2e:[] -37:["../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"] +37:["../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"] 39:["slug","carbon/helpful-guides","c"] -0:["ajd-SQ2r2d7teD8cRVxbO",[[["",{"children":[["slug","carbon/helpful-guides","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"helpful-guides\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/helpful-guides","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":[],"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",["$","$2f",null,{"fallback":null,"children":[["$","$L30",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"]}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/helpful-guides/index.mdx"}]]}]],"children":["$","$L32",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":[["$","$L33",null,{}],[["$","h1",null,{"children":"Helpful Guides","className":"text-3xl font-bold"}],null,["$","div",null,{"className":"prose","children":["$undefined",["$","div",null,{"children":[["$","$L15",null,{"href":"/carbon/helpful-guides/custom-router","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[null,["$","h3",null,{"className":"mb-1 font-medium","children":"Custom Router"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"No Description"}]]}],["$","$L15",null,{"href":"/carbon/helpful-guides/partials","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[null,["$","h3",null,{"className":"mb-1 font-medium","children":"Partials"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"No Description"}]]}],["$","$L15",null,{"href":"/carbon/helpful-guides/responses","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[null,["$","h3",null,{"className":"mb-1 font-medium","children":"Replying vs Deferring vs Acknowledging"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"No Description"}]]}],["$","$L15",null,{"href":"/carbon/helpful-guides/why-classes","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[null,["$","h3",null,{"className":"mb-1 font-medium","children":"Why Classes?"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"No Description"}]]}]],"className":"grid grid-cols-1 gap-4 sm:grid-cols-2"}]]}]],["$","div",null,{"className":"mt-auto"}],["$","$L34",null,{"date":"$D2024-09-11T14:49:03.000Z"}],["$","$L35",null,{"items":"$undefined"}]]}]]}],["$","$L36",null,{"header":"$undefined","footer":["$undefined",["$","$2f",null,{"fallback":null,"children":[["$","$L30",null,{"moduleIds":"$37"}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/helpful-guides/index.mdx"}]]}]],"children":["$","$L32",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L38",null,{"parallelRouterKey":"children","segmentPath":["children","$39","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3a",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":["$","$L3b",null,{"search":{"enabled":false},"children":["$","$L38",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3a",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],["$L3c",null]]]] +0:["ob-je4azGQ3_nWAi-Q2wj",[[["",{"children":[["slug","carbon/helpful-guides","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"helpful-guides\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/helpful-guides","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":[],"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",["$","$2f",null,{"fallback":null,"children":[["$","$L30",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"]}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/helpful-guides/index.mdx"}]]}]],"children":["$","$L32",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":[["$","$L33",null,{}],[["$","h1",null,{"children":"Helpful Guides","className":"text-3xl font-bold"}],null,["$","div",null,{"className":"prose","children":["$undefined",["$","div",null,{"children":[["$","$L15",null,{"href":"/carbon/helpful-guides/custom-router","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[null,["$","h3",null,{"className":"mb-1 font-medium","children":"Custom Router"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"No Description"}]]}],["$","$L15",null,{"href":"/carbon/helpful-guides/partials","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[null,["$","h3",null,{"className":"mb-1 font-medium","children":"Partials"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"No Description"}]]}],["$","$L15",null,{"href":"/carbon/helpful-guides/responses","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[null,["$","h3",null,{"className":"mb-1 font-medium","children":"Replying vs Deferring vs Acknowledging"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"No Description"}]]}],["$","$L15",null,{"href":"/carbon/helpful-guides/why-classes","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[null,["$","h3",null,{"className":"mb-1 font-medium","children":"Why Classes?"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"No Description"}]]}]],"className":"grid grid-cols-1 gap-4 sm:grid-cols-2"}]]}]],["$","div",null,{"className":"mt-auto"}],["$","$L34",null,{"date":"$D2024-09-11T20:53:15.000Z"}],["$","$L35",null,{"items":"$undefined"}]]}]]}],["$","$L36",null,{"header":"$undefined","footer":["$undefined",["$","$2f",null,{"fallback":null,"children":[["$","$L30",null,{"moduleIds":"$37"}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/helpful-guides/index.mdx"}]]}]],"children":["$","$L32",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L38",null,{"parallelRouterKey":"children","segmentPath":["children","$39","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3a",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":["$","$L3b",null,{"search":{"enabled":false},"children":["$","$L38",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3a",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],["$L3c",null]]]] 3c:[["$","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/helpful-guides/custom-router.html b/carbon/helpful-guides/custom-router.html index bc6bca5d..8cf15b6a 100644 --- a/carbon/helpful-guides/custom-router.html +++ b/carbon/helpful-guides/custom-router.html @@ -1,4 +1,4 @@ -
    Carbon

    Custom Router

    If you want to use a custom router for your bot, you can use the handle method on the client.

    +
    Carbon

    Custom Router

    If you want to use a custom router for your bot, you can use the handle method on the client.

    import { Client, ClientMode } from "@buape/carbon"
     import { AutoRouter } from 'itty-router'
      
    @@ -16,4 +16,4 @@
      
     router.post("/interaction", async (req) => {
     	return await client.handle(req)
    -})

    Last updated on

    On this page

    No Headings
    Edit on GitHub
    \ No newline at end of file +})

    Last updated on

    On this page

    No Headings
    Edit on GitHub
    \ No newline at end of file diff --git a/carbon/helpful-guides/custom-router.txt b/carbon/helpful-guides/custom-router.txt index 96b71a23..a1729a18 100644 --- a/carbon/helpful-guides/custom-router.txt +++ b/carbon/helpful-guides/custom-router.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"] 2f:"$Sreact.suspense" -30: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"] -31: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"] -32: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"] -33: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"] -34: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"] -36: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"] -37: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"] -38: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"] -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"],"Toc"] +30: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"] +31: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"] +32: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"] +33: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"] +34: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"] +36: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"] +37: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"] +38: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"] +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"],"Toc"] 3b:I[1907,[],""] 3d:I[1851,[],""] -3e:I[6225,["808","static/chunks/808-6dceee3f6f2f7cd1.js","185","static/chunks/app/layout-26077b10d25ec523.js"],"RootProvider"] +3e: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"] @@ -56,8 +56,8 @@ f:["$","div",null,"$10"] 25:{"type":"icon","url":"https://github.com/fuma-nama/fumadocs","text":"Github","icon":"$26","external":true} 1e:["$1f","$21","$23","$25"] 2e:[] -35:T4dc,3a:["../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"] +35:T4dc,3a:["../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"] 3c:["slug","carbon/helpful-guides/custom-router","c"] -0:["ajd-SQ2r2d7teD8cRVxbO",[[["",{"children":[["slug","carbon/helpful-guides/custom-router","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"helpful-guides\",\"custom-router\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/helpful-guides/custom-router","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":[],"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",["$","$2f",null,{"fallback":null,"children":[["$","$L30",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"]}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/helpful-guides/custom-router.mdx"}]]}]],"children":["$","$L32",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":[["$","$L33",null,{}],[["$","h1",null,{"children":"Custom Router","className":"text-3xl font-bold"}],null,["$","div",null,{"className":"prose","children":[[["$","p",null,{"children":["If you want to use a custom router for your bot, you can use the ",["$","code",null,{"children":"handle"}]," method on the client."]}],"\n",["$","$L34",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","icon":"$35","children":["$","$L36",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, ClientMode } "}],["$","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":" { AutoRouter } "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"from"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" 'itty-router'"}]]}],"\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\""}],["$","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":"\tmode: ClientMode.NodeJS"}]}],"\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":" router"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" AutoRouter"}],["$","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":"router."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"get"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"("}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"/\""}],["$","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":"\treturn"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" new"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" Response"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"("}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"Hello world\""}],["$","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":"})"}]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"router."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"post"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"("}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"/interaction\""}],["$","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":"req"}],["$","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":"\treturn"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" await"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" client."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"handle"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(req)"}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"})"}]}]]}]}]}]],null]}]],["$","div",null,{"className":"mt-auto"}],["$","$L37",null,{"date":"$D2024-09-11T14:49:03.000Z"}],["$","$L38",null,{"items":"$undefined"}]]}]]}],["$","$L39",null,{"header":"$undefined","footer":["$undefined",["$","$2f",null,{"fallback":null,"children":[["$","$L30",null,{"moduleIds":"$3a"}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/helpful-guides/custom-router.mdx"}]]}]],"children":["$","$L32",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L3b",null,{"parallelRouterKey":"children","segmentPath":["children","$3c","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3d",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":["$","$L3e",null,{"search":{"enabled":false},"children":["$","$L3b",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3d",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],["$L3f",null]]]] +0:["ob-je4azGQ3_nWAi-Q2wj",[[["",{"children":[["slug","carbon/helpful-guides/custom-router","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"helpful-guides\",\"custom-router\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/helpful-guides/custom-router","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":[],"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",["$","$2f",null,{"fallback":null,"children":[["$","$L30",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"]}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/helpful-guides/custom-router.mdx"}]]}]],"children":["$","$L32",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":[["$","$L33",null,{}],[["$","h1",null,{"children":"Custom Router","className":"text-3xl font-bold"}],null,["$","div",null,{"className":"prose","children":[[["$","p",null,{"children":["If you want to use a custom router for your bot, you can use the ",["$","code",null,{"children":"handle"}]," method on the client."]}],"\n",["$","$L34",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","icon":"$35","children":["$","$L36",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, ClientMode } "}],["$","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":" { AutoRouter } "}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"from"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" 'itty-router'"}]]}],"\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\""}],["$","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":"\tmode: ClientMode.NodeJS"}]}],"\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":" router"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" ="}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" AutoRouter"}],["$","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":"router."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"get"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"("}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"/\""}],["$","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":"\treturn"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" new"}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":" Response"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"("}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"Hello world\""}],["$","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":"})"}]}],"\n",["$","span",null,{"className":"line","children":" "}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"router."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"post"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"("}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"/interaction\""}],["$","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":"req"}],["$","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":"\treturn"}],["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":" await"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" client."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"handle"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(req)"}]]}],"\n",["$","span",null,{"className":"line","children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"})"}]}]]}]}]}]],null]}]],["$","div",null,{"className":"mt-auto"}],["$","$L37",null,{"date":"$D2024-09-11T20:53:15.000Z"}],["$","$L38",null,{"items":"$undefined"}]]}]]}],["$","$L39",null,{"header":"$undefined","footer":["$undefined",["$","$2f",null,{"fallback":null,"children":[["$","$L30",null,{"moduleIds":"$3a"}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/helpful-guides/custom-router.mdx"}]]}]],"children":["$","$L32",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L3b",null,{"parallelRouterKey":"children","segmentPath":["children","$3c","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3d",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":["$","$L3e",null,{"search":{"enabled":false},"children":["$","$L3b",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3d",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],["$L3f",null]]]] 3f:[["$","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/helpful-guides/developer-portal.html b/carbon/helpful-guides/developer-portal.html index 9bf4a6c3..f8f5c4fe 100644 --- a/carbon/helpful-guides/developer-portal.html +++ b/carbon/helpful-guides/developer-portal.html @@ -1 +1 @@ -
    Carbon

    On this page

    No Headings
    Edit on GitHub
    \ No newline at end of file +
    Carbon

    On this page

    No Headings
    Edit on GitHub
    \ No newline at end of file diff --git a/carbon/helpful-guides/developer-portal.txt b/carbon/helpful-guides/developer-portal.txt index dcfff911..475062a5 100644 --- a/carbon/helpful-guides/developer-portal.txt +++ b/carbon/helpful-guides/developer-portal.txt @@ -1,25 +1,25 @@ -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"] 2f:"$Sreact.suspense" -30: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"] -31: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"] -32: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"] -33: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"] -34: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"] -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"],"Footer"] -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"],"Toc"] +30: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"] +31: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"] +32: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"] +33: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"] +34: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"] +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"],"Footer"] +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"],"Toc"] 38:I[1907,[],""] 3a:I[1851,[],""] -3b:I[6225,["808","static/chunks/808-6dceee3f6f2f7cd1.js","185","static/chunks/app/layout-26077b10d25ec523.js"],"RootProvider"] +3b: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"] @@ -54,8 +54,8 @@ f:["$","div",null,"$10"] 25:{"type":"icon","url":"https://github.com/fuma-nama/fumadocs","text":"Github","icon":"$26","external":true} 1e:["$1f","$21","$23","$25"] 2e:[] -37:["../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"] +37:["../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"] 39:["slug","carbon/helpful-guides/developer-portal","c"] -0:["ajd-SQ2r2d7teD8cRVxbO",[[["",{"children":[["slug","carbon/helpful-guides/developer-portal","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"helpful-guides\",\"developer-portal\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/helpful-guides/developer-portal","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":[],"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",["$","$2f",null,{"fallback":null,"children":[["$","$L30",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"]}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/helpful-guides/developer-portal/index.mdx"}]]}]],"children":["$","$L32",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":[["$","$L33",null,{}],[["$","h1",null,{"children":"Developer Portal","className":"text-3xl font-bold"}],null,["$","div",null,{"className":"prose","children":["$undefined",["$","div",null,{"children":[["$","$L15",null,{"href":"/carbon/helpful-guides/developer-portal/create-a-bot","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[null,["$","h3",null,{"className":"mb-1 font-medium","children":"Create a Bot"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"No Description"}]]}],["$","$L15",null,{"href":"/carbon/helpful-guides/developer-portal/urls","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[null,["$","h3",null,{"className":"mb-1 font-medium","children":"Setting URLs"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"No Description"}]]}]],"className":"grid grid-cols-1 gap-4 sm:grid-cols-2"}]]}]],["$","div",null,{"className":"mt-auto"}],["$","$L34",null,{"date":"$D2024-09-11T14:49:03.000Z"}],["$","$L35",null,{"items":"$undefined"}]]}]]}],["$","$L36",null,{"header":"$undefined","footer":["$undefined",["$","$2f",null,{"fallback":null,"children":[["$","$L30",null,{"moduleIds":"$37"}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/helpful-guides/developer-portal/index.mdx"}]]}]],"children":["$","$L32",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L38",null,{"parallelRouterKey":"children","segmentPath":["children","$39","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3a",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":["$","$L3b",null,{"search":{"enabled":false},"children":["$","$L38",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3a",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],["$L3c",null]]]] +0:["ob-je4azGQ3_nWAi-Q2wj",[[["",{"children":[["slug","carbon/helpful-guides/developer-portal","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"helpful-guides\",\"developer-portal\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/helpful-guides/developer-portal","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":[],"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",["$","$2f",null,{"fallback":null,"children":[["$","$L30",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"]}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/helpful-guides/developer-portal/index.mdx"}]]}]],"children":["$","$L32",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":[["$","$L33",null,{}],[["$","h1",null,{"children":"Developer Portal","className":"text-3xl font-bold"}],null,["$","div",null,{"className":"prose","children":["$undefined",["$","div",null,{"children":[["$","$L15",null,{"href":"/carbon/helpful-guides/developer-portal/create-a-bot","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[null,["$","h3",null,{"className":"mb-1 font-medium","children":"Create a Bot"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"No Description"}]]}],["$","$L15",null,{"href":"/carbon/helpful-guides/developer-portal/urls","prefetch":"$undefined","replace":"$undefined","className":"not-prose block rounded-lg border bg-fd-card p-4 text-sm text-fd-card-foreground shadow-md transition-colors hover:bg-fd-accent/80","children":[null,["$","h3",null,{"className":"mb-1 font-medium","children":"Setting URLs"}],["$","p",null,{"className":"text-fd-muted-foreground","children":"No Description"}]]}]],"className":"grid grid-cols-1 gap-4 sm:grid-cols-2"}]]}]],["$","div",null,{"className":"mt-auto"}],["$","$L34",null,{"date":"$D2024-09-11T20:53:15.000Z"}],["$","$L35",null,{"items":"$undefined"}]]}]]}],["$","$L36",null,{"header":"$undefined","footer":["$undefined",["$","$2f",null,{"fallback":null,"children":[["$","$L30",null,{"moduleIds":"$37"}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/helpful-guides/developer-portal/index.mdx"}]]}]],"children":["$","$L32",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L38",null,{"parallelRouterKey":"children","segmentPath":["children","$39","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3a",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":["$","$L3b",null,{"search":{"enabled":false},"children":["$","$L38",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3a",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],["$L3c",null]]]] 3c:[["$","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/helpful-guides/developer-portal/create-a-bot.html b/carbon/helpful-guides/developer-portal/create-a-bot.html index 0790eba4..b085288e 100644 --- a/carbon/helpful-guides/developer-portal/create-a-bot.html +++ b/carbon/helpful-guides/developer-portal/create-a-bot.html @@ -1,4 +1,4 @@ -
    Carbon

    Create a Bot

    The Discord Developer Portal is the main place that you can manage your bot on Discord.

    +
    Carbon

    On this page

    Edit on GitHub
    \ No newline at end of file +Token

    Last updated on

    On this page

    Edit on GitHub
    \ No newline at end of file diff --git a/carbon/helpful-guides/developer-portal/create-a-bot.txt b/carbon/helpful-guides/developer-portal/create-a-bot.txt index 931b0342..bceb6d8d 100644 --- a/carbon/helpful-guides/developer-portal/create-a-bot.txt +++ b/carbon/helpful-guides/developer-portal/create-a-bot.txt @@ -1,28 +1,28 @@ -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"] 30:"$Sreact.suspense" -31: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"] -32: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"] -33: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"] -34: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"] -35:I[3197,["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"],"ImageZoom"] -36: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"] -37: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"] -38: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"] -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"],"Footer"] -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"],"Toc"] +31: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"] +32: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"] +33: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"] +34: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"] +35:I[4462,["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"],"ImageZoom"] +36: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"] +37: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"] +38: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"] +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"],"Footer"] +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"],"Toc"] 3c:I[1907,[],""] 3e:I[1851,[],""] -3f:I[6225,["808","static/chunks/808-6dceee3f6f2f7cd1.js","185","static/chunks/app/layout-26077b10d25ec523.js"],"RootProvider"] +3f: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"] @@ -58,8 +58,8 @@ f:["$","div",null,"$10"] 1e:["$1f","$21","$23","$25"] 2f:{"title":"Creating a Bot","url":"#creating-a-bot","depth":2} 2e:["$2f"] -3b:["../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:["../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"] 3d:["slug","carbon/helpful-guides/developer-portal/create-a-bot","c"] -0:["ajd-SQ2r2d7teD8cRVxbO",[[["",{"children":[["slug","carbon/helpful-guides/developer-portal/create-a-bot","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"helpful-guides\",\"developer-portal\",\"create-a-bot\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/helpful-guides/developer-portal/create-a-bot","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 Bot","url":"#creating-a-bot","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",["$","$30",null,{"fallback":null,"children":[["$","$L31",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"]}],["$","$L32",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/helpful-guides/developer-portal/create-a-bot.mdx"}]]}]],"children":["$","$L33",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":[["$","$L34",null,{}],[["$","h1",null,{"children":"Create a Bot","className":"text-3xl font-bold"}],null,["$","div",null,{"className":"prose","children":[[["$","p",null,{"children":["The ",["$","a",null,{"href":"https://discord.com/developers/applications","rel":"noreferrer noopener","target":"_blank","children":"Discord Developer Portal"}]," is the main place that you can manage your bot on Discord."]}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"creating-a-bot","children":[["$","a",null,{"href":"#creating-a-bot","className":"peer","children":"Creating a Bot"}],["$","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 Discord bot, you'll need to head over to the ",["$","a",null,{"href":"https://discord.com/developers/applications","rel":"noreferrer noopener","target":"_blank","children":"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."]}],"\n",["$","p",null,{"children":"You should now see a page that shows information about your bot. You can add an avatar and bio for your bot here."}],"\n",["$","$L35",null,{"src":"https://cdn.buape.com/carbon/docs/info-page.png","alt":"Info Page","width":708,"height":316.5}],"\n",["$","p",null,{"children":"You'll also want to copy the Client ID and the Public Key there, you'll need those for your application."}],"\n",["$","p",null,{"children":"Once you've saved your changes, click on the Bot tab on the left panel."}],"\n",["$","p",null,{"children":"After you open the bot tab, you should see a blue button that says Reset Token. Click on it and confirm that you want to reset your bot's token. You should now see a new section called Token with a button that says Copy. When we ask you to paste your bot's token somewhere, this is the value that you need to put in."}],"\n",["$","p",null,{"children":"Tokens are in the format similar to this one:"}],"\n",["$","$L36",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","icon":"","children":["$","$L37",null,{"children":["$","code",null,{"children":["$","span",null,{"className":"line","children":["$","span",null,{"children":"MTA4NjEwNTYxMDUxMDE1NTg1Nw.GNt-U8.OSHy-g-5FlfESnu3Z9MEEMJLHiRthXajiXNwiE"}]}]}]}]}],"\n",["$","p",null,{"children":"If you accidentally leak your bot's token or lose it, you need to come back to this page and reset your bot's token again which will reveal the new token, invalidating all old ones."}],"\n",["$","$L35",null,{"src":"https://cdn.buape.com/carbon/docs/bot-page.png","alt":"Token","width":708,"height":316.5}]],null]}]],["$","div",null,{"className":"mt-auto"}],["$","$L38",null,{"date":"$D2024-09-11T14:49:03.000Z"}],["$","$L39",null,{"items":"$undefined"}]]}]]}],["$","$L3a",null,{"header":"$undefined","footer":["$undefined",["$","$30",null,{"fallback":null,"children":[["$","$L31",null,{"moduleIds":"$3b"}],["$","$L32",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/helpful-guides/developer-portal/create-a-bot.mdx"}]]}]],"children":["$","$L33",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L3c",null,{"parallelRouterKey":"children","segmentPath":["children","$3d","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3e",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":["$","$L3f",null,{"search":{"enabled":false},"children":["$","$L3c",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3e",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],["$L40",null]]]] +0:["ob-je4azGQ3_nWAi-Q2wj",[[["",{"children":[["slug","carbon/helpful-guides/developer-portal/create-a-bot","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"helpful-guides\",\"developer-portal\",\"create-a-bot\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/helpful-guides/developer-portal/create-a-bot","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 Bot","url":"#creating-a-bot","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",["$","$30",null,{"fallback":null,"children":[["$","$L31",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"]}],["$","$L32",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/helpful-guides/developer-portal/create-a-bot.mdx"}]]}]],"children":["$","$L33",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":[["$","$L34",null,{}],[["$","h1",null,{"children":"Create a Bot","className":"text-3xl font-bold"}],null,["$","div",null,{"className":"prose","children":[[["$","p",null,{"children":["The ",["$","a",null,{"href":"https://discord.com/developers/applications","rel":"noreferrer noopener","target":"_blank","children":"Discord Developer Portal"}]," is the main place that you can manage your bot on Discord."]}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"creating-a-bot","children":[["$","a",null,{"href":"#creating-a-bot","className":"peer","children":"Creating a Bot"}],["$","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 Discord bot, you'll need to head over to the ",["$","a",null,{"href":"https://discord.com/developers/applications","rel":"noreferrer noopener","target":"_blank","children":"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."]}],"\n",["$","p",null,{"children":"You should now see a page that shows information about your bot. You can add an avatar and bio for your bot here."}],"\n",["$","$L35",null,{"src":"https://cdn.buape.com/carbon/docs/info-page.png","alt":"Info Page","width":708,"height":316.5}],"\n",["$","p",null,{"children":"You'll also want to copy the Client ID and the Public Key there, you'll need those for your application."}],"\n",["$","p",null,{"children":"Once you've saved your changes, click on the Bot tab on the left panel."}],"\n",["$","p",null,{"children":"After you open the bot tab, you should see a blue button that says Reset Token. Click on it and confirm that you want to reset your bot's token. You should now see a new section called Token with a button that says Copy. When we ask you to paste your bot's token somewhere, this is the value that you need to put in."}],"\n",["$","p",null,{"children":"Tokens are in the format similar to this one:"}],"\n",["$","$L36",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","icon":"","children":["$","$L37",null,{"children":["$","code",null,{"children":["$","span",null,{"className":"line","children":["$","span",null,{"children":"MTA4NjEwNTYxMDUxMDE1NTg1Nw.GNt-U8.OSHy-g-5FlfESnu3Z9MEEMJLHiRthXajiXNwiE"}]}]}]}]}],"\n",["$","p",null,{"children":"If you accidentally leak your bot's token or lose it, you need to come back to this page and reset your bot's token again which will reveal the new token, invalidating all old ones."}],"\n",["$","$L35",null,{"src":"https://cdn.buape.com/carbon/docs/bot-page.png","alt":"Token","width":708,"height":316.5}]],null]}]],["$","div",null,{"className":"mt-auto"}],["$","$L38",null,{"date":"$D2024-09-11T20:53:15.000Z"}],["$","$L39",null,{"items":"$undefined"}]]}]]}],["$","$L3a",null,{"header":"$undefined","footer":["$undefined",["$","$30",null,{"fallback":null,"children":[["$","$L31",null,{"moduleIds":"$3b"}],["$","$L32",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/helpful-guides/developer-portal/create-a-bot.mdx"}]]}]],"children":["$","$L33",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L3c",null,{"parallelRouterKey":"children","segmentPath":["children","$3d","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3e",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":["$","$L3f",null,{"search":{"enabled":false},"children":["$","$L3c",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3e",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],["$L40",null]]]] 40:[["$","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/helpful-guides/developer-portal/urls.html b/carbon/helpful-guides/developer-portal/urls.html index 2791483d..6ac1ab19 100644 --- a/carbon/helpful-guides/developer-portal/urls.html +++ b/carbon/helpful-guides/developer-portal/urls.html @@ -1,4 +1,4 @@ -
    Carbon

    Setting URLs

    The Discord Developer Portal is the main place that you can manage your bot on Discord.

    +
    Carbon

    Setting URLs

    The Discord Developer Portal is the main place that you can manage your bot on Discord.

    Setting your interaction URL

    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 @@

    Setting URLs

    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.

    Last updated on

    On this page

    Edit on GitHub
    \ No newline at end of file +If not, make sure you've set the URL correctly, and make sure that Carbon is actually running.

    Last updated on

    On this page

    Edit on GitHub
    \ No newline at end of file diff --git a/carbon/helpful-guides/developer-portal/urls.txt b/carbon/helpful-guides/developer-portal/urls.txt index 417f15f7..027895c2 100644 --- a/carbon/helpful-guides/developer-portal/urls.txt +++ b/carbon/helpful-guides/developer-portal/urls.txt @@ -1,26 +1,26 @@ -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"] 30:"$Sreact.suspense" -31: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"] -32: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"] -33: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"] -34: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"] -35:I[3197,["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"],"ImageZoom"] -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"],"LastUpdate"] -37: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"] -38: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"] +31: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"] +32: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"] +33: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"] +34: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"] +35:I[4462,["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"],"ImageZoom"] +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"],"LastUpdate"] +37: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"] +38: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"] 3a:I[1907,[],""] 3c:I[1851,[],""] -3d:I[6225,["808","static/chunks/808-6dceee3f6f2f7cd1.js","185","static/chunks/app/layout-26077b10d25ec523.js"],"RootProvider"] +3d: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"] @@ -56,8 +56,8 @@ f:["$","div",null,"$10"] 1e:["$1f","$21","$23","$25"] 2f:{"title":"Setting your interaction URL","url":"#setting-your-interaction-url","depth":2} 2e:["$2f"] -39:["../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"] +39:["../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"] 3b:["slug","carbon/helpful-guides/developer-portal/urls","c"] -0:["ajd-SQ2r2d7teD8cRVxbO",[[["",{"children":[["slug","carbon/helpful-guides/developer-portal/urls","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"helpful-guides\",\"developer-portal\",\"urls\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/helpful-guides/developer-portal/urls","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":"Setting your interaction URL","url":"#setting-your-interaction-url","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",["$","$30",null,{"fallback":null,"children":[["$","$L31",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"]}],["$","$L32",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/helpful-guides/developer-portal/urls.mdx"}]]}]],"children":["$","$L33",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":[["$","$L34",null,{}],[["$","h1",null,{"children":"Setting URLs","className":"text-3xl font-bold"}],null,["$","div",null,{"className":"prose","children":[[["$","p",null,{"children":["The ",["$","a",null,{"href":"https://discord.com/developers/applications","rel":"noreferrer noopener","target":"_blank","children":"Discord Developer Portal"}]," is the main place that you can manage your bot on Discord."]}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"setting-your-interaction-url","children":[["$","a",null,{"href":"#setting-your-interaction-url","className":"peer","children":"Setting your interaction URL"}],["$","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":["Once you have Carbon running, you'll want to set your interaction URL. This is the URL that Discord will send interactions to.\nUnless you've modified it, this will be at ",["$","code",null,{"children":"https://DOMAIN.COM/interaction"}],", replacing ",["$","code",null,{"children":"DOMAIN.COM"}]," with your domain."]}],"\n",["$","p",null,{"children":"Go to the Information tab on the left panel for your bot, and look below the public key."}],"\n",["$","$L35",null,{"src":"https://cdn.buape.com/carbon/docs/urls.png","alt":"Setting URLs","width":451.5,"height":197.5}],"\n",["$","p",null,{"children":"Put your interaction URL in the Interaction URL field, and click Save Changes.\nDiscord will then attempt to send a test interaction to your URL, and if it succeeds, you're good to go!\nIf not, make sure you've set the URL correctly, and make sure that Carbon is actually running."}]],null]}]],["$","div",null,{"className":"mt-auto"}],["$","$L36",null,{"date":"$D2024-09-11T14:49:03.000Z"}],["$","$L37",null,{"items":"$undefined"}]]}]]}],["$","$L38",null,{"header":"$undefined","footer":["$undefined",["$","$30",null,{"fallback":null,"children":[["$","$L31",null,{"moduleIds":"$39"}],["$","$L32",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/helpful-guides/developer-portal/urls.mdx"}]]}]],"children":["$","$L33",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L3a",null,{"parallelRouterKey":"children","segmentPath":["children","$3b","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3c",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":["$","$L3d",null,{"search":{"enabled":false},"children":["$","$L3a",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3c",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],["$L3e",null]]]] +0:["ob-je4azGQ3_nWAi-Q2wj",[[["",{"children":[["slug","carbon/helpful-guides/developer-portal/urls","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"helpful-guides\",\"developer-portal\",\"urls\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/helpful-guides/developer-portal/urls","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":"Setting your interaction URL","url":"#setting-your-interaction-url","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",["$","$30",null,{"fallback":null,"children":[["$","$L31",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"]}],["$","$L32",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/helpful-guides/developer-portal/urls.mdx"}]]}]],"children":["$","$L33",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":[["$","$L34",null,{}],[["$","h1",null,{"children":"Setting URLs","className":"text-3xl font-bold"}],null,["$","div",null,{"className":"prose","children":[[["$","p",null,{"children":["The ",["$","a",null,{"href":"https://discord.com/developers/applications","rel":"noreferrer noopener","target":"_blank","children":"Discord Developer Portal"}]," is the main place that you can manage your bot on Discord."]}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"setting-your-interaction-url","children":[["$","a",null,{"href":"#setting-your-interaction-url","className":"peer","children":"Setting your interaction URL"}],["$","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":["Once you have Carbon running, you'll want to set your interaction URL. This is the URL that Discord will send interactions to.\nUnless you've modified it, this will be at ",["$","code",null,{"children":"https://DOMAIN.COM/interaction"}],", replacing ",["$","code",null,{"children":"DOMAIN.COM"}]," with your domain."]}],"\n",["$","p",null,{"children":"Go to the Information tab on the left panel for your bot, and look below the public key."}],"\n",["$","$L35",null,{"src":"https://cdn.buape.com/carbon/docs/urls.png","alt":"Setting URLs","width":451.5,"height":197.5}],"\n",["$","p",null,{"children":"Put your interaction URL in the Interaction URL field, and click Save Changes.\nDiscord will then attempt to send a test interaction to your URL, and if it succeeds, you're good to go!\nIf not, make sure you've set the URL correctly, and make sure that Carbon is actually running."}]],null]}]],["$","div",null,{"className":"mt-auto"}],["$","$L36",null,{"date":"$D2024-09-11T20:53:15.000Z"}],["$","$L37",null,{"items":"$undefined"}]]}]]}],["$","$L38",null,{"header":"$undefined","footer":["$undefined",["$","$30",null,{"fallback":null,"children":[["$","$L31",null,{"moduleIds":"$39"}],["$","$L32",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/helpful-guides/developer-portal/urls.mdx"}]]}]],"children":["$","$L33",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L3a",null,{"parallelRouterKey":"children","segmentPath":["children","$3b","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3c",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":["$","$L3d",null,{"search":{"enabled":false},"children":["$","$L3a",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3c",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],["$L3e",null]]]] 3e:[["$","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/helpful-guides/partials.html b/carbon/helpful-guides/partials.html index 17497099..b66a12b4 100644 --- a/carbon/helpful-guides/partials.html +++ b/carbon/helpful-guides/partials.html @@ -1,3 +1,3 @@ -
    Carbon

    Partials

    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.

    +
    Carbon

    Partials

    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.

    Last updated on

    On this page

    No Headings
    Edit on GitHub
    \ No newline at end of file +

    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.

    Last updated on

    On this page

    No Headings
    Edit on GitHub
    \ No newline at end of file diff --git a/carbon/helpful-guides/partials.txt b/carbon/helpful-guides/partials.txt index 4eda3050..282f4e1a 100644 --- a/carbon/helpful-guides/partials.txt +++ b/carbon/helpful-guides/partials.txt @@ -1,25 +1,25 @@ -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"] 2f:"$Sreact.suspense" -30: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"] -31: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"] -32: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"] -33: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"] -34: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"] -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"],"Footer"] -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"],"Toc"] +30: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"] +31: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"] +32: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"] +33: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"] +34: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"] +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"],"Footer"] +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"],"Toc"] 38:I[1907,[],""] 3a:I[1851,[],""] -3b:I[6225,["808","static/chunks/808-6dceee3f6f2f7cd1.js","185","static/chunks/app/layout-26077b10d25ec523.js"],"RootProvider"] +3b: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"] @@ -54,8 +54,8 @@ f:["$","div",null,"$10"] 25:{"type":"icon","url":"https://github.com/fuma-nama/fumadocs","text":"Github","icon":"$26","external":true} 1e:["$1f","$21","$23","$25"] 2e:[] -37:["../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"] +37:["../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"] 39:["slug","carbon/helpful-guides/partials","c"] -0:["ajd-SQ2r2d7teD8cRVxbO",[[["",{"children":[["slug","carbon/helpful-guides/partials","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"helpful-guides\",\"partials\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/helpful-guides/partials","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":[],"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",["$","$2f",null,{"fallback":null,"children":[["$","$L30",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"]}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/helpful-guides/partials.mdx"}]]}]],"children":["$","$L32",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":[["$","$L33",null,{}],[["$","h1",null,{"children":"Partials","className":"text-3xl font-bold"}],null,["$","div",null,{"className":"prose","children":[[["$","p",null,{"children":"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."}],"\n",["$","p",null,{"children":["In Carbon, you may sometimes get partials on things such as ",["$","code",null,{"children":"Interaction#message"}],". This is because the original data for that interaction only had a partial. Luckily, there is a ",["$","code",null,{"children":"fetch()"}]," method on all classes that may be partial (as well as a boolean ",["$","code",null,{"children":"partial"}]," property on all classes), which will fetch the full data of the class."]}],"\n",["$","p",null,{"children":["Because of this, many properties on a structure, such as a ",["$","code",null,{"children":"Message"}],", will be potentially undefined, and you should check for that before using them."]}]],null]}]],["$","div",null,{"className":"mt-auto"}],["$","$L34",null,{"date":"$D2024-09-11T14:49:03.000Z"}],["$","$L35",null,{"items":"$undefined"}]]}]]}],["$","$L36",null,{"header":"$undefined","footer":["$undefined",["$","$2f",null,{"fallback":null,"children":[["$","$L30",null,{"moduleIds":"$37"}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/helpful-guides/partials.mdx"}]]}]],"children":["$","$L32",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L38",null,{"parallelRouterKey":"children","segmentPath":["children","$39","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3a",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":["$","$L3b",null,{"search":{"enabled":false},"children":["$","$L38",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3a",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],["$L3c",null]]]] +0:["ob-je4azGQ3_nWAi-Q2wj",[[["",{"children":[["slug","carbon/helpful-guides/partials","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"helpful-guides\",\"partials\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/helpful-guides/partials","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":[],"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",["$","$2f",null,{"fallback":null,"children":[["$","$L30",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"]}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/helpful-guides/partials.mdx"}]]}]],"children":["$","$L32",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":[["$","$L33",null,{}],[["$","h1",null,{"children":"Partials","className":"text-3xl font-bold"}],null,["$","div",null,{"className":"prose","children":[[["$","p",null,{"children":"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."}],"\n",["$","p",null,{"children":["In Carbon, you may sometimes get partials on things such as ",["$","code",null,{"children":"Interaction#message"}],". This is because the original data for that interaction only had a partial. Luckily, there is a ",["$","code",null,{"children":"fetch()"}]," method on all classes that may be partial (as well as a boolean ",["$","code",null,{"children":"partial"}]," property on all classes), which will fetch the full data of the class."]}],"\n",["$","p",null,{"children":["Because of this, many properties on a structure, such as a ",["$","code",null,{"children":"Message"}],", will be potentially undefined, and you should check for that before using them."]}]],null]}]],["$","div",null,{"className":"mt-auto"}],["$","$L34",null,{"date":"$D2024-09-11T20:53:15.000Z"}],["$","$L35",null,{"items":"$undefined"}]]}]]}],["$","$L36",null,{"header":"$undefined","footer":["$undefined",["$","$2f",null,{"fallback":null,"children":[["$","$L30",null,{"moduleIds":"$37"}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/helpful-guides/partials.mdx"}]]}]],"children":["$","$L32",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L38",null,{"parallelRouterKey":"children","segmentPath":["children","$39","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3a",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":["$","$L3b",null,{"search":{"enabled":false},"children":["$","$L38",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3a",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],["$L3c",null]]]] 3c:[["$","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/helpful-guides/responses.html b/carbon/helpful-guides/responses.html index 21df31dd..013b7753 100644 --- a/carbon/helpful-guides/responses.html +++ b/carbon/helpful-guides/responses.html @@ -1,4 +1,4 @@ -
    Carbon

    Replying vs Deferring vs Acknowledging

    In the Discord interaction system, there are 3 ways to respond to an interaction:

    +
    Carbon

    Replying vs Deferring vs Acknowledging

    In the Discord interaction system, there are 3 ways to respond to an interaction:

    1. Replying

    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.

    On this page

    Edit on GitHub
    \ No newline at end of file +}

    Last updated on

    On this page

    Edit on GitHub
    \ No newline at end of file diff --git a/carbon/helpful-guides/responses.txt b/carbon/helpful-guides/responses.txt index c2280319..49436cf6 100644 --- a/carbon/helpful-guides/responses.txt +++ b/carbon/helpful-guides/responses.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"] 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[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"] -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"],"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[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"] +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"],"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"] @@ -59,8 +59,8 @@ f:["$","div",null,"$10"] 30:{"title":"2. Deferring","url":"#2-deferring","depth":2} 31:{"title":"3. Acknowledging","url":"#3-acknowledging","depth":2} 2e:["$2f","$30","$31"] -38:T4dc,3a:T4dc,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"] +38:T4dc,3a:T4dc,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","carbon/helpful-guides/responses","c"] -0:["ajd-SQ2r2d7teD8cRVxbO",[[["",{"children":[["slug","carbon/helpful-guides/responses","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"helpful-guides\",\"responses\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/helpful-guides/responses","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":"1. Replying","url":"#1-replying","depth":2},{"title":"2. Deferring","url":"#2-deferring","depth":2},{"title":"3. Acknowledging","url":"#3-acknowledging","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",["$","$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/carbon/helpful-guides/responses.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":"Replying vs Deferring vs Acknowledging","className":"text-3xl font-bold"}],null,["$","div",null,{"className":"prose","children":[[["$","p",null,{"children":"In the Discord interaction system, there are 3 ways to respond to an interaction:"}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"1-replying","children":[["$","a",null,{"href":"#1-replying","className":"peer","children":"1. Replying"}],["$","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":["This is the simplest way to respond to an interaction, and is used for most commands. It is done by using the ",["$","code",null,{"children":"reply"}]," method on the ",["$","code",null,{"children":"CommandInteraction"}]," class."]}],"\n",["$","$L37",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","icon":"$38","children":["$","$L39",null,{"children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"async "}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"run"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(interaction: CommandInteraction) {"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"\tawait"}],["$","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":"({ content: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"Hello world\""}],["$","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":"}"}]}]]}]}]}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"2-deferring","children":[["$","a",null,{"href":"#2-deferring","className":"peer","children":"2. Deferring"}],["$","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":["Deferring is used when you need more time to process an interaction. When you defer an interaction, the bot will send a loading state to the user. You then have up to 15 minutes to reply to the interaction afterwards, using the normal ",["$","$L15",null,{"href":"#replying","prefetch":"$undefined","replace":"$undefined","children":"reply"}]," method."]}],"\n",["$","div",null,{"className":"my-6 flex flex-row gap-2 rounded-lg border bg-fd-card p-3 text-sm text-fd-card-foreground shadow-md","children":["$undefined",["$","div",null,{"className":"min-w-0 flex-1","children":[["$","p",null,{"className":"not-prose mb-2 font-medium","children":"Time Limit"}],["$","div",null,{"className":"text-fd-muted-foreground prose-no-margin","children":["$","p",null,{"children":["Deferring an interaction must be ",["$","code",null,{"children":"await"}],"ed! If you don't respond within 15 minutes, the interaction will show an error as if you never replied in the first place."]}]}]]}]]}],"\n",["$","$L37",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","icon":"$3a","children":["$","$L39",null,{"children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"async "}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"run"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(interaction: CommandInteraction) {"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"\tawait"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" interaction."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"defer"}],["$","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":"\tawait"}],["$","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":"({ content: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"Hello world\""}],["$","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":"}"}]}]]}]}]}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"3-acknowledging","children":[["$","a",null,{"href":"#3-acknowledging","className":"peer","children":"3. Acknowledging"}],["$","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":"Acknowledging is used when you want to acknowledge an interaction, but you don't want to reply to it. You can only use this for component-based interactions.\nThis is useful for things such as a game bot where you want to trigger an action and then only edit the original message."}],"\n",["$","$L37",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","icon":"$3b","children":["$","$L39",null,{"children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"async "}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"run"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(interaction: ButtonInteraction) {"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"\tawait"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" interaction."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"acknowledge"}],["$","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":"}"}]}]]}]}]}]],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/carbon/helpful-guides/responses.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","carbon/helpful-guides/responses","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"helpful-guides\",\"responses\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/helpful-guides/responses","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":"1. Replying","url":"#1-replying","depth":2},{"title":"2. Deferring","url":"#2-deferring","depth":2},{"title":"3. Acknowledging","url":"#3-acknowledging","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",["$","$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/carbon/helpful-guides/responses.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":"Replying vs Deferring vs Acknowledging","className":"text-3xl font-bold"}],null,["$","div",null,{"className":"prose","children":[[["$","p",null,{"children":"In the Discord interaction system, there are 3 ways to respond to an interaction:"}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"1-replying","children":[["$","a",null,{"href":"#1-replying","className":"peer","children":"1. Replying"}],["$","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":["This is the simplest way to respond to an interaction, and is used for most commands. It is done by using the ",["$","code",null,{"children":"reply"}]," method on the ",["$","code",null,{"children":"CommandInteraction"}]," class."]}],"\n",["$","$L37",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","icon":"$38","children":["$","$L39",null,{"children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"async "}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"run"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(interaction: CommandInteraction) {"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"\tawait"}],["$","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":"({ content: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"Hello world\""}],["$","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":"}"}]}]]}]}]}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"2-deferring","children":[["$","a",null,{"href":"#2-deferring","className":"peer","children":"2. Deferring"}],["$","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":["Deferring is used when you need more time to process an interaction. When you defer an interaction, the bot will send a loading state to the user. You then have up to 15 minutes to reply to the interaction afterwards, using the normal ",["$","$L15",null,{"href":"#replying","prefetch":"$undefined","replace":"$undefined","children":"reply"}]," method."]}],"\n",["$","div",null,{"className":"my-6 flex flex-row gap-2 rounded-lg border bg-fd-card p-3 text-sm text-fd-card-foreground shadow-md","children":["$undefined",["$","div",null,{"className":"min-w-0 flex-1","children":[["$","p",null,{"className":"not-prose mb-2 font-medium","children":"Time Limit"}],["$","div",null,{"className":"text-fd-muted-foreground prose-no-margin","children":["$","p",null,{"children":["Deferring an interaction must be ",["$","code",null,{"children":"await"}],"ed! If you don't respond within 15 minutes, the interaction will show an error as if you never replied in the first place."]}]}]]}]]}],"\n",["$","$L37",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","icon":"$3a","children":["$","$L39",null,{"children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"async "}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"run"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(interaction: CommandInteraction) {"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"\tawait"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" interaction."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"defer"}],["$","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":"\tawait"}],["$","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":"({ content: "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"Hello world\""}],["$","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":"}"}]}]]}]}]}],"\n",["$","h2",null,{"className":"flex scroll-m-28 flex-row items-center gap-2","id":"3-acknowledging","children":[["$","a",null,{"href":"#3-acknowledging","className":"peer","children":"3. Acknowledging"}],["$","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":"Acknowledging is used when you want to acknowledge an interaction, but you don't want to reply to it. You can only use this for component-based interactions.\nThis is useful for things such as a game bot where you want to trigger an action and then only edit the original message."}],"\n",["$","$L37",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","icon":"$3b","children":["$","$L39",null,{"children":["$","code",null,{"children":[["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"async "}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"run"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"(interaction: ButtonInteraction) {"}]]}],"\n",["$","span",null,{"className":"line","children":[["$","span",null,{"style":{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},"children":"\tawait"}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" interaction."}],["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"acknowledge"}],["$","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":"}"}]}]]}]}]}]],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/carbon/helpful-guides/responses.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/carbon/helpful-guides/why-classes.html b/carbon/helpful-guides/why-classes.html index 6e26ba25..dfee0c59 100644 --- a/carbon/helpful-guides/why-classes.html +++ b/carbon/helpful-guides/why-classes.html @@ -1 +1 @@ -
    Carbon

    On this page

    No Headings
    Edit on GitHub
    \ No newline at end of file +
    Carbon

    On this page

    No Headings
    Edit on GitHub
    \ No newline at end of file diff --git a/carbon/helpful-guides/why-classes.txt b/carbon/helpful-guides/why-classes.txt index 26012613..da1705ba 100644 --- a/carbon/helpful-guides/why-classes.txt +++ b/carbon/helpful-guides/why-classes.txt @@ -1,25 +1,25 @@ -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"] 2f:"$Sreact.suspense" -30: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"] -31: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"] -32: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"] -33: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"] -34: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"] -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"],"Footer"] -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"],"Toc"] +30: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"] +31: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"] +32: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"] +33: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"] +34: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"] +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"],"Footer"] +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"],"Toc"] 38:I[1907,[],""] 3a:I[1851,[],""] -3b:I[6225,["808","static/chunks/808-6dceee3f6f2f7cd1.js","185","static/chunks/app/layout-26077b10d25ec523.js"],"RootProvider"] +3b: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"] @@ -54,8 +54,8 @@ f:["$","div",null,"$10"] 25:{"type":"icon","url":"https://github.com/fuma-nama/fumadocs","text":"Github","icon":"$26","external":true} 1e:["$1f","$21","$23","$25"] 2e:[] -37:["../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"] +37:["../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"] 39:["slug","carbon/helpful-guides/why-classes","c"] -0:["ajd-SQ2r2d7teD8cRVxbO",[[["",{"children":[["slug","carbon/helpful-guides/why-classes","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"helpful-guides\",\"why-classes\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/helpful-guides/why-classes","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":[],"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",["$","$2f",null,{"fallback":null,"children":[["$","$L30",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"]}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/helpful-guides/why-classes.mdx"}]]}]],"children":["$","$L32",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":[["$","$L33",null,{}],[["$","h1",null,{"children":"Why Classes?","className":"text-3xl font-bold"}],null,["$","div",null,{"className":"prose","children":[["$","p",null,{"children":"Coming soon!"}],null]}]],["$","div",null,{"className":"mt-auto"}],["$","$L34",null,{"date":"$D2024-09-11T14:49:03.000Z"}],["$","$L35",null,{"items":"$undefined"}]]}]]}],["$","$L36",null,{"header":"$undefined","footer":["$undefined",["$","$2f",null,{"fallback":null,"children":[["$","$L30",null,{"moduleIds":"$37"}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/helpful-guides/why-classes.mdx"}]]}]],"children":["$","$L32",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L38",null,{"parallelRouterKey":"children","segmentPath":["children","$39","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3a",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":["$","$L3b",null,{"search":{"enabled":false},"children":["$","$L38",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3a",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],["$L3c",null]]]] +0:["ob-je4azGQ3_nWAi-Q2wj",[[["",{"children":[["slug","carbon/helpful-guides/why-classes","c"],{"children":["__PAGE__?{\"slug\":[\"carbon\",\"helpful-guides\",\"why-classes\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","carbon/helpful-guides/why-classes","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":[],"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",["$","$2f",null,{"fallback":null,"children":[["$","$L30",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"]}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/helpful-guides/why-classes.mdx"}]]}]],"children":["$","$L32",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":[["$","$L33",null,{}],[["$","h1",null,{"children":"Why Classes?","className":"text-3xl font-bold"}],null,["$","div",null,{"className":"prose","children":[["$","p",null,{"children":"Coming soon!"}],null]}]],["$","div",null,{"className":"mt-auto"}],["$","$L34",null,{"date":"$D2024-09-11T20:53:15.000Z"}],["$","$L35",null,{"items":"$undefined"}]]}]]}],["$","$L36",null,{"header":"$undefined","footer":["$undefined",["$","$2f",null,{"fallback":null,"children":[["$","$L30",null,{"moduleIds":"$37"}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/carbon/helpful-guides/why-classes.mdx"}]]}]],"children":["$","$L32",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L38",null,{"parallelRouterKey":"children","segmentPath":["children","$39","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3a",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":["$","$L3b",null,{"search":{"enabled":false},"children":["$","$L38",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3a",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],["$L3c",null]]]] 3c:[["$","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/index.html b/index.html index d1e29fc7..c2efe616 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/index.txt b/index.txt index 00dba754..501963bc 100644 --- a/index.txt +++ b/index.txt @@ -1,7 +1,7 @@ -3:I[6225,["808","static/chunks/808-6dceee3f6f2f7cd1.js","185","static/chunks/app/layout-26077b10d25ec523.js"],"RootProvider"] +3:I[4579,["547","static/chunks/547-a3533eb96f4320e4.js","185","static/chunks/app/layout-751c33789f182bea.js"],"RootProvider"] 4:I[1907,[],""] 5:I[1851,[],""] -0:["ajd-SQ2r2d7teD8cRVxbO",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",{"children":["__PAGE__",{},[["$L1","$L2",null],null],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":["$","$L3",null,{"search":{"enabled":false},"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",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],["$L6",null]]]] +0:["ob-je4azGQ3_nWAi-Q2wj",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",{"children":["__PAGE__",{},[["$L1","$L2",null],null],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":["$","$L3",null,{"search":{"enabled":false},"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",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],["$L6",null]]]] 2:E{"digest":"NEXT_REDIRECT;replace;/carbon;307;"} 6:[["$","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/linked-roles.html b/linked-roles.html index a9a5c9be..16fffef5 100644 --- a/linked-roles.html +++ b/linked-roles.html @@ -1,4 +1,4 @@ -
    Carbon

    Linked Roles

    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.

    +
    Carbon

    Linked Roles

    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.

    You can read more about the feature from an admin standpoint here, or from a user standpoint here..

    Usage

    Linked Roles are straightforward to use in Carbon, all you need is to already have an instance of the Client from Carbon.

    @@ -8,7 +8,7 @@

    Installation

    -
    pnpm install @buape/carbon @buape/carbon-linked-roles
    +
    pnpm install @buape/carbon @buape/carbon-linked-roles

    Example

    src/index.ts
    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.

    Last updated on

    On this page

    Edit on GitHub
    \ 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.

    Last updated on

    On this page

    Edit on GitHub
    \ 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.

    Last updated on

    On this page

    No Headings
    Edit on GitHub
    \ No newline at end of file +
    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.

    Last updated on

    On this page

    No Headings
    Edit on GitHub
    \ No newline at end of file diff --git a/nodejs.txt b/nodejs.txt index 3294cadf..3130f8e1 100644 --- a/nodejs.txt +++ b/nodejs.txt @@ -1,25 +1,25 @@ -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"] 2f:"$Sreact.suspense" -30: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"] -31: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"] -32: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"] -33: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"] -34: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"] -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"],"Footer"] -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"],"Toc"] +30: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"] +31: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"] +32: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"] +33: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"] +34: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"] +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"],"Footer"] +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"],"Toc"] 38:I[1907,[],""] 3a:I[1851,[],""] -3b:I[6225,["808","static/chunks/808-6dceee3f6f2f7cd1.js","185","static/chunks/app/layout-26077b10d25ec523.js"],"RootProvider"] +3b: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"] @@ -54,8 +54,8 @@ f:["$","div",null,"$10"] 25:{"type":"icon","url":"https://github.com/fuma-nama/fumadocs","text":"Github","icon":"$26","external":true} 1e:["$1f","$21","$23","$25"] 2e:[] -37:["../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"] +37:["../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"] 39:["slug","nodejs","c"] -0:["ajd-SQ2r2d7teD8cRVxbO",[[["",{"children":[["slug","nodejs","c"],{"children":["__PAGE__?{\"slug\":[\"nodejs\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","nodejs","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":[],"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",["$","$2f",null,{"fallback":null,"children":[["$","$L30",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"]}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/nodejs/index.mdx"}]]}]],"children":["$","$L32",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":[["$","$L33",null,{}],[["$","h1",null,{"children":"Carbon's NodeJS Wrapper","className":"text-3xl font-bold"}],null,["$","div",null,{"className":"prose","children":[["$","p",null,{"children":"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."}],null]}]],["$","div",null,{"className":"mt-auto"}],["$","$L34",null,{"date":"$D2024-09-11T14:49:03.000Z"}],["$","$L35",null,{"items":"$undefined"}]]}]]}],["$","$L36",null,{"header":"$undefined","footer":["$undefined",["$","$2f",null,{"fallback":null,"children":[["$","$L30",null,{"moduleIds":"$37"}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/nodejs/index.mdx"}]]}]],"children":["$","$L32",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L38",null,{"parallelRouterKey":"children","segmentPath":["children","$39","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3a",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":["$","$L3b",null,{"search":{"enabled":false},"children":["$","$L38",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3a",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],["$L3c",null]]]] +0:["ob-je4azGQ3_nWAi-Q2wj",[[["",{"children":[["slug","nodejs","c"],{"children":["__PAGE__?{\"slug\":[\"nodejs\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","nodejs","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":[],"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",["$","$2f",null,{"fallback":null,"children":[["$","$L30",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"]}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/nodejs/index.mdx"}]]}]],"children":["$","$L32",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":[["$","$L33",null,{}],[["$","h1",null,{"children":"Carbon's NodeJS Wrapper","className":"text-3xl font-bold"}],null,["$","div",null,{"className":"prose","children":[["$","p",null,{"children":"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."}],null]}]],["$","div",null,{"className":"mt-auto"}],["$","$L34",null,{"date":"$D2024-09-11T20:53:15.000Z"}],["$","$L35",null,{"items":"$undefined"}]]}]]}],["$","$L36",null,{"header":"$undefined","footer":["$undefined",["$","$2f",null,{"fallback":null,"children":[["$","$L30",null,{"moduleIds":"$37"}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/nodejs/index.mdx"}]]}]],"children":["$","$L32",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L38",null,{"parallelRouterKey":"children","segmentPath":["children","$39","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3a",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":["$","$L3b",null,{"search":{"enabled":false},"children":["$","$L38",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3a",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],["$L3c",null]]]] 3c:[["$","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/request.html b/request.html index a18aae98..3c48e548 100644 --- a/request.html +++ b/request.html @@ -1,2 +1,2 @@ -
    Carbon

    Carbon's RequestClient

    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.

    Last updated on

    On this page

    No Headings
    Edit on GitHub
    \ No newline at end of file +
    Carbon

    Carbon's RequestClient

    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.

    Last updated on

    On this page

    No Headings
    Edit on GitHub
    \ No newline at end of file diff --git a/request.txt b/request.txt index 1512a407..de4fd635 100644 --- a/request.txt +++ b/request.txt @@ -1,25 +1,25 @@ -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"] 2f:"$Sreact.suspense" -30: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"] -31: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"] -32: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"] -33: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"] -34: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"] -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"],"Footer"] -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"],"Toc"] +30: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"] +31: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"] +32: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"] +33: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"] +34: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"] +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"],"Footer"] +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"],"Toc"] 38:I[1907,[],""] 3a:I[1851,[],""] -3b:I[6225,["808","static/chunks/808-6dceee3f6f2f7cd1.js","185","static/chunks/app/layout-26077b10d25ec523.js"],"RootProvider"] +3b: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"] @@ -54,8 +54,8 @@ f:["$","div",null,"$10"] 25:{"type":"icon","url":"https://github.com/fuma-nama/fumadocs","text":"Github","icon":"$26","external":true} 1e:["$1f","$21","$23","$25"] 2e:[] -37:["../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"] +37:["../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"] 39:["slug","request","c"] -0:["ajd-SQ2r2d7teD8cRVxbO",[[["",{"children":[["slug","request","c"],{"children":["__PAGE__?{\"slug\":[\"request\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","request","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":[],"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",["$","$2f",null,{"fallback":null,"children":[["$","$L30",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"]}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/request/index.mdx"}]]}]],"children":["$","$L32",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":[["$","$L33",null,{}],[["$","h1",null,{"children":"Carbon's RequestClient","className":"text-3xl font-bold"}],null,["$","div",null,{"className":"prose","children":[["$","p",null,{"children":"This is the internal package that handles making requests to the Discord API.\nIt is used by Carbon, and you should not need to use it directly, but feel free to if you feel like living dangerously."}],null]}]],["$","div",null,{"className":"mt-auto"}],["$","$L34",null,{"date":"$D2024-09-11T14:49:03.000Z"}],["$","$L35",null,{"items":"$undefined"}]]}]]}],["$","$L36",null,{"header":"$undefined","footer":["$undefined",["$","$2f",null,{"fallback":null,"children":[["$","$L30",null,{"moduleIds":"$37"}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/request/index.mdx"}]]}]],"children":["$","$L32",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L38",null,{"parallelRouterKey":"children","segmentPath":["children","$39","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3a",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":["$","$L3b",null,{"search":{"enabled":false},"children":["$","$L38",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3a",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],["$L3c",null]]]] +0:["ob-je4azGQ3_nWAi-Q2wj",[[["",{"children":[["slug","request","c"],{"children":["__PAGE__?{\"slug\":[\"request\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","request","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":[],"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",["$","$2f",null,{"fallback":null,"children":[["$","$L30",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"]}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/request/index.mdx"}]]}]],"children":["$","$L32",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":[["$","$L33",null,{}],[["$","h1",null,{"children":"Carbon's RequestClient","className":"text-3xl font-bold"}],null,["$","div",null,{"className":"prose","children":[["$","p",null,{"children":"This is the internal package that handles making requests to the Discord API.\nIt is used by Carbon, and you should not need to use it directly, but feel free to if you feel like living dangerously."}],null]}]],["$","div",null,{"className":"mt-auto"}],["$","$L34",null,{"date":"$D2024-09-11T20:53:15.000Z"}],["$","$L35",null,{"items":"$undefined"}]]}]]}],["$","$L36",null,{"header":"$undefined","footer":["$undefined",["$","$2f",null,{"fallback":null,"children":[["$","$L30",null,{"moduleIds":"$37"}],["$","$L31",null,{"repo":"carbon","owner":"buape","sha":"main","path":"website/content/request/index.mdx"}]]}]],"children":["$","$L32",null,{"items":"$2e"}]}]]}]]}]]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f21dc9ba14ce4027.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L38",null,{"parallelRouterKey":"children","segmentPath":["children","$39","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3a",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":["$","$L3b",null,{"search":{"enabled":false},"children":["$","$L38",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3a",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],["$L3c",null]]]] 3c:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","meta","2",{"name":"next-size-adjust"}]] 1:null