Skip to content

Commit f7ea786

Browse files
committed
Fix typos
1 parent 00fdb05 commit f7ea786

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

discord/commands/commands.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,25 +1135,25 @@ def command(**kwargs):
11351135
def validate_chat_input_name(name: Any):
11361136
# Must meet the regex ^[\w-]{1,32}$
11371137
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}")
11391139
if not re.match(r"^[\w-]{1,32}$", name):
11401140
raise ValidationError(
11411141
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 "
11431143
f"{name}"
11441144
)
11451145
if not 1 <= len(name) <= 32:
11461146
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}"
11481148
)
11491149
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}")
11511151

11521152

11531153
def validate_chat_input_description(description: Any):
11541154
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}")
11561156
if not 1 <= len(description) <= 100:
11571157
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}"
11591159
)

0 commit comments

Comments
 (0)