Skip to content

Commit

Permalink
feature: update properties for DiscordGuild
Browse files Browse the repository at this point in the history
  • Loading branch information
4x8Matrix committed Jun 22, 2024
1 parent f2b02fd commit defc604
Showing 1 changed file with 239 additions and 7 deletions.
246 changes: 239 additions & 7 deletions Package/Classes/Objects/DiscordGuild.luau
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ local DiscordGuildMember = require("@Objects/DiscordGuildMember")
local DiscordAutomoderationRule = require("@Objects/DiscordAutomoderationRule")
local DiscordInvite = require("@Objects/DiscordInvite")
local DiscordIntegration = require("@Objects/DiscordIntegration")
local DiscordSticker = require("@Objects/DiscordSticker")

local CommandBuilder = require("@Builders/CommandBuilder")
local AutomoderationRuleBuilder = require("@Builders/AutomoderationRuleBuilder")
Expand Down Expand Up @@ -927,22 +928,217 @@ function DiscordGuild.Interface.new(
)
--[=[
@prop shardId number
@within Objects.DiscordGuildBan
@within Objects.DiscordGuild
]=]

--[=[
@prop id string?
@within Objects.DiscordGuildBan
@prop id string
@within Objects.DiscordGuild
]=]

--[=[
@prop name string
@within Objects.DiscordGuild
]=]

--[=[
@prop icon string?
@within Objects.DiscordGuild
]=]

--[=[
@prop iconHash string?
@within Objects.DiscordGuild
]=]

--[=[
@prop splash string?
@within Objects.DiscordGuild
]=]

--[=[
@prop discoverySplash string?
@within Objects.DiscordGuild
]=]

--[=[
@prop owner boolean
@within Objects.DiscordGuild
]=]

--[=[
@prop ownerId string
@within Objects.DiscordGuild
]=]

--[=[
@prop permissions number
@within Objects.DiscordGuild
]=]

--[=[
@prop afkChannelId string?
@within Objects.DiscordGuild
]=]

--[=[
@prop afkTimeout number
@within Objects.DiscordGuild
]=]

--[=[
@prop widgetEnabled boolean
@within Objects.DiscordGuild
]=]

--[=[
@prop widgetChannelId string?
@within Objects.DiscordGuild
]=]

--[=[
@prop verificationLevel number
@within Objects.DiscordGuild
]=]

--[=[
@prop defaultMessageNotifications number
@within Objects.DiscordGuild
]=]

--[=[
@prop explicitContentFilter number
@within Objects.DiscordGuild
]=]

--[=[
@prop roles { Objects.DiscordGuildRole }
@within Objects.DiscordGuildBan
@within Objects.DiscordGuild
]=]

--[=[
@prop emojis { Objects.DiscordEmoji }
@within Objects.DiscordGuildBan
@within Objects.DiscordGuild
]=]

--[=[
@prop features { string }
@within Objects.DiscordGuild
]=]

--[=[
@prop mfaLevel number
@within Objects.DiscordGuild
]=]

--[=[
@prop applicationId string?
@within Objects.DiscordGuild
]=]

--[=[
@prop systemChannelId string?
@within Objects.DiscordGuild
]=]

--[=[
@prop systemChannelFlags number
@within Objects.DiscordGuild
]=]

--[=[
@prop rulesChannelId string?
@within Objects.DiscordGuild
]=]

--[=[
@prop maxPresences number?
@within Objects.DiscordGuild
]=]

--[=[
@prop maxMembers number
@within Objects.DiscordGuild
]=]

--[=[
@prop vanityUrlCode string?
@within Objects.DiscordGuild
]=]

--[=[
@prop description string?
@within Objects.DiscordGuild
]=]

--[=[
@prop banner string?
@within Objects.DiscordGuild
]=]

--[=[
@prop premiumTier number
@within Objects.DiscordGuild
]=]

--[=[
@prop premiumSubscriptionCount number
@within Objects.DiscordGuild
]=]

--[=[
@prop preferredLocale string
@within Objects.DiscordGuild
]=]

--[=[
@prop publicUpdatesChannelId string?
@within Objects.DiscordGuild
]=]

--[=[
@prop maxVideoChannelUsers number
@within Objects.DiscordGuild
]=]

--[=[
@prop maxStageVideoChannelUsers number
@within Objects.DiscordGuild
]=]

--[=[
@prop approximateMemberCount number
@within Objects.DiscordGuild
]=]

--[=[
@prop approximatePresenceCount number
@within Objects.DiscordGuild
]=]

--[=[
@prop welcomeScreen Objects.GuildWelcomeScreen?
@within Objects.DiscordGuild
]=]

--[=[
@prop nsfwLevel number
@within Objects.DiscordGuild
]=]

--[=[
@prop stickers { Objects.DiscordSticker }
@within Objects.DiscordGuild
]=]

--[=[
@prop premiumProgressBarEnabled boolean
@within Objects.DiscordGuild
]=]

--[=[
@prop safetyAlertsChannelId string?
@within Objects.DiscordGuild
]=]

local self = discordClient.discordCache:getDataOr(CacheType.DiscordGuild, guildData.id, function()
Expand Down Expand Up @@ -976,12 +1172,48 @@ end
export type DiscordGuild = typeof(DiscordGuild.Prototype) & {
discordClient: any,
shardId: number,

id: string,
name: string,

icon: string?,
iconHash: string?,
splash: string?,
discoverySplash: string?,
owner: boolean,
ownerId: string,
permissions: number,
afkChannelId: string?,
afkTimeout: number,
widgetEnabled: boolean,
widgetChannelId: string?,
verificationLevel: number,
defaultMessageNotifications: number,
explicitContentFilter: number,
roles: { DiscordGuildRole.DiscordGuildRole },
emojis: { DiscordEmoji.DiscordEmoji },
features: { string },
mfaLevel: number,
applicationId: string?,
systemChannelId: string?,
systemChannelFlags: number,
rulesChannelId: string?,
maxPresences: number?,
maxMembers: number,
vanityUrlCode: string?,
description: string?,
banner: string?,
premiumTier: number,
premiumSubscriptionCount: number,
preferredLocale: string,
publicUpdatesChannelId: string?,
maxVideoChannelUsers: number,
maxStageVideoChannelUsers: number,
approximateMemberCount: number,
approximatePresenceCount: number,
welcomeScreen: GuildWelcomeScreen.GuildWelcomeScreen?,
nsfwLevel: number,
stickers: { DiscordSticker.DiscordSticker },
premiumProgressBarEnabled: boolean,
safetyAlertsChannelId: string?,
}

return DiscordGuild.Interface

0 comments on commit defc604

Please sign in to comment.