mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-13 01:00:12 +00:00
Disable Discord member caching entirely
This commit is contained in:
parent
82dfe43d5a
commit
6863da9462
5 changed files with 18 additions and 19 deletions
|
|
@ -1,7 +1,7 @@
|
|||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using Discord;
|
||||
using Discord.WebSocket;
|
||||
|
||||
using PluralKit.Bot.CommandSystem;
|
||||
|
||||
|
|
@ -73,9 +73,9 @@ namespace PluralKit.Bot.Commands
|
|||
|
||||
public static Command[] LogCommands = {LogChannel, LogEnable, LogDisable};
|
||||
|
||||
private IDiscordClient _client;
|
||||
private DiscordShardedClient _client;
|
||||
|
||||
public CommandTree(IDiscordClient client)
|
||||
public CommandTree(DiscordShardedClient client)
|
||||
{
|
||||
_client = client;
|
||||
}
|
||||
|
|
@ -335,7 +335,7 @@ namespace PluralKit.Bot.Commands
|
|||
{
|
||||
// Try to resolve the user ID to find the associated account,
|
||||
// so we can print their username.
|
||||
var user = await _client.GetUserAsync(id);
|
||||
var user = await _client.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