Skip to content

Commit

Permalink
flag documentation update and patch previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Mar 3, 2021
1 parent 5deedeb commit fe350a4
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@

import com.denizenscript.ddiscordbot.DiscordConnection;
import com.denizenscript.ddiscordbot.DenizenDiscordBot;
import com.denizenscript.denizencore.DenizenCore;
import com.denizenscript.denizencore.flags.AbstractFlagTracker;
import com.denizenscript.denizencore.flags.FlaggableObject;
import com.denizenscript.denizencore.flags.RedirectionFlagTracker;
import com.denizenscript.denizencore.objects.*;
import com.denizenscript.denizencore.objects.core.ElementTag;
import com.denizenscript.denizencore.objects.core.ListTag;
Expand All @@ -29,6 +27,9 @@ public class DiscordBotTag implements ObjectTag, FlaggableObject {
// The identity format for Discord bots is the bot ID (as chosen in <@link command discord>).
// For example: mybot
//
// This object type is flaggable.
// Flags on this object type will be stored in: plugins/dDiscordBot/flags/bot_(botname).dat
//
// -->

@Fetchable("discord")
Expand Down Expand Up @@ -81,6 +82,8 @@ public void reapplyTracker(AbstractFlagTracker tracker) {

public static void registerTags() {

AbstractFlagTracker.registerFlagHandlers(tagProcessor);

// <--[tag]
// @attribute <DiscordBotTag.name>
// @returns ElementTag
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import com.denizenscript.ddiscordbot.DiscordConnection;
import com.denizenscript.ddiscordbot.DenizenDiscordBot;
import com.denizenscript.denizen.utilities.debugging.Debug;
import com.denizenscript.denizencore.DenizenCore;
import com.denizenscript.denizencore.flags.AbstractFlagTracker;
import com.denizenscript.denizencore.flags.FlaggableObject;
import com.denizenscript.denizencore.flags.RedirectionFlagTracker;
Expand Down Expand Up @@ -32,6 +31,9 @@ public class DiscordChannelTag implements ObjectTag, FlaggableObject {
// For example: 1234
// Or: mybot,1234
//
// This object type is flaggable.
// Flags on this object type will be stored in: plugins/dDiscordBot/flags/bot_(botname).dat, under special sub-key "__channels"
//
// -->

@Fetchable("discordchannel")
Expand Down Expand Up @@ -122,6 +124,8 @@ public void reapplyTracker(AbstractFlagTracker tracker) {

public static void registerTags() {

AbstractFlagTracker.registerFlagHandlers(tagProcessor);

// <--[tag]
// @attribute <DiscordChannelTag.name>
// @returns ElementTag
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ public class DiscordGroupTag implements ObjectTag, FlaggableObject {
// For example: 1234
// Or: mybot,1234
//
// This object type is flaggable.
// Flags on this object type will be stored in: plugins/dDiscordBot/flags/bot_(botname).dat, under special sub-key "__guilds"
//
// -->

@Fetchable("discordgroup")
Expand Down Expand Up @@ -127,6 +130,8 @@ public void reapplyTracker(AbstractFlagTracker tracker) {

public static void registerTags() {

AbstractFlagTracker.registerFlagHandlers(tagProcessor);

// <--[tag]
// @attribute <DiscordGroupTag.name>
// @returns ElementTag
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ public class DiscordMessageTag implements ObjectTag, FlaggableObject {
// Or: 12,1234
// Or: mybot,12,1234
//
// This object type is flaggable.
// Flags on this object type will be stored in: plugins/dDiscordBot/flags/bot_(botname).dat, under special sub-key "__messages"
//
// -->

@Fetchable("discordmessage")
Expand Down Expand Up @@ -171,6 +174,8 @@ public static String stripMentions(String message, List<User> mentioned) {

public static void registerTags() {

AbstractFlagTracker.registerFlagHandlers(tagProcessor);

// <--[tag]
// @attribute <DiscordMessageTag.id>
// @returns ElementTag(Number)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ public class DiscordReactionTag implements ObjectTag, FlaggableObject {
// Or: mybot,12,1234,99
// The reaction ID for custom reactions is an ID number, and for default emojis is the unicode text format of the emoji.
//
// This object type is flaggable.
// Flags on this object type will be stored in: plugins/dDiscordBot/flags/bot_(botname).dat, under special sub-key "__reactions"
//
// -->

@Fetchable("discordreaction")
Expand Down Expand Up @@ -181,6 +184,8 @@ public void reapplyTracker(AbstractFlagTracker tracker) {

public static void registerTags() {

AbstractFlagTracker.registerFlagHandlers(tagProcessor);

// <--[tag]
// @attribute <DiscordReactionTag.id>
// @returns ElementTag
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ public class DiscordRoleTag implements ObjectTag, FlaggableObject {
// Or: 1234,4321
// Or: mybot,1234,4321
//
// This object type is flaggable.
// Flags on this object type will be stored in: plugins/dDiscordBot/flags/bot_(botname).dat, under special sub-key "__roles"
//
// -->

@Fetchable("discordrole")
Expand Down Expand Up @@ -154,6 +157,8 @@ public void reapplyTracker(AbstractFlagTracker tracker) {

public static void registerTags() {

AbstractFlagTracker.registerFlagHandlers(tagProcessor);

// <--[tag]
// @attribute <DiscordRoleTag.name>
// @returns ElementTag
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ public class DiscordUserTag implements ObjectTag, FlaggableObject {
// For example: 1234
// Or: mybot,1234
//
// This object type is flaggable.
// Flags on this object type will be stored in: plugins/dDiscordBot/flags/bot_(botname).dat, under special sub-key "__users"
//
// -->

@Fetchable("discorduser")
Expand Down Expand Up @@ -122,6 +125,8 @@ public void reapplyTracker(AbstractFlagTracker tracker) {

public static void registerTags() {

AbstractFlagTracker.registerFlagHandlers(tagProcessor);

// <--[tag]
// @attribute <DiscordUserTag.name>
// @returns ElementTag
Expand Down

0 comments on commit fe350a4

Please sign in to comment.