Move some strings into base class

This commit is contained in:
Noi 2022-02-08 14:54:32 -08:00
parent 80348f91ea
commit 5c6e0777f5
3 changed files with 4 additions and 4 deletions

View file

@ -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>

View file

@ -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

View file

@ -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")