Skip to content

Commit b33cb22

Browse files
committed
chore: add some missing things
1 parent 3bf8395 commit b33cb22

File tree

3 files changed

+31
-2
lines changed

3 files changed

+31
-2
lines changed

DisCatSharp/Entities/Guild/DiscordGuildProfile.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,5 +150,5 @@ public string? BadgeUrl
150150
/// <para><c>3</c> seems to be for when you enabled <c>Apply From Profile</c> when having apply to join enabled.</para>
151151
/// </summary>
152152
[JsonProperty("visibility", NullValueHandling = NullValueHandling.Ignore)]
153-
public int Visibility { get; internal set; }
153+
public GuildProfileVisibility Visibility { get; internal set; }
154154
}

DisCatSharp/Enums/Guild/AuditLogActionType.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,5 +325,7 @@ public enum AuditLogActionType
325325

326326
GuildScheduledEventExceptionDelete = 202,
327327

328-
GuildMemberVerificationUpdate = 210
328+
GuildMemberVerificationUpdate = 210,
329+
330+
GuildProfileUpdate = 211
329331
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
namespace DisCatSharp.Enums;
2+
3+
/// <summary>
4+
/// Represents the visibility of a guild profile.
5+
/// </summary>
6+
public enum GuildProfileVisibility : int
7+
{
8+
/// <summary>
9+
/// Not specified visibility.
10+
/// </summary>
11+
NotSpecified = 0,
12+
13+
/// <summary>
14+
/// Public visibility.
15+
/// </summary>
16+
Public = 1,
17+
18+
/// <summary>
19+
/// Restricted visibility.
20+
/// </summary>
21+
Restricted = 2,
22+
23+
/// <summary>
24+
/// Public with recruitment enabled.
25+
/// </summary>
26+
PublicWithRecruitment = 3
27+
}

0 commit comments

Comments
 (0)