|
88 | 88 | "SelectDefaultValueType", |
89 | 89 | "ApplicationEventWebhookStatus", |
90 | 90 | "InviteTargetUsersJobStatusCode", |
91 | | - "ComponentLimits", |
92 | | - "EmbedLimits", |
93 | 91 | ) |
94 | 92 |
|
95 | 93 |
|
@@ -1210,107 +1208,6 @@ class InviteTargetUsersJobStatusCode(Enum): |
1210 | 1208 | failed = 3 |
1211 | 1209 |
|
1212 | 1210 |
|
1213 | | -class ComponentLimits(Enum): |
1214 | | - # View constraints |
1215 | | - view_children_max = 40 |
1216 | | - |
1217 | | - # ActionRow constraints |
1218 | | - action_row_children_max = 5 |
1219 | | - |
1220 | | - # Button constraints |
1221 | | - button_label_max = 80 |
1222 | | - |
1223 | | - # Container constraints |
1224 | | - container_children_max = -1 # No limit |
1225 | | - |
1226 | | - # MediaGallery constraints |
1227 | | - media_gallery_items_min = 1 |
1228 | | - media_gallery_items_max = 10 |
1229 | | - |
1230 | | - # MediaGalleryItem constraints |
1231 | | - media_gallery_item_description_max = 256 |
1232 | | - |
1233 | | - # Select constraints |
1234 | | - select_placeholder_max = 150 |
1235 | | - select_min_value_min = 0 |
1236 | | - select_min_value_max = 25 |
1237 | | - select_max_value_min = 1 |
1238 | | - select_max_value_max = 25 |
1239 | | - select_options_max = 25 |
1240 | | - select_default_values_max = 25 |
1241 | | - |
1242 | | - # Select option constraints |
1243 | | - select_option_label_max = 100 |
1244 | | - select_option_value_max = 100 |
1245 | | - select_option_description_max = 100 |
1246 | | - |
1247 | | - # Section constraints |
1248 | | - section_accessory_max = 1 |
1249 | | - section_children_min = 1 |
1250 | | - section_children_max = 3 |
1251 | | - |
1252 | | - # TextInput constraints |
1253 | | - text_input_max_count = 5 |
1254 | | - text_input_label_max = 45 |
1255 | | - text_input_placeholder_max = 100 |
1256 | | - text_input_min_length_min = 0 |
1257 | | - text_input_min_length_max = 4000 |
1258 | | - text_input_max_length_min = 1 |
1259 | | - text_input_max_length_max = 4000 |
1260 | | - text_input_value_max = 4000 |
1261 | | - |
1262 | | - # TextDisplay constraints |
1263 | | - text_display_content_max = 4000 |
1264 | | - |
1265 | | - # Thumbnail constraints |
1266 | | - thumbnail_description_max = 256 |
1267 | | - |
1268 | | - # Custom ID constraints |
1269 | | - custom_id_min = 1 |
1270 | | - custom_id_max = 100 |
1271 | | - |
1272 | | - # RadioGroup constraints |
1273 | | - radio_options_max = 10 |
1274 | | - |
1275 | | - # CheckboxGroup constraints |
1276 | | - checkbox_options_max = 10 |
1277 | | - checkbox_min_values_min = 0 |
1278 | | - checkbox_min_values_max = 10 |
1279 | | - checkbox_max_values_min = 1 |
1280 | | - checkbox_max_values_max = 10 |
1281 | | - |
1282 | | - # FileUpload constraints |
1283 | | - file_upload_min_files = 0 |
1284 | | - file_upload_max_files_max = 10 |
1285 | | - file_upload_max_values_min = 1 |
1286 | | - |
1287 | | - # Modal constraints |
1288 | | - modal_title_max = 45 |
1289 | | - modal_rows_max = 5 |
1290 | | - |
1291 | | - |
1292 | | -class EmbedLimits(Enum): |
1293 | | - # Embed field constraints |
1294 | | - fields_max = 25 |
1295 | | - |
1296 | | - # Field title/name constraints |
1297 | | - field_name_max = 256 |
1298 | | - |
1299 | | - # Field value constraints |
1300 | | - field_value_max = 1024 |
1301 | | - |
1302 | | - # Embed description constraints |
1303 | | - description_max = 4096 |
1304 | | - |
1305 | | - # Embed footer constraints |
1306 | | - footer_text_max = 2048 |
1307 | | - |
1308 | | - # Embed author constraints |
1309 | | - author_name_max = 256 |
1310 | | - title_max = 256 |
1311 | | - total_max = 6000 |
1312 | | - |
1313 | | - |
1314 | 1211 | T = TypeVar("T") |
1315 | 1212 |
|
1316 | 1213 |
|
|
0 commit comments