mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-08 14:57:54 +00:00
feat: dynamically show primary command prefix
This commit is contained in:
parent
1d50022d6d
commit
edfc6714d6
30 changed files with 202 additions and 197 deletions
|
|
@ -16,7 +16,7 @@ public class System
|
|||
|
||||
public async Task Query(Context ctx, PKSystem system)
|
||||
{
|
||||
if (system == null) throw Errors.NoSystemError;
|
||||
if (system == null) throw Errors.NoSystemError(ctx.DefaultPrefix);
|
||||
|
||||
await ctx.Reply(embed: await _embeds.CreateSystemEmbed(ctx, system, ctx.LookupContextFor(system.Id)));
|
||||
}
|
||||
|
|
@ -37,16 +37,16 @@ public class System
|
|||
$"{Emojis.Success} Your system has been created.")
|
||||
.Field(new Embed.Field("Getting Started",
|
||||
"New to PK? Check out our Getting Started guide on setting up members and proxies: https://pluralkit.me/start\n" +
|
||||
"Otherwise, type `pk;system` to view your system and `pk;system help` for more information about commands you can use."))
|
||||
$"Otherwise, type `{ctx.DefaultPrefix}system` to view your system and `{ctx.DefaultPrefix}system help` for more information about commands you can use."))
|
||||
.Field(new Embed.Field($"{Emojis.Warn} Notice {Emojis.Warn}", "PluralKit is a bot meant to help you share information about your system. " +
|
||||
"Member descriptions are meant to be the equivalent to a Discord About Me. Because of this, any info you put in PK is **public by default**.\n" +
|
||||
"Note that this does **not** include message content, only member fields. For more information, check out " +
|
||||
"[the privacy section of the user guide](https://pluralkit.me/guide/#privacy). "))
|
||||
.Field(new Embed.Field("System Recovery", "In the case of your Discord account getting lost or deleted, the PluralKit staff can help you recover your system. " +
|
||||
"In order to do so, we will need your **PluralKit token**. This is the *only* way you can prove ownership so we can help you recover your system. " +
|
||||
"To get it, run `pk;token` and then store it in a safe place.\n\n" +
|
||||
$"To get it, run `{ctx.DefaultPrefix}token` and then store it in a safe place.\n\n" +
|
||||
"Keep your token safe, if other people get access to it they can also use it to access your system. " +
|
||||
"If your token is ever compromised run `pk;token refresh` to invalidate the old token and get a new one."))
|
||||
$"If your token is ever compromised run `{ctx.DefaultPrefix}token refresh` to invalidate the old token and get a new one."))
|
||||
.Field(new Embed.Field("Questions?",
|
||||
"Please join the PK server https://discord.gg/PczBt78 if you have any questions, we're happy to help"));
|
||||
await ctx.Reply($"{Emojis.Warn} If you cannot see the rest of this message see [the FAQ](<https://pluralkit.me/faq/#why-do-most-of-pluralkit-s-messages-look-blank-or-empty>)", eb.Build());
|
||||
|
|
@ -56,7 +56,7 @@ public class System
|
|||
public async Task DisplayId(Context ctx, PKSystem target)
|
||||
{
|
||||
if (target == null)
|
||||
throw Errors.NoSystemError;
|
||||
throw Errors.NoSystemError(ctx.DefaultPrefix);
|
||||
|
||||
await ctx.Reply(target.DisplayHid(ctx.Config));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue