-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
76abc44
commit c1e567b
Showing
34 changed files
with
298 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,13 @@ | ||
using Voltaic.Serialization; | ||
using System; | ||
using System; | ||
using Voltaic; | ||
using Voltaic.Serialization; | ||
|
||
namespace Wumpus.Entities | ||
{ | ||
/// <summary> https://discordapp.com/developers/docs/resources/guild#guild-embed-object </summary> | ||
public class GuildMember | ||
public class GuildMember : Member | ||
{ | ||
/// <summary> <see cref="User"/> object. </summary> | ||
[ModelProperty("user")] | ||
public User User { get; set; } | ||
/// <summary> This user's <see cref="Guild"/> nickname. </summary> | ||
[ModelProperty("nick")] | ||
public Optional<Utf8String> Nickname { get; set; } | ||
/// <summary> Array of <see cref="Role"/> ids. </summary> | ||
[ModelProperty("roles")] | ||
public Optional<Snowflake[]> Roles { get; set; } | ||
/// <summary> When the <see cref="GuildMember"/> joined the <see cref="Guild"/>. </summary> | ||
[ModelProperty("joined_at"), StandardFormat('O')] | ||
public Optional<DateTimeOffset> JoinedAt { get; set; } | ||
/// <summary> If the <see cref="GuildMember"/> is deafened. </summary> | ||
[ModelProperty("deaf")] | ||
public Optional<bool> Deaf { get; set; } | ||
/// <summary> If the <see cref="GuildMember"/> is muted. </summary> | ||
[ModelProperty("mute")] | ||
public Optional<bool> Mute { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.