Files
PL_JusticeBot/Justice/Modals/CitiesModal.cs
Дмитрий Шиманский ff8136407c change max lenght in modals
2023-11-17 00:23:31 +03:00

28 lines
1.0 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using Discord;
using Discord.Interactions;
namespace DiscordApp.Justice.Modals
{
public class ICitiesModal : IModal
{
public string Title => "Регистрация базы";
[InputLabel("Название на карте")]
[ModalTextInput("Name", TextInputStyle.Short, placeholder: "Сигмасити", maxLength: 100)]
public string Name { get; set; }
[InputLabel("Описание на карте")]
[ModalTextInput("BaseDescription", TextInputStyle.Paragraph, placeholder: "Меня зовут Кира Йошикаге...")]
public string description { get; set; }
[InputLabel("Х координата")]
[ModalTextInput("xCoordinate", TextInputStyle.Short, placeholder: "70", maxLength: 10)]
public int xCoordinate { get; set; }
[InputLabel("Y координата")]
[ModalTextInput("yCoordinate", TextInputStyle.Short, placeholder: "90", maxLength: 10)]
public int yCoordinate { get; set; }
}
}