diff --git a/src/Discord.Net/DiscordClient.API.cs b/src/Discord.Net/DiscordClient.API.cs index cd8590f66..5357c4fd6 100644 --- a/src/Discord.Net/DiscordClient.API.cs +++ b/src/Discord.Net/DiscordClient.API.cs @@ -267,10 +267,10 @@ namespace Discord } /// Sends a private message to the provided channel. public async Task SendPrivateMessage(User user, string text) - => await SendMessage(await GetOrCreatePMChannel(user), text, new string[0]); + => await SendMessage(await GetPMChannel(user), text, new string[0]); /// Sends a private message to the provided channel. public async Task SendPrivateMessage(string userId, string text) - => await SendMessage(await GetOrCreatePMChannel(userId), text, new string[0]); + => await SendMessage(await GetPMChannel(userId), text, new string[0]); /*/// Sends a private message to the provided user, mentioning certain users. /// While not required, it is recommended to include a mention reference in the text (see User.Mention). public async Task SendPrivateMessage(User user, string text, string[] mentions) diff --git a/src/Discord.Net/DiscordClient.Cache.cs b/src/Discord.Net/DiscordClient.Cache.cs index 1e7d88fde..59b73ae02 100644 --- a/src/Discord.Net/DiscordClient.Cache.cs +++ b/src/Discord.Net/DiscordClient.Cache.cs @@ -385,10 +385,10 @@ namespace Discord /// Returns the channel with the specified id, or null if none was found. public Channel GetChannel(string id) => _channels[id]; /// Returns the private channel with the provided user, creating one if it does not currently exist. - public Task GetOrCreatePMChannel(string userId) - => GetOrCreatePMChannel(_users[userId]); + public Task GetPMChannel(string userId) + => GetPMChannel(_users[userId]); /// Returns the private channel with the provided user, creating one if it does not currently exist. - public async Task GetOrCreatePMChannel(User user) + public async Task GetPMChannel(User user) { CheckReady(); if (user == null) throw new ArgumentNullException(nameof(user));