This repository was archived by the owner on Sep 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
118 lines (112 loc) · 12.6 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>Guilded.TS</title><meta name="description" content="Documentation for Guilded.TS"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="assets/style.css"/><link rel="stylesheet" href="assets/highlight.css"/><script async src="assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
<div class="tsd-toolbar-contents container">
<div class="table-cell" id="tsd-search" data-base=".">
<div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
<div class="field">
<div id="tsd-toolbar-links"></div></div>
<ul class="results">
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li></ul><a href="index.html" class="title">Guilded.TS</a></div>
<div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
<div class="container container-main">
<div class="col-8 col-content">
<div class="tsd-page-title">
<h2>Guilded.TS</h2></div>
<div class="tsd-panel tsd-typography"><div align="center">
<a href="https://guildedts.js.org">
<img src="https://guildedts.js.org/banner.png" alt="Guilded.TS"/>
</a>
<div>
<A href="https://guildedts.js.org/support">
<img src="https://shields.yoki-labs.xyz/shields/vanity/guildedts?style=for-the-badge" alt="Guilded server">
</a>
<a href="https://npmjs.com/guilded.ts">
<img src="https://img.shields.io/npm/v/guilded.ts?style=for-the-badge" alt="Version" />
</a>
<a href="https://npmjs.com/guilded.ts">
<img src="https://img.shields.io/npm/dt/guilded.ts?style=for-the-badge" alt="Downloads" />
</a>
<a href="https://github.com/guildedts/guilded.ts/blob/main/LICENSE">
<img src="https://img.shields.io/github/license/guildedts/guilded.ts?style=for-the-badge" alt="License" />
</a>
</div>
</div>
<a href="#about" id="about" style="color: inherit; text-decoration: none;">
<h1>About</h1>
</a>
<p>Guilded.TS is feature rich NPM package for interacting with the Guilded API.</p>
<a href="#links" id="links" style="color: inherit; text-decoration: none;">
<h1>Links</h1>
</a>
<ul>
<li><a href="https://guildedts.js.org">Website</a></li>
<li><a href="https://docs.guildedts.js.org/modules/guilded_ts">Documentation</a></li>
<li><a href="https://guildedts.js.org/guide">Guide</a></li>
<li><a href="https://guildedts.js.org/support">Guilded.TS Guilded Server</a></li>
<li><a href="https://github.com/guildedts/guilded.ts/tree/main/packages/guilded.ts">GitHub</a></li>
<li><a href="https://npmjs.com/guilded.ts">NPM</a></li>
</ul>
<a href="#packages" id="packages" style="color: inherit; text-decoration: none;">
<h1>Packages</h1>
</a>
<ul>
<li><code>guilded.ts</code> (<a href="https://github.com/guildedts/guilded.ts/tree/main/packages/guilded.ts">GitHub</a> | <a href="https://npmjs.com/guilded.ts">NPM</a>) - The main package for interacting with the <a href="https://www.guilded.gg">Guilded</a> API.</li>
<li><code>guilded-api-typings</code> (<a href="https://github.com/guildedts/guilded.ts/tree/main/packages/guilded-api-typings">GitHub</a> | <a href="https://npmjs.com/guilded-api-typings">NPM</a>) - Type definitions for the <a href="https://www.guilded.gg">Guilded</a> API.</li>
<li><code>@guildedts/framework</code> (<a href="https://github.com/guildedts/guilded.ts/tree/main/packages/framework">GitHub</a> | <a href="https://npmjs.com/@guildedts/framework">NPM</a>) - A framework for creating a <a href="https://www.guilded.gg">Guilded</a> bot.</li>
<li><code>@guildedts/builders</code> (<a href="https://github.com/guildedts/guilded.ts/tree/main/packages/builders">GitHub</a> | <a href="https://npmjs.com/@guildedts/builders">NPM</a>) - A set of builders for creating a <a href="https://www.guilded.gg">Guilded</a> bot.</li>
<li><code>@guildedts/rest</code> (<a href="https://github.com/guildedts/guilded.ts/tree/main/packages/rest">GitHub</a> | <a href="https://npmjs.com/@guildedts/rest">NPM</a>) - The REST API manager for Guilded.TS.</li>
<li><code>@guildedts/ws</code> (<a href="https://github.com/guildedts/guilded.ts/tree/main/packages/ws">GitHub</a> | <a href="https://npmjs.com/@guildedts/ws">NPM</a>) - The Websocket API manager for Guilded.TS.</li>
</ul>
<a href="#installation" id="installation" style="color: inherit; text-decoration: none;">
<h1>Installation</h1>
</a>
<ul>
<li><code>npm i guilded.ts</code></li>
<li><code>yarn add guilded.ts</code></li>
<li><code>pnpm add guilded.ts</code></li>
</ul>
<a href="#example-usage" id="example-usage" style="color: inherit; text-decoration: none;">
<h1>Example usage</h1>
</a>
<pre><code class="language-js"><span class="hl-0">import</span><span class="hl-1"> Client </span><span class="hl-0">from</span><span class="hl-1"> </span><span class="hl-2">'guilded.ts'</span><span class="hl-1">;</span><br/><span class="hl-3">// Or</span><br/><span class="hl-0">const</span><span class="hl-1"> { </span><span class="hl-4">Client</span><span class="hl-1"> } </span><span class="hl-0">=</span><span class="hl-1"> </span><span class="hl-5">require</span><span class="hl-1">(</span><span class="hl-2">'guilded.ts'</span><span class="hl-1">);</span><br/><br/><span class="hl-0">const</span><span class="hl-1"> </span><span class="hl-4">client</span><span class="hl-1"> </span><span class="hl-0">=</span><span class="hl-1"> </span><span class="hl-0">new</span><span class="hl-1"> </span><span class="hl-5">Client</span><span class="hl-1">();</span><br/><br/><span class="hl-1">client.</span><span class="hl-5">once</span><span class="hl-1">(</span><span class="hl-2">'ready'</span><span class="hl-1">, () </span><span class="hl-0">=></span><span class="hl-1"> console.</span><span class="hl-5">log</span><span class="hl-1">(</span><span class="hl-2">`Logged in as ${</span><span class="hl-1">client</span><span class="hl-2">.</span><span class="hl-1">user</span><span class="hl-0">!</span><span class="hl-2">.</span><span class="hl-1">name</span><span class="hl-2">}`</span><span class="hl-1">));</span><br/><span class="hl-1">client.</span><span class="hl-5">on</span><span class="hl-1">(</span><span class="hl-2">'disconnect'</span><span class="hl-1">, () </span><span class="hl-0">=></span><span class="hl-1"> console.</span><span class="hl-5">log</span><span class="hl-1">(</span><span class="hl-2">'Disconnected from Guilded'</span><span class="hl-1">));</span><br/><span class="hl-1">client.</span><span class="hl-5">on</span><span class="hl-1">(</span><span class="hl-2">'messageCreate'</span><span class="hl-1">, (</span><span class="hl-6">message</span><span class="hl-1">) </span><span class="hl-0">=></span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-0">if</span><span class="hl-1"> (message.content </span><span class="hl-0">===</span><span class="hl-1"> </span><span class="hl-2">'ping'</span><span class="hl-1">) message.</span><span class="hl-5">reply</span><span class="hl-1">(</span><span class="hl-2">'Pong!'</span><span class="hl-1">);</span><br/><span class="hl-1">});</span><br/><br/><span class="hl-1">client.</span><span class="hl-5">login</span><span class="hl-1">(</span><span class="hl-2">'BOT_TOKEN'</span><span class="hl-1">);</span>
</code></pre>
<hr>
<p><strong>Maintained by <a href="https://gamertike.com">Gamertike</a> | <a href="https://github.com/guildedts/guilded.ts/tree/main/.github/CONTRIBUTING.md">Contribute</a> | Inspired by <a href="https://discord.js.org">discord.js</a></strong></p>
</div></div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<div class="tsd-navigation settings">
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Settings</h3></summary>
<div class="tsd-accordion-details">
<div class="tsd-filter-visibility">
<h4 class="uppercase">Member Visibility</h4><form>
<ul id="tsd-filter-options">
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li>
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></form></div>
<div class="tsd-theme-toggle">
<h4 class="uppercase">Theme</h4><select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div>
<nav class="tsd-navigation primary">
<details class="tsd-index-accordion" open><summary class="tsd-accordion-summary">
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Modules</h3></summary>
<div class="tsd-accordion-details">
<ul>
<li class="current selected"><a href="modules.html">Guilded.TS</a>
<ul>
<li class="tsd-kind-module"><a href="modules/_guildedts_builders.html">@guildedts/builders</a>
<ul>
<li class="tsd-kind-module tsd-parent-kind-module"><a href="modules/_guildedts_builders._internal_.html"><internal></a></li></ul></li>
<li class="tsd-kind-module"><a href="modules/_guildedts_framework.html">@guildedts/framework</a>
<ul>
<li class="tsd-kind-module tsd-parent-kind-module"><a href="modules/_guildedts_framework._internal_.html"><internal></a></li></ul></li>
<li class="tsd-kind-module"><a href="modules/_guildedts_rest.html">@guildedts/rest</a>
<ul>
<li class="tsd-kind-module tsd-parent-kind-module"><a href="modules/_guildedts_rest._internal_.html"><internal></a></li></ul></li>
<li class="tsd-kind-module"><a href="modules/_guildedts_util.html">@guildedts/util</a></li>
<li class="tsd-kind-module"><a href="modules/_guildedts_ws.html">@guildedts/ws</a>
<ul>
<li class="tsd-kind-module tsd-parent-kind-module"><a href="modules/_guildedts_ws._internal_.html"><internal></a></li></ul></li>
<li class="tsd-kind-module"><a href="modules/guilded_api_typings.html">guilded-<wbr/>api-<wbr/>typings</a></li>
<li class="tsd-kind-module"><a href="modules/guilded_ts.html">guilded.ts</a>
<ul>
<li class="tsd-kind-module tsd-parent-kind-module"><a href="modules/guilded_ts._internal_.html"><internal></a></li></ul></li></ul></li></ul></div></details></nav></div></div>
<div class="overlay"></div><script src="assets/main.js"></script></body></html>