Skip to content

Commit

Permalink
add user.avatar_url, bump pom
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Aug 18, 2020
1 parent 69d5c8e commit c91fb68
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Expand Up @@ -14,8 +14,8 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<BUILD_NUMBER>Unknown</BUILD_NUMBER>
<bukkit.version>1.16.1-R0.1-SNAPSHOT</bukkit.version>
<denizen.version>1.1.5-SNAPSHOT</denizen.version>
<bukkit.version>1.16.2-R0.1-SNAPSHOT</bukkit.version>
<denizen.version>1.1.6-SNAPSHOT</denizen.version>
</properties>

<!-- Repositories -->
Expand Down
Expand Up @@ -170,7 +170,7 @@ public static void registerTags() {
// @returns ElementTag
// @plugin dDiscordBot
// @description
// Returns the raw mention string the role.
// Returns the raw mention string of the role.
// -->
registerTag("mention", (attribute, object) -> {
return new ElementTag(object.role.getAsMention());
Expand Down
Expand Up @@ -131,6 +131,17 @@ public static void registerTags() {
return new ElementTag(object.getUser().isBot());
});

// <--[tag]
// @attribute <DiscordUserTag.avatar_url>
// @returns ElementTag
// @plugin dDiscordBot
// @description
// Returns the URL to the user's avatar.
// -->
registerTag("avatar_url", (attribute, object) -> {
return new ElementTag(object.getUser().getEffectiveAvatarUrl());
});

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

0 comments on commit c91fb68

Please sign in to comment.