Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/DiscordLuau/docs
Browse files Browse the repository at this point in the history
  • Loading branch information
4x8Matrix committed Jun 20, 2024
2 parents e66188b + feaea85 commit 1a099a5
Show file tree
Hide file tree
Showing 17 changed files with 195 additions and 196 deletions.
81 changes: 80 additions & 1 deletion src/content/docs/classes/Network/DiscordShard.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,86 @@ This class is internal and should not be used directly by developers.

## Properties

The DiscordShard instance has no set properties!
### discordWebsocket

<LuaProperty name="DiscordShard.discordWebsocket" type="Network.DiscordWebsocket" />
---

### websocketUrl

<LuaProperty name="DiscordShard.websocketUrl" type="string" />
---

### reporter

<LuaProperty name="DiscordShard.reporter" type="Vendor.Console" />
---

### heartbeatTask

<LuaProperty name="DiscordShard.heartbeatTask" type="thread?" />
---

### resumeSessionId

<LuaProperty name="DiscordShard.resumeSessionId" type="string" />
---

### dispatchSequence

<LuaProperty name="DiscordShard.dispatchSequence" type="number" />
---

### heartbeatInterval

<LuaProperty name="DiscordShard.heartbeatInterval" type="number" />
---

### heartbeatClockTime

<LuaProperty name="DiscordShard.heartbeatClockTime" type="number" />
---

### heartbeatPing

<LuaProperty name="DiscordShard.heartbeatPing" type="number" />
---

### identified

<LuaProperty name="DiscordShard.identified" type="boolean?" />
---

### resumeGatewayUrl

<LuaProperty name="DiscordShard.resumeGatewayUrl" type="string" />
---

### heartbeatAck

<LuaProperty name="DiscordShard.heartbeatAck" type="boolean?" />
---

### activeConnections

<LuaProperty name="DiscordShard.activeConnections" type="{ unknown }" />
---

### onEvent

<LuaProperty name="DiscordShard.onEvent" type="Vendor.Signal<string, { [any]: any }>" />
---

### onIdentified

<LuaProperty name="DiscordShard.onIdentified" type="Vendor.Signal" />
---

### shardId

<LuaProperty name="DiscordShard.shardId" type="number" />
---


