mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-14 09:40:10 +00:00
fix(bot): check if user has a system registered in proxy checks
This commit is contained in:
parent
bf3b76f9a8
commit
843275a3ac
1 changed files with 6 additions and 0 deletions
|
|
@ -240,6 +240,12 @@ public class Checks
|
||||||
var context = await ctx.Repository.GetMessageContext(msg.Author.Id, channel.GuildId.Value, rootChannel.Id, msg.ChannelId);
|
var context = await ctx.Repository.GetMessageContext(msg.Author.Id, channel.GuildId.Value, rootChannel.Id, msg.ChannelId);
|
||||||
var members = (await ctx.Repository.GetProxyMembers(msg.Author.Id, channel.GuildId.Value)).ToList();
|
var members = (await ctx.Repository.GetProxyMembers(msg.Author.Id, channel.GuildId.Value)).ToList();
|
||||||
|
|
||||||
|
if (await ctx.Repository.GetSystemByAccount(msg.Author.Id) == null)
|
||||||
|
{
|
||||||
|
await ctx.Reply("Your account does not have a system registered.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// for now this is just server
|
// for now this is just server
|
||||||
var autoproxySettings = await ctx.Repository.GetAutoproxySettings(ctx.System.Id, channel.GuildId.Value, null);
|
var autoproxySettings = await ctx.Repository.GetAutoproxySettings(ctx.System.Id, channel.GuildId.Value, null);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue