mmacierzanka
|
800f46a1c6
|
destructured the InitOptions object
|
2021-09-24 20:02:57 +02:00 |
|
mmacierzanka
|
661b401379
|
beta6 - added subcommand to help...
streamlined inheritance accessors, changed help inner working
|
2021-09-23 21:52:02 +02:00 |
|
mmacierzanka
|
4c97a1e7b4
|
fixed subcommand objects
|
2021-09-23 20:52:09 +02:00 |
|
mmacierzanka
|
de85f5b77a
|
MAJOR CHANGE - removed NestedCommand, finalized merging
|
2021-09-23 20:41:21 +02:00 |
|
mmacierzanka
|
ad8da005bc
|
joining NestedCommand and ChatCommand
|
2021-09-23 20:21:28 +02:00 |
|
mmacierzanka
|
b39ec45fa5
|
beta5b
|
2021-09-23 19:48:28 +02:00 |
|
mmacierzanka
|
b942d32663
|
added support for all interaction types that support replying
|
2021-09-23 19:48:14 +02:00 |
|
mmacierzanka
|
c17ca1f2ae
|
added an ability to send messages directly to a text channel
|
2021-09-23 19:42:40 +02:00 |
|
mmacierzanka
|
ba641a499a
|
added rate limit error catching
|
2021-09-22 23:32:14 +02:00 |
|
mmacierzanka
|
c86eb96450
|
beta 5a npm
|
2021-09-22 23:26:48 +02:00 |
|
mmacierzanka
|
c61c8c3bd6
|
MAJOR CHANGE - inverted type naming changes
changed APICommand to Command, changed structures
|
2021-09-22 23:26:11 +02:00 |
|
mmacierzanka
|
d2f9ed6bad
|
beta5 npm
|
2021-09-20 23:55:25 +02:00 |
|
mmacierzanka
|
7c9c2c8b8b
|
added toObject method and guild and dm parameter checking
|
2021-09-20 19:29:42 +02:00 |
|
mmacierzanka
|
3b0cb00e6a
|
added toObject methods
|
2021-09-20 19:29:25 +02:00 |
|
mmacierzanka
|
d20d42ab32
|
removed command checking, reenabled registering
|
2021-09-20 19:28:41 +02:00 |
|
mmacierzanka
|
1c829e39f3
|
changed SubCommandGroup type to inherit from APICommandType
|
2021-09-20 19:27:56 +02:00 |
|
mmacierzanka
|
dd9c85c3f9
|
added bot message checking
|
2021-09-20 19:25:22 +02:00 |
|
mmacierzanka
|
3018425788
|
changed entry checking method to only include commands with the same type
|
2021-09-20 18:55:36 +02:00 |
|
mmacierzanka
|
8c40a21967
|
made code prettier and added name and alias checking
|
2021-09-20 18:53:48 +02:00 |
|
mmacierzanka
|
b25d68e21d
|
made manager property public
|
2021-09-20 18:35:05 +02:00 |
|
mmacierzanka
|
98c746344a
|
added catching to system messages (to prevent crashes)
|
2021-09-19 22:23:01 +02:00 |
|
mmacierzanka
|
330a197d22
|
fixed dm and guild checking
|
2021-09-19 03:57:15 +02:00 |
|
mmacierzanka
|
9766fc850d
|
updated type-checking methods
|
2021-09-19 03:28:53 +02:00 |
|
mmacierzanka
|
53d2034f1f
|
removed function prop from NestedCommandInit
|
2021-09-18 01:49:06 +02:00 |
|
mmacierzanka
|
479dab1cf4
|
fixed logical error
|
2021-09-18 01:41:48 +02:00 |
|
mmacierzanka
|
b613ab9a3e
|
added string checker
|
2021-09-18 01:35:59 +02:00 |
|
mmacierzanka
|
b8ad7b1299
|
fixed permission checker
|
2021-09-18 01:33:51 +02:00 |
|
mmacierzanka
|
e968667bbb
|
disabled command registering service (temporary)
|
2021-09-18 01:27:51 +02:00 |
|
mmacierzanka
|
3960e0ac26
|
added utils, changed command type holding and fixed bugs
|
2021-09-18 01:24:02 +02:00 |
|
mmacierzanka
|
b76006ece1
|
MAJOR CHANGE - massive structure and classes rework
Splitted BaseCommand to lots of base types
|
2021-09-18 00:36:55 +02:00 |
|
mmacierzanka
|
471b79d3a8
|
beta4 npm
|
2021-09-17 19:01:38 +02:00 |
|
mmacierzanka
|
175acb1d0e
|
added getters and permissions api
|
2021-09-17 18:59:38 +02:00 |
|
mmacierzanka
|
7b28b1c26d
|
added permission api types
(for discord built-in permissions)
|
2021-09-17 18:58:46 +02:00 |
|
mmacierzanka
|
ef092c92d7
|
moved error event emitting to fire earlier...
before sending a system message
|
2021-09-17 18:31:43 +02:00 |
|
mmacierzanka
|
706e426916
|
beta3 npm
|
2021-09-15 19:43:59 +02:00 |
|
mmacierzanka
|
82a3ff107c
|
changed get method to not use overlaps
|
2021-09-15 18:45:39 +02:00 |
|
mmacierzanka
|
0087b995f5
|
changed and added some JSDoc comments
|
2021-09-15 18:33:27 +02:00 |
|
mmacierzanka
|
548f0feddb
|
MAJOR CHANGE - CommandPermissions
CommandPermissions class holding all permission-related things
|
2021-09-15 17:22:22 +02:00 |
|
mmacierzanka
|
6f013f48c2
|
changed permissions.ts types to CommandPermissions.ts
|
2021-09-15 00:47:29 +02:00 |
|
mmacierzanka
|
2c86b6ba53
|
changed CheckPermissions to CommandPermissions
|
2021-09-15 00:46:44 +02:00 |
|
mmacierzanka
|
1660fa8ef7
|
made parent property readonly
|
2021-09-15 00:25:49 +02:00 |
|
mmacierzanka
|
fedebf0b23
|
removed extra line
|
2021-09-14 23:53:41 +02:00 |
|
mmacierzanka
|
d6ede6f2dd
|
moved isCommand static method to CommandManager
for better accessibility
|
2021-09-14 23:48:51 +02:00 |
|
mmacierzanka
|
f55bb14720
|
moved static method to the bottom
|
2021-09-14 23:41:34 +02:00 |
|
mmacierzanka
|
58354bac84
|
beta2 npm
|
2021-09-14 23:40:09 +02:00 |
|
mmacierzanka
|
45327ed6f7
|
added PermissionsOptions
|
2021-09-14 23:39:56 +02:00 |
|
mmacierzanka
|
a4cee7d005
|
removed dm prop from NestedCommand (useless)
|
2021-09-14 23:30:54 +02:00 |
|
mmacierzanka
|
de5599934c
|
added dm property to subclasses
|
2021-09-14 19:14:33 +02:00 |
|
mmacierzanka
|
4b82df4b9c
|
changed command init interfaces
|
2021-09-14 19:10:31 +02:00 |
|
mmacierzanka
|
e9ebcd36f9
|
fixed command objects to match new permission system
|
2021-09-14 18:48:32 +02:00 |
|
mmacierzanka
|
27c09bedd9
|
CheckPermissions - merged checkType and Permissions obj
|
2021-09-14 18:47:14 +02:00 |
|
mmacierzanka
|
d5e0136c9e
|
moved handleReply to the bottom
|
2021-09-14 18:32:18 +02:00 |
|
mmacierzanka
|
68a9628101
|
dm property to block interactions from private messages
|
2021-09-14 17:57:51 +02:00 |
|
mmacierzanka
|
3ceaef2b7c
|
removed prefixes accessor (it was for debugging)
|
2021-09-14 17:43:49 +02:00 |
|
mmacierzanka
|
6d7fe78ee7
|
adjusted PrefixManager.get method calls
|
2021-09-14 17:40:33 +02:00 |
|
mmacierzanka
|
9c8893818f
|
changed scope parameter to be optional
|
2021-09-14 17:38:07 +02:00 |
|
mmacierzanka
|
65b97c9656
|
changed get return type
|
2021-09-14 17:31:42 +02:00 |
|
mmacierzanka
|
0cd392d4e5
|
fixed errors related to commit a4d79e6
|
2021-09-14 17:28:44 +02:00 |
|
mmacierzanka
|
a4d79e6ff9
|
changed method logic and parameters
|
2021-09-14 17:24:52 +02:00 |
|
mmacierzanka
|
47b715471b
|
added djs error handler
|
2021-09-14 17:16:49 +02:00 |
|
mmacierzanka
|
ccaabf061e
|
added prefixes accessor to get full list of guild prefixes
|
2021-09-14 17:12:24 +02:00 |
|
mmacierzanka
|
5e2efa31aa
|
changed noDefault to noGlobal to better match the context
|
2021-09-14 14:49:42 +02:00 |
|
mmacierzanka
|
491c9782cc
|
changed logic for set method
|
2021-09-14 14:42:33 +02:00 |
|
mmacierzanka
|
8c89b3e387
|
added minimum length
|
2021-09-14 14:23:37 +02:00 |
|
mmacierzanka
|
0735e9a146
|
fixed bad logic in get method
|
2021-09-14 14:23:24 +02:00 |
|
mmacierzanka
|
a27eaaefd3
|
added guild prefixes
|
2021-09-14 14:13:14 +02:00 |
|
mmacierzanka
|
f37178716e
|
beta1.1 - added more main exports
|
2021-09-14 00:11:48 +02:00 |
|
mmacierzanka
|
cedf4984f9
|
beta1 package
|
2021-09-13 19:32:31 +02:00 |
|
mmacierzanka
|
274ea43c3e
|
added prefix displaying
|
2021-09-12 18:49:12 +02:00 |
|
mmacierzanka
|
85e6236a5f
|
sending a message
|
2021-09-12 18:47:24 +02:00 |
|
mmacierzanka
|
7395027d79
|
fixed isNestedCommand method
|
2021-09-12 18:45:45 +02:00 |
|
mmacierzanka
|
c33ae91c8f
|
changed CommandManager to accept base subcommands
|
2021-09-12 18:38:31 +02:00 |
|
mmacierzanka
|
8ff7359f98
|
added separators to nested command message
|
2021-09-12 18:35:31 +02:00 |
|
mmacierzanka
|
1f3878e7b9
|
changed main exports to exclude command classes
|
2021-09-12 18:30:21 +02:00 |
|
mmacierzanka
|
b6899c80ce
|
changed HelpMessage registering method
|
2021-09-12 18:28:26 +02:00 |
|
mmacierzanka
|
2c4a779e42
|
MAJOR CHANGE - new registering method and _manager property
_manager property on BaseCommand, new types, new methods to add a command
|
2021-09-12 18:23:26 +02:00 |
|
mmacierzanka
|
68c484813c
|
added subcommand support for messages
|
2021-09-12 17:10:44 +02:00 |
|
mmacierzanka
|
12de407e6f
|
fixed listApi fetch method
|
2021-09-12 16:01:18 +02:00 |
|
mmacierzanka
|
26df341d1f
|
fixed errors in Message handler
|
2021-09-12 03:18:39 +02:00 |
|
mmacierzanka
|
2246a98f5d
|
working implementation of subcommands
|
2021-09-12 02:21:03 +02:00 |
|
mmacierzanka
|
b9d0bde79c
|
fetchSubcommand method
|
2021-09-12 02:20:38 +02:00 |
|
mmacierzanka
|
c8ad647553
|
added getSubcommand method
|
2021-09-12 01:28:36 +02:00 |
|
mmacierzanka
|
beeff8d233
|
added overlap for excluding NestedCommand objects (get)
|
2021-09-12 01:06:47 +02:00 |
|
mmacierzanka
|
bc01141f4e
|
added catching to prevent crashes when replying fails
|
2021-09-12 00:07:31 +02:00 |
|
mmacierzanka
|
d3e4607440
|
fixed all issues related to NestedCommand registering
I hope so...
|
2021-09-11 23:58:39 +02:00 |
|
mmacierzanka
|
654b6b837d
|
updated is...Command methods in BaseCommand
to be more accurate
|
2021-09-11 23:40:00 +02:00 |
|
mmacierzanka
|
3cc388e5e1
|
updated CommandManager to properly add NestedCommands
previous commit didn't fix the issue
|
2021-09-11 23:38:37 +02:00 |
|
mmacierzanka
|
30d52c5c6e
|
updated CommandManager to register NestedCommand objects
fixed a bug with registering global context menu commands
|
2021-09-11 23:14:39 +02:00 |
|
mmacierzanka
|
bdc297d318
|
added isNestedCommand method
|
2021-09-11 23:09:33 +02:00 |
|
mmacierzanka
|
219d27b5f1
|
fixed importing errors caused by vscode being sh*t
|
2021-09-11 23:00:25 +02:00 |
|
mmacierzanka
|
c876e455cc
|
changed type handling in NestedCommand
|
2021-09-11 22:54:21 +02:00 |
|
mmacierzanka
|
55479e8710
|
fixed CommandManager return type... again
|
2021-09-11 22:50:41 +02:00 |
|
mmacierzanka
|
4d79bc200d
|
fixed add method on CommandManager
|
2021-09-11 22:48:03 +02:00 |
|
mmacierzanka
|
3039e233ee
|
added nested command to main exports
|
2021-09-11 22:44:42 +02:00 |
|
mmacierzanka
|
1ec54d23d2
|
fixed broken imports
|
2021-09-11 22:41:14 +02:00 |
|
mmacierzanka
|
ea52fe58dc
|
added toObject methods and connected everything together
|
2021-09-11 22:40:40 +02:00 |
|
mmacierzanka
|
32b40ad802
|
updated to match new API objects
|
2021-09-11 22:37:59 +02:00 |
|
mmacierzanka
|
7d0adc8d69
|
added types for nested commands and fixed a typo
|
2021-09-11 22:37:21 +02:00 |
|
mmacierzanka
|
d7b5573598
|
added message with select menu...
accessor for children and append method
|
2021-09-11 20:03:38 +02:00 |
|
mmacierzanka
|
313794026e
|
added getter for children and append method
|
2021-09-11 20:03:00 +02:00 |
|