diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..1949356 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,6 @@ +{ + "sonarlint.connectedMode.project": { + "connectionId": "bravo68web", + "projectKey": "BRAVO68WEB_shx" + } +} \ No newline at end of file diff --git a/packages/discord/src/events/message-create.ts b/packages/discord/src/events/message-create.ts index 67f3fcc..283a03a 100644 --- a/packages/discord/src/events/message-create.ts +++ b/packages/discord/src/events/message-create.ts @@ -86,7 +86,7 @@ export const event: DiscordEvent = { if (commandMatching) { cmd = commandMatching; - cmdName = cmd.data.name; + cmdName = cmd?.data.name; break; } else if (aliasesMatching) { cmd = client.commands.get(aliasesMatching); diff --git a/sonar-project.properties b/sonar-project.properties index ddbc928..1bd5a07 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -9,4 +9,6 @@ sonar.organization=bravo68web #sonar.sources=. # Encoding of the source code. Default is default system encoding -#sonar.sourceEncoding=UTF-8 \ No newline at end of file +#sonar.sourceEncoding=UTF-8 + +sonar.host.url=https://sonarcloud.io \ No newline at end of file