Updated UI elements to use the custom ones

This commit is contained in:
2025-05-27 12:39:36 +03:00
parent fcd3a59d54
commit 11b9515bab
2 changed files with 9 additions and 10 deletions

View File

@@ -102,9 +102,11 @@ public class MakePoll : IDbSlashCommand
var state = new PollState(q, opts);
Polls[msg.Id] = state;
if (timed)
{
_ = ClosePollLaterAsync(log, msg, state, hours);
}
}
public async Task ExecuteInteraction(ILogger log, SocketInteraction interaction)

View File

@@ -15,21 +15,18 @@
<ValidationSummary class="text-danger" />
<div class="mb-3">
<label class="form-label" for="tokenInput">Token</label>
<InputText id="tokenInput" class="form-control" placeholder="Enter bot token"
@bind-Value="_settingsViewModel.Token" />
<ModernLabel Text="Token"/>
<RoundedTextBox @bind-Value="_settingsViewModel.Token" Placeholder="Your bot token"/>
</div>
<div class="mb-3">
<label class="form-label" for="prefixInput">Prefix</label>
<InputText id="prefixInput" class="form-control" placeholder="!"
@bind-Value="_settingsViewModel.Prefix" />
<ModernLabel Text="Prefix"/>
<RoundedTextBox @bind-Value="_settingsViewModel.Prefix" Placeholder="Your bot prefix"/>
</div>
<div class="mb-4">
<label class="form-label" for="serverIdsInput">Server IDs (comma-separated)</label>
<InputTextArea id="serverIdsInput" class="form-control" placeholder="12345, 67890" Rows="3"
@bind-Value="_settingsViewModel.ServerIds" />
<ModernLabel Text="Server IDs (command-separated)"/>
<RoundedTextBox @bind-Value="_settingsViewModel.ServerIds" Placeholder="1234,5678" />
</div>
<button type="submit" class="btn btn-primary w-100">