Fixed Pinning on Modify

This commit is contained in:
Khionu Terabite
2016-07-07 23:09:05 -04:00
committed by GitHub
parent 2eca74bac7
commit 5488294e0f

View File

@@ -157,9 +157,7 @@ namespace Discord
model = await Discord.ApiClient.ModifyMessageAsync(guildChannel.Guild.Id, Channel.Id, Id, args).ConfigureAwait(false);
else
model = await Discord.ApiClient.ModifyDMMessageAsync(Channel.Id, Id, args).ConfigureAwait(false);
{
await Discord.ApiClient.AddPinAsync(Channel.Id, Id).ConfigureAwait(false);
}
Update(model, UpdateSource.Rest);
}
public async Task DeleteAsync()