diff --git a/src/ARKServerManager/Globalization/en-US/en-US.xaml b/src/ARKServerManager/Globalization/en-US/en-US.xaml index 9c35aa98..97418250 100644 --- a/src/ARKServerManager/Globalization/en-US/en-US.xaml +++ b/src/ARKServerManager/Globalization/en-US/en-US.xaml @@ -1214,6 +1214,8 @@ Discord Bot Details Channel Id: The id of the discord server channel this profile will listen to. + Alias: + A unique name to identify your server when using the discord commands, can be used instead of the profile id. Allow Backup If enabled, the profile will listen for backup commands from discord. Allow Restart @@ -5604,8 +5606,9 @@ Another command '{0}' is currently running against profile '{1}'. Command '{0}' has been disabled for profile '{1}'. - The '{0}' command requires a profile id. + The '{0}' command requires a profile id or alias. Profile '{0}' was not found or is not associated with the channel. + Multiple profiles with '{0}' were found in the channel, command aborted. Profile '{0}' is in a state '{1}' that cannot run this command. Profile '{0}' is currently being updated. diff --git a/src/ARKServerManager/Lib/ServerProfile.cs b/src/ARKServerManager/Lib/ServerProfile.cs index 62a4f416..09dc1038 100644 --- a/src/ARKServerManager/Lib/ServerProfile.cs +++ b/src/ARKServerManager/Lib/ServerProfile.cs @@ -968,6 +968,14 @@ namespace ServerManagerTool.Lib set { SetValue(DiscordChannelIdProperty, value); } } + public static readonly DependencyProperty DiscordAliasProperty = DependencyProperty.Register(nameof(DiscordAlias), typeof(string), typeof(ServerProfile), new PropertyMetadata(String.Empty)); + [DataMember] + public string DiscordAlias + { + get { return (string)GetValue(DiscordAliasProperty); } + set { SetValue(DiscordAliasProperty, value); } + } + public static readonly DependencyProperty AllowDiscordBackupProperty = DependencyProperty.Register(nameof(AllowDiscordBackup), typeof(bool), typeof(ServerProfile), new PropertyMetadata(true)); [DataMember] public bool AllowDiscordBackup diff --git a/src/ARKServerManager/UserControls/ServerSettingsControl.xaml b/src/ARKServerManager/UserControls/ServerSettingsControl.xaml index f499a088..c55acc17 100644 --- a/src/ARKServerManager/UserControls/ServerSettingsControl.xaml +++ b/src/ARKServerManager/UserControls/ServerSettingsControl.xaml @@ -1618,6 +1618,9 @@