Commit 51e3149
committed
generateRoleOptions: remove unnecessary parameter
As it currently is, the helper method `generateRoleOptions` takes one
`SlashCommandData` parameter and is used once throughout the entire
project, specifically in the same class it is defined.
In that one case, `generateRoleOptions` would take in `getData()` as its
input, a method that is accessible through the entire class due to the
simple fact that `CreateRoleApplicationCommand` inherits methods from
`SlashCommandAdapter`.
Modify the `generateRoleOptions` helper method to take no input and
inside it, store a reference of `getData()` for the method to make use
of.
Suggested-by: Zabuzard <zabuza.dev@gmail.com>
Signed-off-by: Chris Sdogkos <work@chris-sdogkos.com>1 parent b6db802 commit 51e3149
File tree
1 file changed
+6
-5
lines changed- application/src/main/java/org/togetherjava/tjbot/features/roleapplication
1 file changed
+6
-5
lines changedLines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
76 | | - | |
| 74 | + | |
| 75 | + | |
77 | 76 | | |
78 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| |||
0 commit comments