Skip to content

Commit

Permalink
feat(features): add a proper support for DMs
Browse files Browse the repository at this point in the history
Closes #1895.
  • Loading branch information
C0ZEN committed Dec 10, 2022
1 parent 5707d58 commit 4647ff0
Show file tree
Hide file tree
Showing 186 changed files with 20,607 additions and 4,162 deletions.
1 change: 1 addition & 0 deletions .idea/il-est-midi.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion jest/helpers.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// eslint-disable-next-line @typescript-eslint/ban-types,@typescript-eslint/no-unused-vars
declare function createInstance<TInstance>(className: object): TInstance;
declare function createInstance<TInstance>(className: object, data?: object): TInstance;
13 changes: 12 additions & 1 deletion jest/helpers.js
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
global.createInstance = (className) => Object.create(className);
// eslint-disable-next-line @typescript-eslint/naming-convention
const _ = require(`lodash`);

global.createInstance = (className, data) => {
const instance = Object.create(className);

if (data) {
_.assign(instance, data);
}

return instance;
};
123 changes: 90 additions & 33 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@
"install-git-hooks": "husky install && shx rm -rf .git/hooks && shx ln -s ../.husky .git/hooks"
},
"dependencies": {
"@discordjs/builders": "1.4.0",
"@ngneat/effects": "1.1.1",
"@ngneat/elf": "2.3.0",
"@ngneat/elf-entities": "4.4.2",
Expand Down
Loading

0 comments on commit 4647ff0

Please sign in to comment.