Fixed errors caused by #321
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
using System;
|
||||
using Discord.Rest;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Model = Discord.API.Message;
|
||||
|
||||
namespace Discord.WebSocket
|
||||
@@ -52,6 +54,9 @@ namespace Discord.WebSocket
|
||||
Content = model.Content.Value;
|
||||
}
|
||||
|
||||
public Task DeleteAsync(RequestOptions options)
|
||||
=> MessageHelper.DeleteAsync(this, Discord, options);
|
||||
|
||||
public override string ToString() => Content;
|
||||
internal SocketMessage Clone() => MemberwiseClone() as SocketMessage;
|
||||
|
||||
|
||||
@@ -112,8 +112,6 @@ namespace Discord.WebSocket
|
||||
|
||||
public Task ModifyAsync(Action<ModifyMessageParams> func, RequestOptions options = null)
|
||||
=> MessageHelper.ModifyAsync(this, Discord, func, options);
|
||||
public Task DeleteAsync(RequestOptions options = null)
|
||||
=> MessageHelper.DeleteAsync(this, Discord, options);
|
||||
|
||||
public Task PinAsync(RequestOptions options = null)
|
||||
=> MessageHelper.PinAsync(this, Discord, options);
|
||||
|
||||
Reference in New Issue
Block a user