Fixed errors caused by #321
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
using System;
|
||||
using Discord.Rest;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Model = Discord.API.Rpc.Message;
|
||||
|
||||
namespace Discord.Rpc
|
||||
@@ -56,6 +58,9 @@ namespace Discord.Rpc
|
||||
AuthorColor = new Color(Convert.ToUInt32(model.AuthorColor.Value.Substring(1), 16));
|
||||
}
|
||||
|
||||
public Task DeleteAsync(RequestOptions options)
|
||||
=> MessageHelper.DeleteAsync(this, Discord, options);
|
||||
|
||||
public override string ToString() => Content;
|
||||
|
||||
MessageType IMessage.Type => MessageType.Default;
|
||||
|
||||
@@ -100,8 +100,6 @@ namespace Discord.Rpc
|
||||
|
||||
public Task ModifyAsync(Action<ModifyMessageParams> func, RequestOptions options)
|
||||
=> MessageHelper.ModifyAsync(this, Discord, func, options);
|
||||
public Task DeleteAsync(RequestOptions options)
|
||||
=> MessageHelper.DeleteAsync(this, Discord, options);
|
||||
|
||||
public Task PinAsync(RequestOptions options)
|
||||
=> MessageHelper.PinAsync(this, Discord, options);
|
||||
|
||||
Reference in New Issue
Block a user