feature: Remove DM cache and fix references (#1851)

* Remove DM cache and fix references

* Move line back to where it was
This commit is contained in:
Paulo
2021-05-26 17:35:49 -03:00
committed by GitHub
parent 95bae786b8
commit 7a201e9ff1
10 changed files with 68 additions and 73 deletions

View File

@@ -18,11 +18,11 @@ namespace Discord.Net.Examples.Core.Entities.Users
#endregion
#region GetOrCreateDMChannelAsync
#region CreateDMChannelAsync
public async Task MessageUserAsync(IUser user)
{
var channel = await user.GetOrCreateDMChannelAsync();
var channel = await user.CreateDMChannelAsync();
try
{
await channel.SendMessageAsync("Awesome stuff!");