示例#1
0
文件: Guild.cs 项目: Daktyl/Daktyl
 public Guild(Snowflake id, string name, string?icon, string?splash, string?discoverySplash, bool?owner,
              Snowflake ownerId, PermissionFlags?permissions, string region, Snowflake?afkChannelId, int afkTimeout,
              bool?embedEnabled, Snowflake?embedChannelId, VerificationLevel verificationLevel,
              MessageNotificationLevel defaultMessageNotifictations, ExplicitContentFilterLevel explicitContentFilter,
              Role[] roles, Emoji[] emojis, string[] features, MFALevel mfaLevel, Snowflake?applicationId,
              bool?widgedEnabled, Snowflake?widgedChnanelId, Snowflake?systemChannelId,
              SystemChannelFlags systemChannelFlags, Snowflake?rulesChannelId, DateTime?joinedAt, bool?large,
              bool?unavailable, int?memberCount, VoiceState[] voiceStates, GuildMember[] members, Channel[] channels,
              Presence[] presences, int?maxPresences, int?maxMembers, string?vanityUrlCode, string?description,
              string?banner, PremiumTier premiumTier, int?premiumSubscriptionCount, string prefferedLocale,
              Snowflake?publicUpdatesChannelId)
 {
     Id                           = id;
     Name                         = name;
     Icon                         = icon;
     Splash                       = splash;
     DiscoverySplash              = discoverySplash;
     Owner                        = owner;
     OwnerId                      = ownerId;
     Permissions                  = permissions;
     Region                       = region;
     AfkChannelId                 = afkChannelId;
     AfkTimeout                   = afkTimeout;
     EmbedEnabled                 = embedEnabled;
     EmbedChannelId               = embedChannelId;
     VerificationLevel            = verificationLevel;
     DefaultMessageNotifictations = defaultMessageNotifictations;
     ExplicitContentFilter        = explicitContentFilter;
     Roles                        = roles;
     Emojis                       = emojis;
     Features                     = features;
     MFALevel                     = mfaLevel;
     ApplicationId                = applicationId;
     WidgedEnabled                = widgedEnabled;
     WidgedChnanelId              = widgedChnanelId;
     SystemChannelId              = systemChannelId;
     SystemChannelFlags           = systemChannelFlags;
     RulesChannelId               = rulesChannelId;
     JoinedAt                     = joinedAt;
     Large                        = large;
     Unavailable                  = unavailable;
     MemberCount                  = memberCount;
     VoiceStates                  = voiceStates;
     Members                      = members;
     Channels                     = channels;
     Presences                    = presences;
     MaxPresences                 = maxPresences;
     MaxMembers                   = maxMembers;
     VanityUrlCode                = vanityUrlCode;
     Description                  = description;
     Banner                       = banner;
     PremiumTier                  = premiumTier;
     PremiumSubscriptionCount     = premiumSubscriptionCount;
     PrefferedLocale              = prefferedLocale;
     PublicUpdatesChannelId       = publicUpdatesChannelId;
 }
示例#2
0
        protected static string ExplicitContentFilterLevelToString(ExplicitContentFilterLevel value)
        {
            switch (value)
            {
            case ExplicitContentFilterLevel.Disabled:
                return("Disabled");

            case ExplicitContentFilterLevel.MembersWithoutRoles:
                return("Filtered for members without roles");

            case ExplicitContentFilterLevel.AllMembers:
                return("Filtered for all members");

            default:
                return(value.ToString());
            }
        }