@@ -1135,25 +1135,25 @@ def command(**kwargs):
1135
1135
def validate_chat_input_name (name : Any ):
1136
1136
# Must meet the regex ^[\w-]{1,32}$
1137
1137
if not isinstance (name , str ):
1138
- raise TypeError (f"Chat input command names and options must be of type str. Recieved { name } " )
1138
+ raise TypeError (f"Chat input command names and options must be of type str. Received { name } " )
1139
1139
if not re .match (r"^[\w-]{1,32}$" , name ):
1140
1140
raise ValidationError (
1141
1141
r'Chat input command names and options must follow the regex "^[\w-]{1,32}$". For more information, see '
1142
- f"{ docs } /interactions/application-commands#application-command-object-application-command-naming. Recieved "
1142
+ f"{ docs } /interactions/application-commands#application-command-object-application-command-naming. Received "
1143
1143
f"{ name } "
1144
1144
)
1145
1145
if not 1 <= len (name ) <= 32 :
1146
1146
raise ValidationError (
1147
- f"Chat input command names and options must be 1-32 characters long. Recieved { name } "
1147
+ f"Chat input command names and options must be 1-32 characters long. Received { name } "
1148
1148
)
1149
1149
if not name .lower () == name : # Can't use islower() as it fails if none of the chars can be lower. See #512.
1150
- raise ValidationError (f"Chat input command names and options must be lowercase. Recieved { name } " )
1150
+ raise ValidationError (f"Chat input command names and options must be lowercase. Received { name } " )
1151
1151
1152
1152
1153
1153
def validate_chat_input_description (description : Any ):
1154
1154
if not isinstance (description , str ):
1155
- raise TypeError (f"Command description must be of type str. Recieved { description } " )
1155
+ raise TypeError (f"Command description must be of type str. Received { description } " )
1156
1156
if not 1 <= len (description ) <= 100 :
1157
1157
raise ValidationError (
1158
- f"Command description must be 1-100 characters long. Recieved { description } "
1158
+ f"Command description must be 1-100 characters long. Received { description } "
1159
1159
)
0 commit comments