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

Add support for components #73

Open
wants to merge 26 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
682d3de
Transferred changes from `RohanGoyalDev/discord-webhooks:master`
jasonlessenich Jul 24, 2022
726fc34
fixed casing (yeah, that really bothered me)
jasonlessenich Jul 24, 2022
28943c3
Removed annoying URL param for `Button#link`
jasonlessenich Jul 24, 2022
69d4d56
Added Debug sout for testing
jasonlessenich Jul 24, 2022
74301a4
Fixed Components not using their correct id
jasonlessenich Jul 24, 2022
e0a0775
Update src/main/java/club/minnced/discord/webhook/send/component/Acti…
jasonlessenich Aug 7, 2022
b0e5c69
Update src/main/java/club/minnced/discord/webhook/send/component/Acti…
jasonlessenich Aug 7, 2022
14b27fb
Update src/main/java/club/minnced/discord/webhook/send/component/Acti…
jasonlessenich Aug 7, 2022
9ccbb9d
Update src/main/java/club/minnced/discord/webhook/send/component/Butt…
jasonlessenich Aug 7, 2022
c8a879a
Update src/main/java/club/minnced/discord/webhook/send/component/Comp…
jasonlessenich Aug 7, 2022
da5a0a6
Update src/main/java/club/minnced/discord/webhook/send/component/Comp…
jasonlessenich Aug 7, 2022
006f85c
Update src/main/java/club/minnced/discord/webhook/send/component/Comp…
jasonlessenich Aug 7, 2022
5fe79f1
Update src/main/java/club/minnced/discord/webhook/send/component/Layo…
jasonlessenich Aug 7, 2022
1fca72a
Update src/main/java/club/minnced/discord/webhook/send/component/Layo…
jasonlessenich Aug 7, 2022
f728856
Update src/main/java/club/minnced/discord/webhook/send/component/Part…
jasonlessenich Aug 7, 2022
dd45b87
Update src/main/java/club/minnced/discord/webhook/send/component/Part…
jasonlessenich Aug 7, 2022
3040224
Update src/main/java/club/minnced/discord/webhook/send/component/Part…
jasonlessenich Aug 7, 2022
e8aaa8d
Update src/main/java/club/minnced/discord/webhook/send/component/Sele…
jasonlessenich Aug 7, 2022
7a2d7a8
Update src/main/java/club/minnced/discord/webhook/send/component/Sele…
jasonlessenich Aug 7, 2022
3b19b81
Update src/main/java/club/minnced/discord/webhook/send/component/Sele…
jasonlessenich Aug 7, 2022
b2473c1
Update src/main/java/club/minnced/discord/webhook/send/component/Layo…
jasonlessenich Aug 7, 2022
0fbd680
Update src/main/java/club/minnced/discord/webhook/send/component/Acti…
jasonlessenich Aug 7, 2022
9286cb9
Add initial support for components
MinnDevelopment Jan 1, 2023
00b8750
Fix tests
MinnDevelopment Jan 4, 2023
0b213b3
Add WebhookMessage#components
MinnDevelopment Jan 4, 2023
345fd27
Fix warnings/errors
MinnDevelopment Jan 4, 2023
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
Prev Previous commit
Next Next commit
Update src/main/java/club/minnced/discord/webhook/send/component/Comp…
…onent.java

Co-authored-by: Florian Spieß <business@minn.dev>
jasonlessenich and MinnDevelopment authored Aug 7, 2022
commit da5a0a611dd7577fbcd9543d4b59ad0c230d4afd
Original file line number Diff line number Diff line change
@@ -26,9 +26,13 @@
public interface Component extends JSONString {

/**
* Type enum representing the indivdual types of components.
* <br>This includes both {@link LayoutComponent LayoutComponents} and {@link ActionComponent ActionComponents}.
*
* @return The type of the component
*/
@NotNull Type getType();
@NotNull
Type getType();

enum Type {
ACTION_ROW(1),