diff --git a/Package/Classes/Objects/DiscordGuild.luau b/Package/Classes/Objects/DiscordGuild.luau index d0a94cd..496b595 100644 --- a/Package/Classes/Objects/DiscordGuild.luau +++ b/Package/Classes/Objects/DiscordGuild.luau @@ -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") @@ -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() @@ -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