1"use strict";(globalThis.webpackChunkmagmastream_docs=globalThis.webpackChunkmagmastream_docs||[]).push([[9720],{87128(e,t,a){a.r(t),a.d(t,{assets:()=>u,contentTitle:()=>c,default:()=>p,frontMatter:()=>i,metadata:()=>r,toc:()=>d});const r=JSON.parse('{"id":"Enums/enums-LoadTypes","title":"Enums : LoadTypes","description":"LoadTypes enumerations","source":"@site/versioned_docs/version-2.8.7/Enums/LoadTypes.mdx","sourceDirName":"Enums","slug":"/enums/LoadTypes","permalink":"/docs/2.8.7/enums/LoadTypes","draft":false,"unlisted":false,"editUrl":"https://gitryx.com/MagmaStream/magmastream_documentation/tree/main/versioned_docs/version-2.8.7/Enums/LoadTypes.mdx","tags":[],"version":"2.8.7","lastUpdatedBy":"SxMAbel","lastUpdatedAt":1753489612000,"frontMatter":{"id":"enums-LoadTypes","title":"Enums : LoadTypes","description":"LoadTypes enumerations","slug":"/enums/LoadTypes","sidebar_label":"LoadTypes"},"sidebar":"tutorialSidebar","previous":{"title":"AvailableFilters","permalink":"/docs/2.8.7/enums/availableFilters"},"next":{"title":"ManagerEventTypes","permalink":"/docs/2.8.7/enums/ManagerEventTypes"}}');var s=a(74848),n=a(28453),l=a(4865),o=a(19365);const i={id:"enums-LoadTypes",title:"Enums : LoadTypes",description:"LoadTypes enumerations",slug:"/enums/LoadTypes",sidebar_label:"LoadTypes"},c=void 0,u={},d=[{value:"Track = "track"",id:"track",level:3},{value:"Playlist = "playlist"",id:"playlist",level:3},{value:"Search = "search"",id:"search",level:3},{value:"Empty = "empty"",id:"empty",level:3},{value:"Error = "error"",id:"error",level:3}];function h(e){const t={a:"a",blockquote:"blockquote",h3:"h3",hr:"hr",p:"p",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,n.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.A,{children:(0,s.jsx)(o.A,{value:"npm",label:"Enumeration members",default:!0,children:(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{style:{textAlign:"left"}}),(0,s.jsx)(t.th,{style:{textAlign:"left"}}),(0,s.jsx)(t.th,{style:{textAlign:"left"}})]})}),(0,s.jsxs)(t.tbody,{children:[(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsxs)(t.a,{href:"#track",children:[(0,s.jsx)("i",{className:"fa-solid fa-bars-staggered"})," Track"]})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsxs)(t.a,{href:"#playlist",children:[(0,s.jsx)("i",{className:"fa-solid fa-bars-staggered"})," Playlist"]})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsxs)(t.a,{href:"#search",children:[(0,s.jsx)("i",{className:"fa-solid fa-bars-staggered"})," Search"]})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsxs)(t.a,{href:"#empty",children:[(0,s.jsx)("i",{className:"fa-solid fa-bars-staggered"})," Empty"]})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsxs)(t.a,{href:"#error",children:[(0,s.jsx)("i",{className:"fa-solid fa-bars-staggered"})," Error"]})}),(0,s.jsx)(t.td,{style:{textAlign:"left"}})]})]})]})})}),"\n",(0,s.jsx)(t.h3,{id:"track",children:'Track = "track"'}),"\n",(0,s.jsx)("span",{className:"info badge",children:(0,s.jsx)(t.a,{href:"/docs/2.8.7/typedefs/Track/trackOptions#trackOptions",children:"track"})}),"\n",(0,s.jsxs)(t.blockquote,{children:["\n",(0,s.jsx)(t.p,{children:"A track has been loaded."}),"\n"]}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsx)(t.h3,{id:"playlist",children:'Playlist = "playlist"'}),"\n",(0,s.jsx)("span",{className:"info badge",children:(0,s.jsxs)(t.a,{href:"/docs/2.8.7/typedefs/Track/trackOptions#trackOptions",children:["track","[]"]})}),"\n",(0,s.jsxs)(t.blockquote,{children:["\n",(0,s.jsx)(t.p,{children:"A playlist has been loaded."}),"\n"]}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsx)(t.h3,{id:"search",children:'Search = "search"'}),"\n",(0,s.jsx)("span",{className:"info badge",children:(0,s.jsx)(t.a,{href:"/docs/2.8.7/typedefs/Track/trackOptions#trackOptions",children:"track"})}),"\n",(0,s.jsxs)(t.blockquote,{children:["\n",(0,s.jsx)(t.p,{children:"A search result has been loaded."}),"\n"]}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsx)(t.h3,{id:"empty",children:'Empty = "empty"'}),"\n",(0,s.jsx)("span",{className:"info badge",children:"Empty data"}),"\n",(0,s.jsxs)(t.blockquote,{children:["\n",(0,s.jsx)(t.p,{children:"No result has been found / loaded."}),"\n"]}),"\n",(0,s.jsxs)(t.blockquote,{children:["\n",(0,s.jsxs)(t.p,{children:["See ",(0,s.jsxs)(t.a,{href:"https://lavalink.dev/api/rest.html#empty-result-data",children:["lavalink empty data example ",(0,s.jsx)("i",{className:"fa-solid fa-arrow-up-right-from-square",style:{fontSize:"0.8em"}})]}),"."]}),"\n"]}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsx)(t.h3,{id:"error",children:'Error = "error"'}),"\n",(0,s.jsx)("span",{className:"info badge",children:"Error data"}),"\n",(0,s.jsxs)(t.blockquote,{children:["\n",(0,s.jsx)(t.p,{children:"An error / exception occurred."}),"\n"]}),"\n",(0,s.jsxs)(t.blockquote,{children:["\n",(0,s.jsxs)(t.p,{children:["See ",(0,s.jsxs)(t.a,{href:"https://lavalink.dev/api/rest.html#error-result-data",children:["lavalink error data example ",(0,s.jsx)("i",{className:"fa-solid fa-arrow-up-right-from-square",style:{fontSize:"0.8em"}})]}),"."]}),"\n"]}),"\n",(0,s.jsx)(t.hr,{})]})}function p(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(h,{...e})}):h(e)}},19365(e,t,a){a.d(t,{A:()=>i});a(96540);var r=a(34164),s=a(47751);const n="tabItem_Ymn6";var l=a(74848);function o({children:e,className:t,hidden:a}){return(0,l.jsx)("div",{role:"tabpanel",className:(0,r.A)(n,t),hidden:a,children:e})}function i({children:e,className:t,value:a}){const{selectedValue:r,lazy:n}=(0,s.uc)(),i=a===r;return!i&&n?null:(0,l.jsx)(o,{className:t,hidden:!i,children:e})}},4865(e,t,a){a.d(t,{A:()=>m});a(96540);var r=a(34164),s=a(17559),n=a(47751),l=a(23104),o=a(92303);const i="tabList__CuJ",c="tabItem_LNqP";var u=a(74848);function d({className:e}){const{selectedValue:t,selectValue:a,tabValues:s,block:o}=(0,n.uc)(),i=[],{blockElementScrollPositionUntilNextRender:d}
1=(0,l.a_)(),h=e=>{const r=e.currentTarget,n=i.indexOf(r),l=s[n].value;l!==t&&(d(r),a(l))},p=e=>{let t=null;switch(e.key){case"Enter":h(e);break;case"ArrowRight":{const a=i.indexOf(e.currentTarget)+1;t=i[a]??i[0];break}case"ArrowLeft":{const a=i.indexOf(e.currentTarget)-1;t=i[a]??i[i.length-1];break}}t?.focus()};return(0,u.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.A)("tabs",{"tabs--block":o},e),children:s.map(({value:e,label:a,attributes:s})=>(0,u.jsx)("li",{role:"tab",tabIndex:t===e?0:-1,"aria-selected":t===e,ref:e=>{i.push(e)},onKeyDown:p,onClick:h,...s,className:(0,r.A)("tabs__item",c,s?.className,{"tabs__item--active":t===e}),children:a??e},e))})}function h({children:e}){return(0,u.jsx)("div",{className:"margin-top--md",children:e})}function p({className:e,children:t}){return(0,u.jsxs)("div",{className:(0,r.A)(s.G.tabs.container,"tabs-container",i),children:[(0,u.jsx)(d,{className:e}),(0,u.jsx)(h,{children:t})]})}function m(e){const t=(0,o.A)(),a=(0,n.OC)(e);return(0,u.jsx)(n.O_,{value:a,children:(0,u.jsx)(p,{className:e.className,children:(0,n.vT)(e.children)})},String(t))}},47751(e,t,a){a.d(t,{OC:()=>m,O_:()=>b,uc:()=>x,vT:()=>u});var r=a(96540),s=a(56347),n=a(205),l=a(57485),o=a(70679),i=a(31682),c=a(74848);function u(e){return r.Children.toArray(e).filter(e=>"\n"!==e)}function d(e){const{values:t,children:a}=e;return(0,r.useMemo)(()=>{const e=t??function(e){return r.Children.toArray(e).flatMap(e=>{if(!e)return[];if((0,r.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return[e];const t="string"==typeof e.type?e.type:e.type.name;throw new Error(`Docusaurus error: Bad <Tabs> child <${t}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.\nIf you do not want to pass on a "value" prop to the direct children of <Tabs>, you can also pass an explicit <Tabs values={...}> prop.`)}).map(({props:{value:e,label:t,attributes:a,default:r}})=>({value:e,label:t,attributes:a,default:r}))}(a);return function(e){const t=(0,i.XI)(e,(e,t)=>e.value===t.value);if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map(e=>`'${e.value}'`).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(e),e},[t,a])}function h({value:e,tabValues:t}){return t.some(t=>t.value===e)}function p({queryString:e=!1,groupId:t}){const a=(0,s.W6)(),n=function({queryString:e=!1,groupId:t}){if("string"==typeof e)return e;if(!1===e)return null;if(!0===e&&!t)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:e,groupId:t});return[(0,l.aZ)(n),(0,r.useCallback)(e=>{if(!n)return;const t=new URLSearchParams(a.location.search);t.set(n,e),a.replace({...a.location,search:t.toString()})},[n,a])]}function m(e){const{defaultValue:t,queryString:a=!1,groupId:s}=e,l=d(e),[i,c]=(0,r.useState)(()=>function({defaultValue:e,tabValues:t}){if(0===t.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(e){if(!h({value:e,tabValues:t}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${e}" but none of its children has the corresponding value. Available values are: ${t.map(e=>e.value).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return e}const a=t.find(e=>e.default)??t[0];if(!a)throw new Error("Unexpected error: 0 tabValues");return a.value}({defaultValue:t,tabValues:l})),[u,m]=p({queryString:a,groupId:s}),[f,x]=function({groupId:e}){const t=function(e){return e?`docusaurus.tab.${e}`:null}(e),[a,s]=(0,o.Dv)(t);return[a,(0,r.useCallback)(e=>{t&&s.set(e)},[t,s])]}({groupId:s}),b=(()=>{const e=u??f;return h({value:e,tabValues:l})?e:null})();(0,n.A)(()=>{b&&c(b)},[b]);return{selectedValue:i,selectValue:(0,r.useCallback)(e=>{if(!h({value:e,tabValues:l}))throw new Error(`Can't select invalid tab value=${e}`);c(e),m(e),x(e)},[m,x,l]),tabValues:l,lazy:e.lazy??!1,block:e.block??!1}}const f=(0,r.createContext)(null);function x(){const e=r.useContext(f);if(!e)throw new Error("useTabsContext() must be used within a Tabs component");return e}function b(e){return(0,c.jsx)(f.Provider,{value:e.value,children:e.children})}},28453(e,t,a){a.d(t,{R:()=>l,x:()=>o});var r=a(96540);const s={},n=r.createContext(s);function l(e){const t=r.useContext(n);return r.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:l(e.components),r.createElement(n.Provider,{value:t},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.