Skip to content

Commit

Permalink
feat: add LICENSE & pesde.toml changes
Browse files Browse the repository at this point in the history
  • Loading branch information
4x8Matrix committed Dec 3, 2024
1 parent cd75670 commit 5351ed8
Show file tree
Hide file tree
Showing 37 changed files with 95 additions and 29 deletions.
1 change: 1 addition & 0 deletions packages/async/LICENSE
3 changes: 2 additions & 1 deletion packages/async/pesde.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ description = "Discord-Luau Async - Middleground between a Promise & Future, pro
license = "MIT"
authors = ["AsyncMatrix <[email protected]>"]
repository = "https://github.com/DiscordLuau/discord-luau"
pesde_version = "0.5.0-rc.13"

includes = ["src/**", "pesde.toml"]
includes = ["src/**", "pesde.toml", "LICENSE"]

[target]
environment = "lune"
Expand Down
1 change: 1 addition & 0 deletions packages/bit/LICENSE
7 changes: 7 additions & 0 deletions packages/bit/pesde.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
name = "discord_luau/bit"
version = "0.1.0"
description = "Discord-Luau Bit - Bit library for Luau. (supports 64bit for Discord Snowflakes!)"
license = "MIT"
authors = ["AsyncMatrix <[email protected]>"]
repository = "https://github.com/DiscordLuau/discord-luau"
pesde_version = "0.5.0-rc.13"

includes = ["src/**", "pesde.toml", "LICENSE"]

[target]
environment = "luau"
Expand Down
1 change: 1 addition & 0 deletions packages/buffer/LICENSE
3 changes: 2 additions & 1 deletion packages/buffer/pesde.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ description = "Discord-Luau Buffer - Used to temporarily storing encoded data."
license = "MIT"
authors = ["AsyncMatrix <[email protected]>"]
repository = "https://github.com/DiscordLuau/discord-luau"
pesde_version = "0.5.0-rc.13"

includes = ["src/**", "pesde.toml"]
includes = ["src/**", "pesde.toml", "LICENSE"]

[target]
environment = "luau"
Expand Down
1 change: 1 addition & 0 deletions packages/builders/LICENSE
3 changes: 2 additions & 1 deletion packages/builders/pesde.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ description = "Discord-Luau Builders - Builders used to generate payloads that t
license = "MIT"
authors = ["AsyncMatrix <[email protected]>"]
repository = "https://github.com/DiscordLuau/discord-luau"
pesde_version = "0.5.0-rc.13"

includes = ["src/**", "pesde.toml"]
includes = ["src/**", "pesde.toml", "LICENSE"]

[target]
environment = "lune"
Expand Down
1 change: 1 addition & 0 deletions packages/classes/LICENSE
3 changes: 2 additions & 1 deletion packages/classes/pesde.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ description = "Discord-Luau Classes - Objects that wrap around various discord A
license = "MIT"
authors = ["AsyncMatrix <[email protected]>"]
repository = "https://github.com/DiscordLuau/discord-luau"
pesde_version = "0.5.0-rc.13"

includes = ["src/**", "pesde.toml"]
includes = ["src/**", "pesde.toml", "LICENSE"]

[target]
environment = "lune"
Expand Down
48 changes: 36 additions & 12 deletions packages/classes/src/channels/construct.luau
Original file line number Diff line number Diff line change
Expand Up @@ -22,29 +22,53 @@ return function<T>(state: state.State, channelData: apiTypes.ChannelObject): T?

if channelData.type == apiTypes.channel.ChannelTypes.GuildText then
object = guildText.new(state, channelData)
elseif channelData.type == apiTypes.channel.ChannelTypes.DM then
end

if channelData.type == apiTypes.channel.ChannelTypes.DM then
object = dmChannel.new(state, channelData)
elseif channelData.type == apiTypes.channel.ChannelTypes.GuildVoice then
end

if channelData.type == apiTypes.channel.ChannelTypes.GuildVoice then
object = guildVoice.new(state, channelData)
elseif channelData.type == apiTypes.channel.ChannelTypes.GroupDM then
end

if channelData.type == apiTypes.channel.ChannelTypes.GroupDM then
object = groupDmChannel.new(state, channelData)
elseif channelData.type == apiTypes.channel.ChannelTypes.GuildCategory then
end

if channelData.type == apiTypes.channel.ChannelTypes.GuildCategory then
object = guildCategory.new(state, channelData)
elseif channelData.type == apiTypes.channel.ChannelTypes.GuildAnnouncement then
end

