Skip to content

Commit

Permalink
add DiscordUserTag.discriminator
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jan 5, 2021
1 parent 8b53cce commit 9269bc6
Showing 1 changed file with 11 additions and 0 deletions.
Expand Up @@ -120,6 +120,17 @@ public static void registerTags() {
return new ElementTag(object.getUser().getName());
});

// <--[tag]
// @attribute <DiscordUserTag.discriminator>
// @returns ElementTag
// @plugin dDiscordBot
// @description
// Returns the discriminator ID of the user.
// -->
registerTag("discriminator", (attribute, object) -> {
return new ElementTag(object.getUser().getDiscriminator());
});

// <--[tag]
// @attribute <DiscordUserTag.is_bot>
// @returns ElementTag(Boolean)
Expand Down

0 comments on commit 9269bc6

Please sign in to comment.