|
|
|
@@ -122,11 +122,7 @@ namespace Discord.WebSocket |
|
|
|
} |
|
|
|
|
|
|
|
public Task ModifyAsync(Action<MessageProperties> func, RequestOptions options = null) |
|
|
|
{ |
|
|
|
if (Author.Id != Discord.CurrentUser.Id) |
|
|
|
throw new InvalidOperationException("Discord allows only the author of a message to change it."); |
|
|
|
return MessageHelper.ModifyAsync(this, Discord, func, options); |
|
|
|
} |
|
|
|
=> MessageHelper.ModifyAsync(this, Discord, func, options); |
|
|
|
|
|
|
|
public Task AddReactionAsync(IEmote emote, RequestOptions options = null) |
|
|
|
=> MessageHelper.AddReactionAsync(this, emote, Discord, options); |
|
|
|
|