description is only allowed to be 100 characters
This commit is contained in:
parent
9b8e85e871
commit
bc2983584c
1 changed files with 2 additions and 1 deletions
|
@ -19,7 +19,8 @@ namespace DiscordBot.Messages
|
|||
{
|
||||
if(!string.IsNullOrEmpty(role.Description))
|
||||
{
|
||||
signUpSelect.AddOption(role.Name, role.roleId.ToString(), role.Description);
|
||||
string description = role.Description.Length <= 100 ? role.Description : role.Description.Substring(0, 100);
|
||||
signUpSelect.AddOption(role.Name, role.roleId.ToString(), description);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue