Cleaned up new params
This commit is contained in:
@@ -2,7 +2,13 @@
|
||||
{
|
||||
public class ModifyGuildChannelsParams
|
||||
{
|
||||
/// <summary>
|
||||
/// The id of the channel to apply this position to.
|
||||
/// </summary>
|
||||
public ulong Id { get; set; }
|
||||
/// <summary>
|
||||
/// The new zero-based position of this channel.
|
||||
/// </summary>
|
||||
public int Position { get; set; }
|
||||
|
||||
public ModifyGuildChannelsParams(ulong id, int position)
|
||||
|
||||
@@ -12,6 +12,10 @@
|
||||
/// <summary>
|
||||
/// What channel should the invite place users in, if not null.
|
||||
/// </summary>
|
||||
public Optional<IChannel> Channel { get; set; }
|
||||
/// <summary>
|
||||
/// What channel should the invite place users in, if not null.
|
||||
/// </summary>
|
||||
public Optional<ulong?> ChannelId { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,6 +21,10 @@
|
||||
/// </summary>
|
||||
public Optional<string> Name { get; set; }
|
||||
/// <summary>
|
||||
/// The region for the Guild's voice connections
|
||||
/// </summary>
|
||||
public Optional<IVoiceRegion> Region { get; set; }
|
||||
/// <summary>
|
||||
/// The ID of the region for the Guild's voice connections
|
||||
/// </summary>
|
||||
public Optional<string> RegionId { get; set; }
|
||||
@@ -48,10 +52,18 @@
|
||||
/// </remarks>
|
||||
public Optional<Image?> Splash { get; set; }
|
||||
/// <summary>
|
||||
/// The IVoiceChannel where AFK users should be sent.
|
||||
/// </summary>
|
||||
public Optional<IVoiceChannel> AfkChannel { get; set; }
|
||||
/// <summary>
|
||||
/// The ID of the IVoiceChannel where AFK users should be sent.
|
||||
/// </summary>
|
||||
public Optional<ulong?> AfkChannelId { get; set; }
|
||||
/// <summary>
|
||||
/// The owner of this guild.
|
||||
/// </summary>
|
||||
public Optional<IUser> Owner { get; set; }
|
||||
/// <summary>
|
||||
/// The ID of the owner of this guild.
|
||||
/// </summary>
|
||||
public Optional<ulong> OwnerId { get; set; }
|
||||
|
||||
@@ -17,6 +17,7 @@ namespace Discord
|
||||
{
|
||||
Stream = stream;
|
||||
}
|
||||
#if NETSTANDARD1_3
|
||||
/// <summary>
|
||||
/// Create the image from a file path.
|
||||
/// </summary>
|
||||
@@ -28,5 +29,6 @@ namespace Discord
|
||||
{
|
||||
Stream = File.OpenRead(path);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
{
|
||||
public class ModifyGuildRolesParams : ModifyGuildRoleParams
|
||||
{
|
||||
/// <summary>
|
||||
/// The id of the role to be edited
|
||||
/// </summary>
|
||||
public ulong Id { get; }
|
||||
|
||||
public ModifyGuildRolesParams(ulong id)
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
namespace Discord
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Discord
|
||||
{
|
||||
/// <summary>
|
||||
/// Modify an IGuildUser with the following parameters.
|
||||
@@ -42,7 +44,15 @@
|
||||
/// To add a role to a user: <see cref="GuildUserExtensions.AddRolesAsync(IGuildUser, IRole[])"/>
|
||||
/// To remove a role from a user: <see cref="GuildUserExtensions.RemoveRolesAsync(IGuildUser, IRole[])"/>
|
||||
/// </remarks>
|
||||
public Optional<IRole[]> Roles { get; set; }
|
||||
public Optional<IEnumerable<IRole>> Roles { get; set; }
|
||||
/// <summary>
|
||||
/// What roles should the user have?
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// To add a role to a user: <see cref="GuildUserExtensions.AddRolesAsync(IGuildUser, IRole[])"/>
|
||||
/// To remove a role from a user: <see cref="GuildUserExtensions.RemoveRolesAsync(IGuildUser, IRole[])"/>
|
||||
/// </remarks>
|
||||
public Optional<IEnumerable<ulong>> RoleIds { get; set; }
|
||||
/// <summary>
|
||||
/// Move a user to a voice channel.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user