henry232323 / RPGBot

A Discord Bot with lots of RPG utilities
GNU General Public License v3.0
109 stars 72 forks source link

Insert length gates in create() and edit() #32

Closed ace-zhang18 closed 5 years ago

ace-zhang18 commented 5 years ago

Inserted checks to make sure the combined length of an attribute title and it's value did not exceed 1024. If so, print warning and return.

henry232323 commented 5 years ago

Does this account for the description?

ace-zhang18 commented 5 years ago

create already had a length gate. The additions only dealt with attribute. Edit encompassed the description with the overarching gate of 1024. I have created a preceding condition allowing descriptions with 3500 characters.