Missing DebuggerDisplay attribute or property (#2630)
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace Discord.Commands
|
||||
{
|
||||
[DebuggerDisplay(@"{DebuggerDisplay,nq}")]
|
||||
public class MatchResult : IResult
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -27,6 +27,8 @@ namespace Discord.Rest
|
||||
}
|
||||
public override int SlowModeInterval => throw new NotSupportedException("News channels do not support Slow Mode.");
|
||||
|
||||
private string DebuggerDisplay => $"{Name} ({Id}, News)";
|
||||
|
||||
/// <inheritdoc />
|
||||
public Task<ulong> FollowAnnouncementChannelAsync(ulong channelId, RequestOptions options = null)
|
||||
=> ChannelHelper.FollowAnnouncementChannelAsync(this, channelId, Discord, options);
|
||||
|
||||
@@ -37,6 +37,8 @@ namespace Discord.WebSocket
|
||||
public override int SlowModeInterval
|
||||
=> throw new NotSupportedException("News channels do not support Slow Mode.");
|
||||
|
||||
private string DebuggerDisplay => $"{Name} ({Id}, News)";
|
||||
|
||||
/// <inheritdoc cref="INewsChannel.FollowAnnouncementChannelAsync"/>
|
||||
public Task<ulong> FollowAnnouncementChannelAsync(ITextChannel channel, RequestOptions options = null)
|
||||
=> FollowAnnouncementChannelAsync(channel.Id, options);
|
||||
|
||||
Reference in New Issue
Block a user