[//]: # (----- DOCUMENT METHODS ----- )

Expand Down
80 changes: 0 additions & 80 deletions src/content/docs/classes/Network/DiscordUDP.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,86 +27,6 @@ This class is internal and should not be used directly by developers.

## Properties

### discordWebsocket

<LuaProperty name="DiscordUDP.discordWebsocket" type="Network.DiscordWebsocket" />
---

### websocketUrl

<LuaProperty name="DiscordUDP.websocketUrl" type="string" />
---

### reporter

<LuaProperty name="DiscordUDP.reporter" type="Vendor.Console" />
---

### heartbeatTask

<LuaProperty name="DiscordUDP.heartbeatTask" type="thread?" />
---

### resumeSessionId

<LuaProperty name="DiscordUDP.resumeSessionId" type="string" />
---

### dispatchSequence

<LuaProperty name="DiscordUDP.dispatchSequence" type="number" />
---

### heartbeatInterval

<LuaProperty name="DiscordUDP.heartbeatInterval" type="number" />
---

### heartbeatClockTime

<LuaProperty name="DiscordUDP.heartbeatClockTime" type="number" />
---

### heartbeatPing

<LuaProperty name="DiscordUDP.heartbeatPing" type="number" />
---

### identified

<LuaProperty name="DiscordUDP.identified" type="boolean?" />
---

### resumeGatewayUrl

<LuaProperty name="DiscordUDP.resumeGatewayUrl" type="string" />
---

### heartbeatAck

<LuaProperty name="DiscordUDP.heartbeatAck" type="boolean?" />
---

### activeConnections

<LuaProperty name="DiscordUDP.activeConnections" type="{ unknown }" />
---

### onEvent

<LuaProperty name="DiscordUDP.onEvent" type="Vendor.Signal<string, { [any]: any }>" />
---

### onIdentified

<LuaProperty name="DiscordUDP.onIdentified" type="Vendor.Signal" />
---

### shardId

<LuaProperty name="DiscordUDP.shardId" type="number" />
---

### udpActive

<LuaProperty name="DiscordUDP.udpActive" type="boolean" />
Expand Down
4 changes: 2 additions & 2 deletions src/content/docs/classes/Network/DiscordVoiceConnection.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,12 @@ This class is internal and should not be used directly by developers. Instead, u

### voiceServerUpdate

<LuaProperty name="DiscordVoiceConnection.voiceServerUpdate" type="{ endpoint: string, token: string, guildId: string, }" />
<LuaProperty name="DiscordVoiceConnection.voiceServerUpdate" type="{ endpoint: string, token: string, guildId: string }" />
---

### voiceStateUpdate

<LuaProperty name="DiscordVoiceConnection.voiceStateUpdate" type="{ sessionId: string, }" />
<LuaProperty name="DiscordVoiceConnection.voiceStateUpdate" type="{ sessionId: string }" />
---

### onEvent
Expand Down
12 changes: 6 additions & 6 deletions src/content/docs/classes/Network/WebsocketBuffer.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ This class is internal and should not be used directly by developers. Instead, u

### data

<LuaProperty name="WebsocketBuffer.data" type="string" />
---

### data

<LuaProperty name="WebsocketBuffer.data" type="any" />
---

Expand All @@ -54,7 +49,12 @@ This class is internal and should not be used directly by developers. Instead, u

### metadata

<LuaProperty name="WebsocketBuffer.metadata" type="{ headers: { [string]: string }, attachments: { any }, }," />
<LuaProperty name="WebsocketBuffer.metadata" type="{ headers: { [string]: string }, attachments: { any } }," />
---

### data

<LuaProperty name="WebsocketBuffer.data" type="string" />
---


Expand Down
20 changes: 10 additions & 10 deletions src/content/docs/classes/Objects/BaseGuildTextChannel.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,6 @@ A base guild text channel, where any/all text channels extend from.

## Properties

### lastPinTimestamp

<LuaProperty name="BaseGuildTextChannel.lastPinTimestamp" type="string" />
---

### lastMessageId

<LuaProperty name="BaseGuildTextChannel.lastMessageId" type="string?" />
---

### guildId

<LuaProperty name="BaseGuildTextChannel.guildId" type="string" />
Expand Down Expand Up @@ -63,6 +53,16 @@ A base guild text channel, where any/all text channels extend from.
<LuaProperty name="BaseGuildTextChannel.flags" type="number" />
---

### lastPinTimestamp

<LuaProperty name="BaseGuildTextChannel.lastPinTimestamp" type="string" />
---

### lastMessageId

<LuaProperty name="BaseGuildTextChannel.lastMessageId" type="string?" />
---


[//]: # (----- DOCUMENT METHODS ----- )

Expand Down
32 changes: 16 additions & 16 deletions src/content/docs/classes/Objects/BaseGuildThread.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ A base discord Thread channel, all discord threads extend from.

### threadMetadata

<LuaProperty name="BaseGuildThread.threadMetadata" type="{ archived: boolean, autoArchiveDuration: number, archiveTimestamp: string, locked: boolean, invitable: boolean?, createTimestamp: string?, }," />
<LuaProperty name="BaseGuildThread.threadMetadata" type="{ archived: boolean, autoArchiveDuration: number, archiveTimestamp: string, locked: boolean, invitable: boolean?, createTimestamp: string? }," />
---

### availableTags

<LuaProperty name="BaseGuildThread.availableTags" type="{ { id: string, name: string, moderated: boolean, emojiId: string?, emojiName: string?, }, }," />
<LuaProperty name="BaseGuildThread.availableTags" type="{ { id: string, name: string, moderated: boolean, emojiId: string?, emojiName: string? } }," />
---

### appliedTags
Expand All @@ -63,20 +63,6 @@ A base discord Thread channel, all discord threads extend from.
<LuaProperty name="BaseGuildThread.defaultReactionEmoji" type="Objects.DiscordEmoji" />
---

### lastPinTimestamp

<LuaProperty name="BaseGuildThread.lastPinTimestamp" type="string" />
---


> This property was inherited from [Objects.BaseGuildTextChannel](Objects.BaseGuildTextChannel)
### lastMessageId

<LuaProperty name="BaseGuildThread.lastMessageId" type="string?" />
---


> This property was inherited from [Objects.BaseGuildTextChannel](Objects.BaseGuildTextChannel)
### guildId

<LuaProperty name="BaseGuildThread.guildId" type="string" />
Expand Down Expand Up @@ -118,6 +104,20 @@ A base discord Thread channel, all discord threads extend from.
---


> This property was inherited from [Objects.BaseGuildTextChannel](Objects.BaseGuildTextChannel)
### lastPinTimestamp

<LuaProperty name="BaseGuildThread.lastPinTimestamp" type="string" />
---


> This property was inherited from [Objects.BaseGuildTextChannel](Objects.BaseGuildTextChannel)
### lastMessageId

<LuaProperty name="BaseGuildThread.lastMessageId" type="string?" />
---


> This property was inherited from [Objects.BaseGuildTextChannel](Objects.BaseGuildTextChannel)
[//]: # (----- DOCUMENT METHODS ----- )
Expand Down
52 changes: 26 additions & 26 deletions src/content/docs/classes/Objects/DiscordApplication.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,32 +28,6 @@ The `DiscordApplication` class provides methods to interact with Discord applica
<LuaProperty name="DiscordApplication.id" type="string" />
---

### recipients

<LuaProperty name="DiscordApplication.recipients" type="{ Objects.DiscordUser }" />
---

### id

<LuaProperty name="DiscordApplication.id" type="string The unique identifier of the Discord application." />
### flags

<LuaProperty name="DiscordApplication.flags" type="number The flags associated with the Discord application." />
### id

<LuaProperty name="DiscordApplication.id" type="string" />
---

### flags

<LuaProperty name="DiscordApplication.flags" type="number" />
---

### id

<LuaProperty name="DiscordApplication.id" type="string" />
---

### guildId

<LuaProperty name="DiscordApplication.guildId" type="string" />
Expand Down Expand Up @@ -84,6 +58,32 @@ The `DiscordApplication` class provides methods to interact with Discord applica
<LuaProperty name="DiscordApplication.videoQualityMode" type="number" />
---

### id

<LuaProperty name="DiscordApplication.id" type="string" />
---

### recipients

<LuaProperty name="DiscordApplication.recipients" type="{ Objects.DiscordUser }" />
---

### id

<LuaProperty name="DiscordApplication.id" type="string The unique identifier of the Discord application." />
### flags

<LuaProperty name="DiscordApplication.flags" type="number The flags associated with the Discord application." />
### id

<LuaProperty name="DiscordApplication.id" type="string" />
---

### flags

<LuaProperty name="DiscordApplication.flags" type="number" />
---


[//]: # (----- DOCUMENT METHODS ----- )

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ The `DiscordAutomoderationRule` class provides methods to interact with Discord

### triggerMetadata

<LuaProperty name="DiscordAutomoderationRule.triggerMetadata" type="{ keywordFilter: { string }, regexPatterns: { string }, presets: { number }, allowList: { string }, mentionTotalLimit: number, mentionRaidProtectionEnabled: boolean, }" />
<LuaProperty name="DiscordAutomoderationRule.triggerMetadata" type="{ keywordFilter: { string }, regexPatterns: { string }, presets: { number }, allowList: { string }, mentionTotalLimit: number, mentionRaidProtectionEnabled: boolean }" />
---

### actions

<LuaProperty name="DiscordAutomoderationRule.actions" type="{ type: number, metadata: { channelId: string, durationSeconds: number, customMessage: string?, }?, }," />
<LuaProperty name="DiscordAutomoderationRule.actions" type="{ type: number, metadata: { channelId: string, durationSeconds: number, customMessage: string? }? }," />
---


Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/classes/Objects/DiscordGuild.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ Gets the vanity url for this guild.
Gets the guild welcome screen for this guild.
### getGuildWidgetImageAsync

> <LuaDeclaration name="getGuildWidgetImageAsync" className="DiscordGuild" args={[ { name: "style", type: ""shield" | "banner1" | "banner2" | "banner3" | "banner4"" } ]} returnType="Vendor.Future<string>" isMethod />
> <LuaDeclaration name="getGuildWidgetImageAsync" className="DiscordGuild" args={[ { name: "style", type: "'shield' | 'banner1' | 'banner2' | 'banner3' | 'banner4'" } ]} returnType="Vendor.Future<string>" isMethod />
Gets the binary PNG image for a server widget
### modifyGuildWelcomeScreenAsync

Expand Down
Loading

0 comments on commit 1a099a5

Please sign in to comment.