You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.4 KiB
35 lines
1.4 KiB
namespace Discord
|
|
{
|
|
/// <summary>
|
|
/// Properties that are used to modify an <see cref="IGuildChannel" /> with the specified changes.
|
|
/// </summary>
|
|
/// <seealso cref="IGuildChannel.ModifyAsync"/>
|
|
public class GuildChannelProperties
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets the channel to this name.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// This property defines the new name for this channel.
|
|
/// <note type="warning">
|
|
/// When modifying an <see cref="ITextChannel"/>, the <see cref="Name"/> must be alphanumeric with
|
|
/// dashes. It must match the RegEx <c>[a-z0-9-_]{2,100}</c>.
|
|
/// </note>
|
|
/// </remarks>
|
|
public Optional<string> Name { get; set; }
|
|
/// <summary>
|
|
/// Moves the channel to the following position. This property is zero-based.
|
|
/// </summary>
|
|
public Optional<int> Position { get; set; }
|
|
/// <summary>
|
|
/// Gets or sets the category ID for this channel.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Setting this value to a category's snowflake identifier will change or set this channel's parent to the
|
|
/// specified channel; setting this value to <c>0</c> will detach this channel from its parent if one
|
|
/// is set.
|
|
/// </remarks>
|
|
public Optional<ulong?> CategoryId { get; set; }
|
|
}
|
|
}
|