mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-12 00:30:11 +00:00
Fix Build Errors
This commit is contained in:
parent
23cf06df4c
commit
c99784b9dc
19 changed files with 301 additions and 136 deletions
|
|
@ -1,7 +1,7 @@
|
|||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using Discord.WebSocket;
|
||||
using DSharpPlus;
|
||||
|
||||
using PluralKit.Core;
|
||||
|
||||
|
|
@ -81,6 +81,7 @@ namespace PluralKit.Bot
|
|||
|
||||
public CommandTree(DiscordShardedClient client)
|
||||
{
|
||||
|
||||
_client = client;
|
||||
}
|
||||
|
||||
|
|
@ -345,7 +346,7 @@ namespace PluralKit.Bot
|
|||
{
|
||||
// Try to resolve the user ID to find the associated account,
|
||||
// so we can print their username.
|
||||
var user = await _client.Rest.GetUserAsync(id);
|
||||
var user = await ctx.Rest.GetUserAsync(id);
|
||||
|
||||
// Print descriptive errors based on whether we found the user or not.
|
||||
if (user == null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue