Use autocomplete in server tz config

This commit is contained in:
Noi 2024-07-06 22:02:39 -07:00
parent 1d1f8e2e43
commit 30ac9886d5

View file

@ -193,7 +193,7 @@ public class ConfigModule : BotModuleBase {
} }
[SlashCommand("set-timezone", "Configure the time zone to use by default in the server." + HelpPofxBlankUnset)] [SlashCommand("set-timezone", "Configure the time zone to use by default in the server." + HelpPofxBlankUnset)]
public async Task CmdSetTimezone([Summary(description: HelpOptZone)] string? zone = null) { public async Task CmdSetTimezone([Summary(description: HelpOptZone), Autocomplete<TzAutocompleteHandler>] string? zone = null) {
const string Response = ":white_check_mark: The server's time zone has been "; const string Response = ":white_check_mark: The server's time zone has been ";
if (zone == null) { if (zone == null) {