if channelData.type == apiTypes.channel.ChannelTypes.GuildAnnouncement then
object = guildAnnouncement.new(state, channelData)
elseif channelData.type == apiTypes.channel.ChannelTypes.AnnouncementThread then
end

if channelData.type == apiTypes.channel.ChannelTypes.AnnouncementThread then
object = announcementThread.new(state, channelData)
elseif channelData.type == apiTypes.channel.ChannelTypes.PublicThread then
end

if channelData.type == apiTypes.channel.ChannelTypes.PublicThread then
object = publicThread.new(state, channelData)
elseif channelData.type == apiTypes.channel.ChannelTypes.PrivateThread then
end

if channelData.type == apiTypes.channel.ChannelTypes.PrivateThread then
object = privateThread.new(state, channelData)
elseif channelData.type == apiTypes.channel.ChannelTypes.GuildStageVoice then
end

if channelData.type == apiTypes.channel.ChannelTypes.GuildStageVoice then
object = guildStageVoice.new(state, channelData)
elseif channelData.type == apiTypes.channel.ChannelTypes.GuildDirectory then
end

if channelData.type == apiTypes.channel.ChannelTypes.GuildDirectory then
object = guildDirectory.new(state, channelData)
elseif channelData.type == apiTypes.channel.ChannelTypes.GuildForum then
end

if channelData.type == apiTypes.channel.ChannelTypes.GuildForum then
object = forumThread.new(state, channelData)
elseif channelData.type == apiTypes.channel.ChannelTypes.GuildMedia then
end

if channelData.type == apiTypes.channel.ChannelTypes.GuildMedia then
object = mediaThread.new(state, channelData)
end

Expand Down
1 change: 1 addition & 0 deletions packages/core/LICENSE
3 changes: 2 additions & 1 deletion packages/core/pesde.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ description = "Discord-Luau Core - The entrypoint for the Discord Luau library."
license = "MIT"
authors = ["AsyncMatrix<https://github.com/4x8Matrix>"]
repository = "https://github.com/DiscordLuau/discord-luau"
pesde_version = "0.5.0-rc.13"

includes = ["src/**", "pesde.toml"]
includes = ["src/**", "pesde.toml", "LICENSE"]

[target]
environment = "lune"
Expand Down
1 change: 1 addition & 0 deletions packages/emitter/LICENSE
3 changes: 2 additions & 1 deletion packages/emitter/pesde.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ description = "Discord-Luau Emitter - A signal-like alternative for luau"
license = "MIT"
authors = ["AsyncMatrix<https://github.com/4x8Matrix>"]
repository = "https://github.com/DiscordLuau/discord-luau"
pesde_version = "0.5.0-rc.13"

includes = ["src/**", "pesde.toml"]
includes = ["src/**", "pesde.toml", "LICENSE"]

[target]
environment = "luau"
Expand Down
1 change: 1 addition & 0 deletions packages/formdata/LICENSE
3 changes: 2 additions & 1 deletion packages/formdata/pesde.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ description = "Discord-Luau FormData - FormData implementation for luau."
license = "MIT"
authors = ["AsyncMatrix<https://github.com/4x8Matrix>"]
repository = "https://github.com/DiscordLuau/discord-luau"
pesde_version = "0.5.0-rc.13"

includes = ["src/**", "pesde.toml"]
includes = ["src/**", "pesde.toml", "LICENSE"]

[indices]
default = "https://github.com/daimond113/pesde-index"
Expand Down
1 change: 1 addition & 0 deletions packages/logger/LICENSE
3 changes: 2 additions & 1 deletion packages/logger/pesde.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ description = "Discord-Luau Logger - Logging implementation for Discord-Luau"
license = "MIT"
authors = ["AsyncMatrix<https://github.com/4x8Matrix>"]
repository = "https://github.com/DiscordLuau/discord-luau"
pesde_version = "0.5.0-rc.13"

includes = ["src/**", "pesde.toml"]
includes = ["src/**", "pesde.toml", "LICENSE"]

[target]
environment = "lune"
Expand Down
1 change: 1 addition & 0 deletions packages/rest/LICENSE
3 changes: 2 additions & 1 deletion packages/rest/pesde.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ description = "Discord-Luau Rest - providing calls to the discord HTTP Rest API"
license = "MIT"
authors = ["AsyncMatrix<https://github.com/4x8Matrix>"]
repository = "https://github.com/DiscordLuau/discord-luau"
pesde_version = "0.5.0-rc.13"

includes = ["src/**", "pesde.toml"]
includes = ["src/**", "pesde.toml", "LICENSE"]

