/// <remarks>
/// エラーレポートを DM で受け付ける場合は、フォロー外からの DM を受け付ける設定にする必要があります
/// </remarks>
- public const bool AllowSendErrorReportByDM = true;
+ public static readonly bool AllowSendErrorReportByDM = true;
//=====================================================================
// Web サイト
private bool CheckDmAvailable()
{
-#pragma warning disable CS0162
if (!ApplicationSettings.AllowSendErrorReportByDM)
return false;
-#pragma warning restore CS0162
if (this.tw == null || !this.tw.AccessLevel.HasFlag(TwitterApiAccessLevel.DirectMessage))
return false;