PageSourceSearch

https://discord.bots.gg/_nuxt/BH3pISdR.js

js bots.gg collected 2026-10-02 04:00:57 UTC 2,072 bytes, 1 lines download raw bytes

1import{d as f,h as y,I as $,b as s,c as u,r as T,U as w,g as v,e as a,l as _,O as g,t as d,B as k,u as B,i as C,a as O,f as h,E as N,q as P,J as S}from"./DHiWUW6j.js";import{_ as V}from"./CBo-cdoy.js";const F={class:"token-input__wrapper"},x=["placeholder"],A=f({__name:"TokenField",props:{helper:{type:Boolean}},setup(l){const{$api:o}=y(),n=k(""),e=k(!1);async function m(){const{data:t}=l.helper?await o.value.POST("/api/v1/token/helper/",{body:{}}):await o.value.POST("/api/v1/token/api/",{body:{}});n.value=t.token,e.value=!0}async function i(){const t={invalidate:!0},{data:r}=l.helper?await o.value.POST("/api/v1/token/helper/",{body:t}):await o.value.POST("/api/v1/token/api/",{body:t});n.value=r.token}const c=$("input");function p(){e.value&&(c.value.select(),document.execCommand("copy"))}return(t,r)=>(s(),u("div",F,[T(a("input",{ref_key:"input",ref:c,"onUpdate:modelValue":r[0]||(r[0]=b=>g(n)?n.value=b:null),placeholder:l.helper?t.$t("token.helper"):t.$t("token.api"),type:"text",class:"input token-input",readonly:"",onClick:_(p,["prevent"])},null,8,x),[[w,v(n)]]),v(e)?(s(),u("button",{key:1,type:"button",class:"button is-form",onClick:_(i,["prevent"])},d(t.$t("token.invalidate")),1)):(s(),u("button",{key:0,type:"submit",class:"button is-form",onClick:_(m,["prevent"])},d(t.$t("token.reveal")),1))]))}}),D=Object.assign(A,{__name:"TokenField"}),E={class:"centered-container padded-container row"},I={class:"col-2"},M={class:"col-2"},R={class:"col-2"},q=f({__name:"docs",setup(l){const{t:o}=B(),n=C();return O({title:o("docs.header")}),(e,m)=>{const i=D,c=V,p=S;return s(),u("div",E,[a("h1",null,d(e.$t("docs.header")),1),a("p",null,d(e.$t("docs.text")),1),a("div",I,[h(i),v(n)?.helper?(s(),N(i,{key:0,helper:""})):P("",!0)]),a("div",M,[h(c,{tabs:[{label:e.$t("docs.endpoints.title"),href:"/docs/endpoints"},{label:e.$t("docs.structures"),href:"/docs/structures"},{label:e.$t("docs.authentication"),href:"/docs/authentication"},{label:e.$t("docs.ratelimiting"),href:"/docs/ratelimiting"}]},null,8,["tabs"])]),a("div",R,[h(p)])])}}});export{q as default};

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.