forked from discord-net/Discord.Net
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Still Hsu
committed
May 26, 2018
1 parent
596b47e
commit 5d1621a
Showing
3 changed files
with
30 additions
and
17 deletions.
There are no files selected for viewing
28 changes: 17 additions & 11 deletions
28
src/Discord.Net.Core/Entities/AuditLogs/IAuditLogEntry.cs
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,34 +1,40 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Discord | ||
{ | ||
/// <summary> | ||
/// Represents an entry in an audit log | ||
/// Represents an entry in an audit log. | ||
/// </summary> | ||
public interface IAuditLogEntry : IEntity<ulong> | ||
{ | ||
/// <summary> | ||
/// The action which occured to create this entry | ||
/// Gets the action which occurred to create this entry. | ||
/// </summary> | ||
/// <returns> | ||
/// The type of action for this audit log entry. | ||
/// </returns> | ||
ActionType Action { get; } | ||
|
||
/// <summary> | ||
/// The data for this entry. May be <see cref="null"/> if no data was available. | ||
/// Gets the data for this entry. | ||
/// </summary> | ||
/// <returns> | ||
/// An <see cref="IAuditLogData" /> for this audit log entry; <c>null</c> if no data is available. | ||
/// </returns> | ||
IAuditLogData Data { get; } | ||
|
||
/// <summary> | ||
/// The user responsible for causing the changes | ||
/// Gets the user responsible for causing the changes. | ||
/// </summary> | ||
/// <returns> | ||
/// A user object. | ||
/// </returns> | ||
IUser User { get; } | ||
|
||
/// <summary> | ||
/// The reason behind the change. May be <see cref="null"/> if no reason was provided. | ||
/// Gets the reason behind the change. | ||
/// </summary> | ||
/// <returns> | ||
/// A string containing the reason for the change; <c>null</c> if none is provided. | ||
/// </returns> | ||
string Reason { get; } | ||
} | ||
} |
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