Browse Source

Moved ban/unban from Server to User in ref

tags/docs-0.9
RogueException 9 years ago
parent
commit
0a07442b6e
2 changed files with 5 additions and 5 deletions
  1. +0
    -4
      ref/Entities/Server.cs
  2. +5
    -1
      ref/Entities/User.cs

+ 0
- 4
ref/Entities/Server.cs View File

@@ -57,10 +57,6 @@ namespace Discord
public Task<VoiceChannel> CreateVoiceChannel(string name) => null;
public Task<Invite> CreateInvite(int? maxAge = 1800, int? maxUses = null, bool tempMembership = false, bool withXkcd = false) => null;
public Task<Role> CreateRole(string name, ServerPermissions? permissions = null, Color color = null, bool isHoisted = false) => null;

public Task Ban(User user, int pruneDays = 0) => null;
public Task Unban(User user) => null;
public Task Unban(ulong userId) => null;
public Task<int> PruneUsers(int days = 30, bool simulate = false) => null;



+ 5
- 1
ref/Entities/User.cs View File

@@ -11,7 +11,8 @@ namespace Discord
public DiscordClient Discord { get; }
public EntityState State { get; }

public Server Server { get; }
public Server Server { get; }

public string Name { get; }
public ushort Discriminator { get; }
public string AvatarId { get; }
@@ -47,5 +48,8 @@ namespace Discord

public Task Update() => null;
public Task Kick() => null;
public Task Ban(User user, int pruneDays = 0) => null;
public Task Unban(User user) => null;
public Task Unban(ulong userId) => null;
}
}

Loading…
Cancel
Save