[target]
environment = "lune"
Expand Down
1 change: 1 addition & 0 deletions packages/secret/LICENSE
3 changes: 2 additions & 1 deletion packages/secret/pesde.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ description = "Discord-Luau Secret - responsible for handling sensitive strings
license = "MIT"
authors = ["AsyncMatrix<https://github.com/4x8Matrix>"]
repository = "https://github.com/DiscordLuau/discord-luau"
pesde_version = "0.5.0-rc.13"

includes = ["src/**", "pesde.toml"]
includes = ["src/**", "pesde.toml", "LICENSE"]

[target]
environment = "luau"
Expand Down
1 change: 1 addition & 0 deletions packages/snowflake/LICENSE
3 changes: 2 additions & 1 deletion packages/snowflake/pesde.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ description = "Discord-Luau Snowflake - library enabling developers to query inf
license = "MIT"
authors = ["AsyncMatrix<https://github.com/4x8Matrix>"]
repository = "https://github.com/DiscordLuau/discord-luau"
pesde_version = "0.5.0-rc.13"

includes = ["src/**", "pesde.toml"]
includes = ["src/**", "pesde.toml", "LICENSE"]

[target]
environment = "lune"
Expand Down
1 change: 1 addition & 0 deletions packages/state/LICENSE
3 changes: 2 additions & 1 deletion packages/state/pesde.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ description = "Discord-Luau State - contains the state for a discord bot."
license = "MIT"
authors = ["AsyncMatrix<https://github.com/4x8Matrix>"]
repository = "https://github.com/DiscordLuau/discord-luau"
pesde_version = "0.5.0-rc.13"

includes = ["src/**", "pesde.toml"]
includes = ["src/**", "pesde.toml", "LICENSE"]

[target]
environment = "lune"
Expand Down
1 change: 1 addition & 0 deletions packages/std-polyfills/LICENSE
3 changes: 2 additions & 1 deletion packages/std-polyfills/pesde.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ description = "Discord-Luau Polyfills - polyfills for stdlib functions."
license = "MIT"
authors = ["AsyncMatrix<https://github.com/4x8Matrix>"]
repository = "https://github.com/DiscordLuau/discord-luau"
pesde_version = "0.5.0-rc.13"

includes = ["src/**", "pesde.toml"]
includes = ["src/**", "pesde.toml", "LICENSE"]

[target]
environment = "lune"
Expand Down
1 change: 1 addition & 0 deletions packages/stream/LICENSE
3 changes: 2 additions & 1 deletion packages/stream/pesde.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ description = "Discord-Luau Stream - stream implementation used to navigate thro
license = "MIT"
authors = ["AsyncMatrix<https://github.com/4x8Matrix>"]
repository = "https://github.com/DiscordLuau/discord-luau"
pesde_version = "0.5.0-rc.13"

includes = ["src/**", "pesde.toml"]
includes = ["src/**", "pesde.toml", "LICENSE"]

[target]
environment = "luau"
Expand Down
1 change: 1 addition & 0 deletions packages/utilities/LICENSE
3 changes: 2 additions & 1 deletion packages/utilities/pesde.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ description = "Discord Luau Utilities - a variety of utilities functions"
license = "MIT"
authors = ["AsyncMatrix<https://github.com/4x8Matrix>"]
repository = "https://github.com/DiscordLuau/discord-luau"
pesde_version = "0.5.0-rc.13"

includes = ["src/**", "pesde.toml"]
includes = ["src/**", "pesde.toml", "LICENSE"]

[target]
environment = "lune"
Expand Down
1 change: 1 addition & 0 deletions packages/voice/LICENSE
3 changes: 2 additions & 1 deletion packages/voice/pesde.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ description = "Discord Luau Voice - Implementation of the voice protocol for dis
license = "MIT"
authors = ["AsyncMatrix <[email protected]>"]
repository = "https://github.com/DiscordLuau/discord-luau"
pesde_version = "0.5.0-rc.13"

includes = ["src/**", "pesde.toml"]
includes = ["src/**", "pesde.toml", "LICENSE"]

[target]
environment = "lune"
Expand Down
1 change: 1 addition & 0 deletions packages/websocket/LICENSE
3 changes: 2 additions & 1 deletion packages/websocket/pesde.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ description = "Discord Luau Websocket - Implementation of the websocket for disc
license = "MIT"
authors = ["AsyncMatrix <[email protected]>"]
repository = "https://github.com/DiscordLuau/discord-luau"
pesde_version = "0.5.0-rc.13"

includes = ["src/**", "pesde.toml"]
includes = ["src/**", "pesde.toml", "LICENSE"]

[target]
environment = "lune"
Expand Down

0 comments on commit 5351ed8

Please sign in to comment.