Browse Source

Fixes to ref channel

pull/40/head
RogueException 9 years ago
parent
commit
6b3c1410e9
5 changed files with 14 additions and 9 deletions
  1. +2
    -2
      ref/Entities/Channels/IPublicChannel.cs
  2. +1
    -1
      ref/Entities/Channels/PrivateChannel.cs
  3. +7
    -4
      ref/Entities/Channels/TextChannel.cs
  4. +3
    -1
      ref/Entities/Channels/VoiceChannel.cs
  5. +1
    -1
      ref/Entities/IEntity.cs

+ 2
- 2
ref/Entities/Channels/IPublicChannel.cs View File

@@ -15,9 +15,9 @@ namespace Discord
int Position { get; } int Position { get; }


/// <summary> Gets the permission overwrite for a specific user, or null if one does not exist. </summary> /// <summary> Gets the permission overwrite for a specific user, or null if one does not exist. </summary>
Task<PermissionOverwrite?> GetPermissionOverwrite(User user);
PermissionOverwrite? GetPermissionOverwrite(User user);
/// <summary> Gets the permission overwrite for a specific role, or null if one does not exist. </summary> /// <summary> Gets the permission overwrite for a specific role, or null if one does not exist. </summary>
Task<PermissionOverwrite?> GetPermissionOverwrite(Role role);
PermissionOverwrite? GetPermissionOverwrite(Role role);
/// <summary> Downloads a collection of all invites to this server. </summary> /// <summary> Downloads a collection of all invites to this server. </summary>
Task<IEnumerable<Invite>> GetInvites(); Task<IEnumerable<Invite>> GetInvites();


+ 1
- 1
ref/Entities/Channels/PrivateChannel.cs View File

@@ -9,7 +9,7 @@ namespace Discord
/// <inheritdoc /> /// <inheritdoc />
public ulong Id { get; } public ulong Id { get; }
/// <inheritdoc /> /// <inheritdoc />
public DiscordClient Client { get; }
public DiscordClient Discord { get; }
/// <inheritdoc /> /// <inheritdoc />
public ModelState State { get; } public ModelState State { get; }
/// <inheritdoc /> /// <inheritdoc />


+ 7
- 4
ref/Entities/Channels/TextChannel.cs View File

@@ -9,6 +9,9 @@ namespace Discord
{ {
public sealed class Properties public sealed class Properties
{ {
public string Name { get; }
public string Topic { get; }
public int Position { get; }
} }


/// <inheritdoc /> /// <inheritdoc />
@@ -44,6 +47,10 @@ namespace Discord
public IEnumerable<User> Users { get; } public IEnumerable<User> Users { get; }


/// <inheritdoc /> /// <inheritdoc />
public PermissionOverwrite? GetPermissionOverwrite(User user) => null;
/// <inheritdoc />
public PermissionOverwrite? GetPermissionOverwrite(Role role) => null;
/// <inheritdoc />
public Task<IEnumerable<User>> GetUsers() => null; public Task<IEnumerable<User>> GetUsers() => null;
/// <inheritdoc /> /// <inheritdoc />
public Task<Message> GetMessage(ulong id) => null; public Task<Message> GetMessage(ulong id) => null;
@@ -52,10 +59,6 @@ namespace Discord
/// <inheritdoc /> /// <inheritdoc />
public Task<IEnumerable<Message>> GetMessages(int limit = 100, ulong? relativeMessageId = null, Relative relativeDir = Relative.Before) => null; public Task<IEnumerable<Message>> GetMessages(int limit = 100, ulong? relativeMessageId = null, Relative relativeDir = Relative.Before) => null;
/// <inheritdoc /> /// <inheritdoc />
public Task<PermissionOverwrite?> GetPermissionOverwrite(User user) => null;
/// <inheritdoc />
public Task<PermissionOverwrite?> GetPermissionOverwrite(Role role) => null;
/// <inheritdoc />
public Task<IEnumerable<Invite>> GetInvites() => null; public Task<IEnumerable<Invite>> GetInvites() => null;


/// <inheritdoc /> /// <inheritdoc />


+ 3
- 1
ref/Entities/Channels/VoiceChannel.cs View File

@@ -8,13 +8,15 @@ namespace Discord
{ {
public sealed class Properties public sealed class Properties
{ {
public string Name { get; }
public int Bitrate { get; set; } public int Bitrate { get; set; }
public int Position { get; }
} }


/// <inheritdoc /> /// <inheritdoc />
public ulong Id { get; } public ulong Id { get; }
/// <inheritdoc /> /// <inheritdoc />
public DiscordClient Client { get; }
public DiscordClient Discord { get; }
/// <inheritdoc /> /// <inheritdoc />
public ModelState State { get; } public ModelState State { get; }
/// <inheritdoc /> /// <inheritdoc />


+ 1
- 1
ref/Entities/IEntity.cs View File

@@ -11,7 +11,7 @@ namespace Discord
public interface IEntity public interface IEntity
{ {
/// <summary> Gets the DiscordClient that manages this object. </summary> /// <summary> Gets the DiscordClient that manages this object. </summary>
DiscordClient Client { get; }
DiscordClient Discord { get; }
/// <summary> Gets the state of this object. </summary> /// <summary> Gets the state of this object. </summary>
ModelState State { get; } ModelState State { get; }




Loading…
Cancel
Save