Skip to content

Commit

Permalink
Updated to match Discord's new IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
FreshImmuc authored and tjarbo committed Nov 27, 2024
1 parent 7a641dc commit 06c4dba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class DiscordBotConnectorPlugin extends ConnectorPlugin {
private isReady = false;

private static readonly socketSchema = object<SocketSchema>({
channel: string().alphanum().length(18).when(ref('$isRequired'), {
channel: string().alphanum().min(18).max(19).when(ref('$isRequired'), {
is: boolean().invalid(false),
then: required(),
}),
Expand All @@ -25,6 +25,7 @@ export class DiscordBotConnectorPlugin extends ConnectorPlugin {
}),
}).required();


/**
* Creates an instance of DiscordBotConnectorPlugin.
*
Expand Down
4 changes: 2 additions & 2 deletions packages/backend/src/docs/rest-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@
"userId": {
"type": "string",
"minLength": 18,
"maxLength": 18,
"maxLength": 19,
"example": "123456789123456789"
},
"createdAt": {
Expand Down Expand Up @@ -546,7 +546,7 @@
"required": true,
"type": "string",
"minLength": 18,
"maxLength": 18
"maxLength": 19
}
],
"responses": {
Expand Down

0 comments on commit 06c4dba

Please sign in to comment.