Skip to content

Commit

Permalink
minor updates - meta, and clean_flags
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed May 22, 2022
1 parent baecfb8 commit 4f16c64
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
Expand Up @@ -52,7 +52,7 @@ public DiscordInteractionCommand() {
//
// The "ephemeral" argument can be used to have the reply message be visible to that one user.
//
// You should usually defer an interaction before replying.
// You can defer an interaction before replying, which is useful if your reply may take more than a few seconds to be selected.
// If you defer, the 'ephemeral' option can only be set by the defer - you cannot change it with the later reply.
// Replying to an interaction uses similar logic to normal messaging. See <@link command discordmessage>.
// If you deferred without using 'ephemeral', the 'delete' option will delete the "Thinking..." message.
Expand Down
Expand Up @@ -49,10 +49,12 @@ public DiscordModalCommand() {
//
// You can listen to the responses to forms using <@link event discord modal submitted>.
//
// You should usually defer an interaction using <@link command discordinteraction> before using a modal.
// You cannot defer an interaction before using a modal. It must be sent immediately.
//
// The command should usually be ~waited for. See <@link language ~waitable>.
//
// Note that the interaction can be any button or application command, but cannot be a modal submission - you cannot reply to a modal submit with a second modal.
//
// @Usage
// Use to create a modal that only requests one single direct text input.
// - definemap rows:
Expand Down
Expand Up @@ -14,7 +14,7 @@
import net.dv8tion.jda.api.entities.Guild;
import net.dv8tion.jda.api.interactions.commands.Command;

public class DiscordBotTag implements ObjectTag, FlaggableObject {
public class DiscordBotTag implements ObjectTag, FlaggableObject, Adjustable {

// <--[ObjectType]
// @name DiscordBotTag
Expand Down Expand Up @@ -271,4 +271,13 @@ public ObjectTag setPrefix(String prefix) {
}
return this;
}

public void applyProperty(Mechanism mechanism) {
mechanism.echoError("Cannot apply properties to Discord bots.");
}

@Override
public void adjust(Mechanism mechanism) {
AbstractFlagTracker.tryFlagAdjusts(this, mechanism);
}
}

0 comments on commit 4f16c64

Please sign in to comment.