twilight icon indicating copy to clipboard operation
twilight copied to clipboard

Validate various unvalidated fields

Open 7596ff opened this issue 2 years ago • 0 comments

Validation can be performed on other fields, such as CreateRole::name. A once-over should be done on all of our request builder methods to ensure that everything is validated.

This list includes both fields which have arbitrary values and fields that can be represented as enums.

Tasks:

  • [ ] Application Command
    • [x] choices
    • [x] description
    • [x] name
    • [x] options
    • [ ] Choice: name
    • [ ] Choice: value
    • [x] Option: name
  • [ ] Channel
    • [x] auto_archive_duration
    • [x] bitrate #1855
    • [x] default_auto_archive_duration
    • [x] name
    • [x] rate_limit_per_user
    • [x] topic
    • [ ] user_limit #2077
  • [x] Component
    • [x] Count
    • [x] custom_id
    • [x] Action Row
      • [x] components
    • [x] Button
      • [x] label
    • [x] Select Menu
      • [x] max_values
      • [x] min_values
      • [x] options
      • [x] placeholder
      • [x] Option: description
      • [x] Option: label
      • [x] Option: value
    • [x] Text Input
      • [x] max_length
      • [x] min_length
      • [x] placeholder
      • [x] value
  • [x] Embed
    • [x] author.name
    • [x] description
    • [x] field.name
    • [x] field.value
    • [x] fields
    • [x] footer.text
    • [x] title
  • [x] Guild
    • [x] name
  • [x] Guild Scheduled Event
    • [x] description
    • [x] location
    • [x] name
  • [x] Message
    • [x] components
    • [x] content
    • [x] embeds
    • [x] sticker_ids
  • [ ] Request
    • [ ] Bulk Delete Messages: messages #2078
    • [ ] Create Global/Guild Commands limit
    • [ ] Modify Guild Welcome Screen: welcome_channels
    • [x] Begin Guild Prune: days
    • [x] Create Channel Invite: max_age
    • [x] Create Channel Invite: max_uses
    • [x] Create Guild Ban: delete_message_days
    • [x] Get Channel Messages: limit
    • [x] Get Current User Guilds: limit
    • [x] Get Guild Audit Log: limit
    • [x] Get Guild Prune Count: days
    • [x] Get Guild Scheduled Event Users: limit
    • [x] Get Reactions: limit
    • [x] List Guild Members: limit
    • [x] Search Guild Members: limit
  • [ ] Role
    • [ ] color
    • [ ] name (undocumented)
  • [x] Stage Instance
    • [x] topic
  • [x] Sticker
    • [x] description
    • [x] name
    • [x] tags
  • [x] Webhook (#1586)
    • [x] name
  • [x] User
    • [x] nickname
    • [x] username

7596ff avatar Jan 20 '22 18:01 7596ff