Updated UI elements to use the custom ones
This commit is contained in:
@@ -104,8 +104,10 @@ public class MakePoll : IDbSlashCommand
|
|||||||
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)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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">
|
||||||
|
|||||||
Reference in New Issue
Block a user