Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(network): add simple db caching layer to NetworkManager() #61

Merged
merged 8 commits into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default tseslint.config({

languageOptions: {
parser: tseslint.parser,
parserOptions: { sourceType: 'module' },
parserOptions: { sourceType: 'module' },
ecmaVersion: 2022,
globals: {
...globals.node,
Expand All @@ -25,7 +25,7 @@ export default tseslint.config({
'yoda': 'error',
'no-var': 'error',
'no-console': 'warn',
'complexity': 'error',
'complexity': 'warn',
'dot-notation': 'off',
'prefer-const': 'error',
'no-lonely-if': 'error',
Expand Down Expand Up @@ -65,5 +65,4 @@ export default tseslint.config({
'@stylistic/no-multiple-empty-lines': ['error', { 'max': 2, 'maxEOF': 1, 'maxBOF': 0 }],
'@stylistic/space-before-function-paren': ['error', { 'anonymous': 'never', 'named': 'never', 'asyncArrow': 'always' }],
},
}
);
});
1 change: 0 additions & 1 deletion src/commands/slash/Main/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import { emojis } from '../../../utils/Constants.js';
import { CustomID } from '../../../utils/CustomID.js';
import {
disableComponents,
simpleEmbed,
getOrCreateWebhook,
setComponentExpiry,
Expand Down Expand Up @@ -164,7 +163,7 @@
}

@RegisterInteractionHandler('connection')
async handleComponents(interaction: MessageComponentInteraction) {

Check warning on line 166 in src/commands/slash/Main/connection.ts

View workflow job for this annotation

GitHub Actions / Lint Check

Async method 'handleComponents' has a complexity of 23. Maximum allowed is 20
const customId = CustomID.parseCustomId(interaction.customId);
const channelId = customId.args[0];

Expand Down
Loading
Loading