[ifcbrk] feature: BOOST (#1319)
* add new MessageTypes * Add new properties to the updated models * add the SystemChannelMessageDeny unsure if there would be a better name for this enum, given it's inverted nature, open for suggestions * add PremiumTier flag, add Guild description property * add method for getting vanity image from CDN * make the size of GetGuildVanityUrl optional * lint: remove commented out code from prev commit * add a None flag to SystemChannelMessage enum * implement the new modify guild params * implement additional model properties in IGuild types * implement GuildMember PremiumSince * docs: reword size param explanation * add extension methods that make it easier to check the SystemChannelMessage flags for end users because the flag is inverted, this ideally should make it easier for the user. it may also be useful to do something similar for modifying this property * docs: correct typo from copy-paste * add the premium_subscription_count property * fix vanity url code and banner switchup a mistake was made somewhere, that's all I know for sure * clarify remark on inverted logic for system channel flags * fix PremiumSubscriptionCount optional value * add another example to the systemchannelflags xmldoc remark * docs: fix typos, clarify wording * use DateTimeOffset for PremiumSince, follow conventions from other prop
This commit is contained in:
committed by
Christopher F
parent
d6d4429c3d
commit
faf23dee35
@@ -52,6 +52,18 @@ namespace Discord.Rest
|
||||
internal bool Available { get; private set; }
|
||||
/// <inheritdoc />
|
||||
public ulong? ApplicationId { get; private set; }
|
||||
/// <inheritdoc />
|
||||
public PremiumTier PremiumTier { get; private set; }
|
||||
/// <inheritdoc />
|
||||
public string BannerId { get; private set; }
|
||||
/// <inheritdoc />
|
||||
public string VanityURLCode { get; private set; }
|
||||
/// <inheritdoc />
|
||||
public SystemChannelMessageDeny SystemChannelFlags { get; private set; }
|
||||
/// <inheritdoc />
|
||||
public string Description { get; private set; }
|
||||
/// <inheritdoc />
|
||||
public int PremiumSubscriptionCount { get; private set; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public DateTimeOffset CreatedAt => SnowflakeUtils.FromSnowflake(Id);
|
||||
@@ -62,6 +74,8 @@ namespace Discord.Rest
|
||||
public string IconUrl => CDN.GetGuildIconUrl(Id, IconId);
|
||||
/// <inheritdoc />
|
||||
public string SplashUrl => CDN.GetGuildSplashUrl(Id, SplashId);
|
||||
/// <inheritdoc />
|
||||
public string BannerUrl => CDN.GetGuildBannerUrl(Id, BannerId);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the built-in role containing all users in this guild.
|
||||
@@ -104,6 +118,12 @@ namespace Discord.Rest
|
||||
DefaultMessageNotifications = model.DefaultMessageNotifications;
|
||||
ExplicitContentFilter = model.ExplicitContentFilter;
|
||||
ApplicationId = model.ApplicationId;
|
||||
PremiumTier = model.PremiumTier;
|
||||
VanityURLCode = model.VanityURLCode;
|
||||
BannerId = model.Banner;
|
||||
SystemChannelFlags = model.SystemChannelFlags;
|
||||
Description = model.Description;
|
||||
PremiumSubscriptionCount = model.PremiumSubscriptionCount.GetValueOrDefault();
|
||||
|
||||
if (model.Emojis != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user