mirror of
https://github.com/NoiTheCat/BirthdayBot.git
synced 2024-11-21 13:54:36 +00:00
Move some strings into base class
This commit is contained in:
parent
80348f91ea
commit
5c6e0777f5
3 changed files with 4 additions and 4 deletions
|
@ -17,6 +17,9 @@ internal abstract class BotApplicationCommand {
|
|||
protected const string MemberCacheEmptyError = ":warning: Please try the command again.";
|
||||
public const string AccessDeniedError = ":warning: You are not allowed to run this command.";
|
||||
|
||||
protected const string HelpOptDate = "A date, including the month and day. For example, \"15 January\".";
|
||||
protected const string HelpOptZone = "A 'tzdata'-compliant time zone name. See help for more details.";
|
||||
|
||||
protected static ReadOnlyDictionary<string, string> TzNameMap { get; }
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -9,9 +9,6 @@ internal class RegistrationCommands : BotApplicationCommand {
|
|||
public const string HelpZoneDel = "Removes your time zone information from the bot.";
|
||||
public const string HelpDel = "Removes your birthday information from the bot.";
|
||||
|
||||
public const string HelpOptDate = "A date, including the month and day. For example, \"15 January\".";
|
||||
public const string HelpOptZone = "A 'tzdata'-compliant time zone name. See help for more details.";
|
||||
|
||||
const string MsgNoData = "This bot does not have your birthday information for this server.";
|
||||
#endregion
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ internal class RegistrationOverrideCommands : BotApplicationCommand {
|
|||
.AddOption(new SlashCommandOptionBuilder()
|
||||
.WithName("target")
|
||||
.WithType(ApplicationCommandOptionType.User)
|
||||
.WithDescription("The target user whose birthday to modify.")
|
||||
.WithDescription(HelpOptTarget)
|
||||
.WithRequired(true)
|
||||
).AddOption(new SlashCommandOptionBuilder()
|
||||
.WithName("date")
|
||||
|
|
Loading…
Reference in a new issue