-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConnectModal.cs
More file actions
23 lines (18 loc) · 902 Bytes
/
Copy pathConnectModal.cs
File metadata and controls
23 lines (18 loc) · 902 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using Discord;
using Discord.Interactions;
namespace RustPlusBot.Features.Pairing.Modules;
/// <summary>The ephemeral modal that collects a user's FCM credentials JSON.</summary>
public sealed class ConnectModal : IModal
{
/// <summary>Custom id of the modal, handled by <see cref="CredentialModule"/>.</summary>
public const string ModalId = "pairing:connect:modal";
/// <summary>Custom id of the credentials text input.</summary>
public const string CredentialsInputId = "pairing:connect:credentials";
/// <summary>The pasted FCM credentials JSON.</summary>
[InputLabel("FCM credentials JSON")]
[ModalTextInput(CredentialsInputId, TextInputStyle.Paragraph,
placeholder: "Paste the JSON from the credentials helper")]
public string Credentials { get; set; } = string.Empty;
/// <inheritdoc />
public string Title => "Connect your Rust+ account";
}