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); var state = new PollState(q, opts);
Polls[msg.Id] = state; Polls[msg.Id] = state;
if (timed) if (timed)
{
_ = ClosePollLaterAsync(log, msg, state, hours); _ = ClosePollLaterAsync(log, msg, state, hours);
}
} }
public async Task ExecuteInteraction(ILogger log, SocketInteraction interaction) public async Task ExecuteInteraction(ILogger log, SocketInteraction interaction)

View File

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