Add duration argument to mute cmd (#607)

* Add mute expiration and duration argument

* feat: require permission to receive mute alerts

* fix: Missing comma in update-player query
This commit is contained in:
Josua Parks authored and GitHub committed 2025-01-24 22:00:45 -08:00
1 parent 108561b5b9
commit 3cf502d963
15 files changed
+138 -2

No files matched your search

@@ -212,6 +212,14 @@ public interface CarbonPlayer extends Audience, Identified {
*/
boolean muted();
/**
* The time the mute will expire, in epoch millis.
*
* @return the mute expiration time
* @since 3.0.0
*/
long muteExpiration();
/**
* Mutes and unmutes the player.
*
@@ -220,6 +228,14 @@ public interface CarbonPlayer extends Audience, Identified {
*/
void muted(boolean muted);
/**
* Sets the epoch time the player's mute will expire.
*
* @param epochMillis the expiration time
* @since 3.0.0
*/
void muteExpiration(long epochMillis);
/**
* Gets the ids of the players this player is currently ignoring.
*