Commit Graph

142 Commits

Author SHA1 Message Date
Max
30fb45fdc5 yep @sern-handler (#114)
* fix error handling in subcommandPermCheck

This edit fixes the error "<subcommandName> not found on command: <commandName>." it was finding the incorrect subcommand from the list vs the command subcommands.

* fix error handling in permCheck

Errors were not being thrown in the correct manner. This edit will filter through the command subcommandgroups and subcommands to validate the listed names in the plugin. Originally, the plugin would only search for the first subcommandgroup or subcommand and try to match to an in the list.
2024-07-14 21:22:36 -05:00
jacoobes
6be9e5473a chore: update plugin listing
Signed-off-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-07-11 02:46:43 +00:00
Peter-MJ-Parker
6309184189 feat: Create subcommandPermCheck plugin (#113)
* feat: Create subcommandPermCheck plugin

This plugin was requested to be uploaded for basic sub command permission handling. Only available for slash commands and will fault out for other command types.

* edit: resolve conflicts

Removed deconstructed interaction
Made errors more understandable
Corrected the example to use a parameter as the first object and input correct properties.

---------

Co-authored-by: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com>
2024-07-10 21:46:27 -05:00
jacoobes
036803c69b chore: update plugin listing
Signed-off-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-07-09 20:43:51 +00:00
Peter-MJ-Parker
21d18bb8eb chore: Update permCheck.ts (#112)
* chore: Update permCheck.ts

Allows users to check member perms before using specific sub command groups, sub commands, and options!

* edit: permCheck - revert back to a function

Reverted permCheck back to a function to avoid breaking changes.

* edit: permCheck.ts

Remove console logs

* formatting permCheck.ts

* edit: Update permCheck.ts

Fixed overall formatting
simplified ephemeral booleans
No longer destructuring interaction from ctx
fixed in guild from not fully returning controller.stop()
remove `no_guild` function in favor of hard coding
imported type CommandType

* edit: Update permCheck.ts

Remove ALL destructures `({ ctx })` --> `(ctx)`

* edit: Update permCheck.ts 

edit response for not being in guild

* edit: permCheck - assigned to object

Remove all breaking changes while maintaining integrity of new features as well as original!

* edit: permCheck - remove un-needed code.

Thanks to Duro for simplifying the code into one function!

---------

Co-authored-by: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com>
2024-07-09 15:43:36 -05:00
jacoobes
e3b42659fc chore: update plugin listing
Signed-off-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-06 05:13:17 +00:00
Jacob Nguyen
d356f68598 Update filter.ts (#111) 2024-05-06 00:13:02 -05:00
jacoobes
7ff41ebb0f chore: update plugin listing
Signed-off-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-02-23 17:18:25 +00:00
Peter-MJ-Parker
f5923ecd0b chore: update disable.ts (#110)
Noticed a few bugs.
1) Changed invalid import from discord.js. Implicitly had an any type for `onFail`.
```diff
-ReplyMessageOptions
+MessageReplyOptions
```
2) Corrected the improper catching of errors by implementing try/catch blocks. Included more detailed error responses.
3) Default reply for slash with onFail inputted was invalid because it could also be a string.
2024-02-23 11:18:10 -06:00
EvolutionX-10
f1627acbc2 chore: update plugin listing
Signed-off-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-01-04 09:08:37 +00:00
Jacob Nguyen
6d018ea060 feat: fromCallback.ts (#109) 2024-01-04 14:38:22 +05:30
jacoobes
6620e94f8f chore: update plugin listing
Signed-off-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-10-25 20:05:38 +00:00
e4312cd1ad fix: deprecated enums by discord.js (#108)
* fix: deprecated enums by discord.js

* chore: change version
2023-10-25 15:05:23 -05:00
EvolutionX-10
d823415a69 chore: update plugin listing
Signed-off-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-09-20 15:32:42 +00:00
Jacob Nguyen
cb221ae7ff fix(assertFields): comment update (#105) 2023-09-20 21:02:19 +05:30
Jacob Nguyen
b43fe10d92 chore: update PULL_REQUEST_TEMPLATE.md (#107)
* Update PULL_REQUEST_TEMPLATE.md

* Update PULL_REQUEST_TEMPLATE.md
2023-09-10 12:57:03 -05:00
EvolutionX-10
39862e1026 chore: update plugin listing
Signed-off-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-09-02 07:27:15 +00:00
EvolutionX
1393f79d9a chore: noval sucks
permalink: http://whatthecommit.com/0a95e95262a10379dc986dabcc217c99
2023-09-02 12:56:56 +05:30
EvolutionX
c8f76c6308 chore: i don't give a damn 'bout my reputation
permalink: http://whatthecommit.com/1d321094aaf17617d868cba96c6ebbb5
2023-09-02 11:54:00 +05:30
EvolutionX-10
9105fb5028 chore: update plugin listing
Signed-off-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-09-02 06:12:24 +00:00
EvolutionX-10
d307d4dc45 style: run prettier
Signed-off-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-09-02 06:12:08 +00:00
EvolutionX
0812117ba0 chore: corrected mistakes
permalink: http://whatthecommit.com/e3da640ecb1a8202b137447209380f9e
2023-09-02 11:41:42 +05:30
EvolutionX
13da5def53 chore: whatever.
permalink: http://whatthecommit.com/1188cb73369c7537d421c49f830e9852
2023-09-02 11:40:47 +05:30
EvolutionX-10
0903ad297c chore: update plugin listing
Signed-off-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-09-02 06:08:12 +00:00
EvolutionX
e55e1adf31 chore: removed tests since i can't make them green
permalink: http://whatthecommit.com/2461c2e5456a9e486c1a2207f0efdd43
2023-09-02 11:37:54 +05:30
EvolutionX
dac447d3ac chore: woa!! this one was really hard!
permalink: http://whatthecommit.com/29b1b6ea198a584830edff869fd970f3
2023-09-02 11:36:05 +05:30
EvolutionX-10
efd52f5357 style: run prettier
Signed-off-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-09-02 06:03:11 +00:00
EvolutionX
44e151d414 chore: i had a cup of tea and now it's fixed
permalink: http://whatthecommit.com/75f9d31192425512ef21e07a20f3390b
2023-09-02 11:32:47 +05:30
EvolutionX
33397c04e8 chore: testing 2023-09-02 11:19:06 +05:30
EvolutionX
98ad62330b chore: add actual words
permalink: http://whatthecommit.com/3d6431a17a3b67e8b1341a2c6e4362f8
2023-09-02 11:14:43 +05:30
EvolutionX
0685dc961d chore: still can't get this right...
permalink: http://whatthecommit.com/ae271f8c51c870bfdb14f33469d718c6
2023-09-02 11:03:25 +05:30
Evo
877291964c feat: awesome automations (#104) 2023-09-02 10:59:59 +05:30
Jacob Nguyen
63253dce8f feat: better gen-list + pr template (#100) 2023-09-01 22:21:35 +05:30
Evo
c0a36cc204 chore: update continuous-delivery.yml 2023-08-26 09:48:54 +05:30
Jacob Nguyen
f911004d4b feat: filter.ts (#99) 2023-08-26 08:52:50 +05:30
Jacob Nguyen
97b61645d9 Update auto_assign.yml (#101) 2023-08-24 08:41:33 +05:30
Jacob Nguyen
502deeff30 chore: update publish.ts to use backwards compatible service (#96) 2023-08-11 22:14:39 +05:30
Jacob Nguyen
74088031f5 chore: disable prettier until we decide what to do with it (#98) 2023-08-08 09:12:25 +05:30
github-actions[bot]
1ff96e780a chore: Update JavaScript plugins (#95)
chore: update JavaScript plugins

Co-authored-by: EvolutionX-10 <EvolutionX-10@users.noreply.github.com>
2023-06-26 08:42:23 +05:30
Jacob Nguyen
e3d40e40cd fix: Update publish.ts (#94) 2023-05-23 09:52:48 +05:30
github-actions[bot]
9cf7161aeb chore: Update JavaScript plugins (#93)
chore: update JavaScript plugins

Co-authored-by: EvolutionX-10 <EvolutionX-10@users.noreply.github.com>
2023-05-06 20:02:29 +05:30
Peter-MJ-Parker
2954d61697 chore: update peter user id (#92) 2023-05-06 20:01:24 +05:30
github-actions[bot]
e617fdcefb chore: Update JavaScript plugins (#91)
chore: update JavaScript plugins

Co-authored-by: jacoobes <jacoobes@users.noreply.github.com>
2023-05-01 14:12:24 +05:30
Evo
16328c9b4a chore: update owneronly plugin (#90) 2023-04-30 16:23:04 -05:00
github-actions[bot]
3ce312f5aa chore: Update JavaScript plugins (#89)
chore: update JavaScript plugins

Co-authored-by: jacoobes <jacoobes@users.noreply.github.com>
2023-04-29 12:06:58 -05:00
Gary
49db76219e fix-add async to plugin (#88) 2023-04-29 12:05:56 -05:00
github-actions[bot]
ff40182008 chore: Update JavaScript plugins (#86)
chore: update JavaScript plugins

Co-authored-by: EvolutionX-10 <EvolutionX-10@users.noreply.github.com>
2023-02-25 14:31:22 +05:30
Jacob Nguyen
9da1fd721f chore: update ci (#85) 2023-02-23 08:44:21 +05:30
Peter-MJ-Parker
bb0a82a253 Peter mj parker patch 1 (#83)
* feat: Update plugin `disable` 

Updates PluginType to work with new typings for sern v2.
Application does not fail to respond when no fail message is defined.

* fix: Resolve changes

Setup the timeout differently and added notes to explain what the functions do.
2023-02-22 17:54:26 -06:00
Gary
5624932675 fix: rename function (#80) 2023-02-18 21:54:40 -06:00