-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ⚡ Added a better null check for emojis in react section * ⚡ Added a null check for 'has role' condition * ✨ Added way to reply to deferred & waited interactions * ⚡ DiSky v4.12.0 * 🐛 Fixed event-channel (see #138) * ⚡ Enhanced bot login error system * ⚡ Added way to use options in entries * ⚡ Moved scopes/structs loading after Skript verifications * ⚡ Removed debug message from BaseScope.java * ⚡ Added a better error try/catch system for the nickname effect * ✨ Added JSON serialization for embeds * 🔥 Discriminator are no longer defaulted in toString methods * ⚡ Bumped to JDA v5-beta13 🚀 DiSky v4.12.1 * ✨ Added new media channel type * ✨ Added supports for custom status for bots * ⚡ Bumped to JDA 5-beta15 / DiSky v4.13.0 * 🚀 Bumped to JDA 19 * ⚡ Added debug messages for the `open private channel` effect. * ✨ Added way to "reset" the state of a user/role's permission in a channel
- Loading branch information
Showing
8 changed files
with
74 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
rootProject.name = 'disky' | ||
rootProject.name = 'DiSky' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
src/main/java/info/itsthesky/disky/elements/properties/channels/NewMediaChannel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package info.itsthesky.disky.elements.properties.channels; | ||
|
||
import info.itsthesky.disky.api.skript.action.GuildAction; | ||
import net.dv8tion.jda.api.entities.Guild; | ||
import net.dv8tion.jda.api.requests.restaction.ChannelAction; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public class NewMediaChannel extends GuildAction<ChannelAction> { | ||
|
||
static { | ||
register( | ||
NewMediaChannel.class, | ||
ChannelAction.class, | ||
"media[( |-)]channel" | ||
); | ||
} | ||
|
||
@Override | ||
protected ChannelAction create(@NotNull Guild guild) { | ||
return guild.createMediaChannel("default channel"); | ||
} | ||
|
||
@Override | ||
public String getNewType() { | ||
return "mediachannel"; | ||
} | ||
|
||
@Override | ||
public Class<? extends ChannelAction> getReturnType() { | ||
return ChannelAction.class; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters