Skip to content

Commit

Permalink
use contextAsType
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jun 12, 2020
1 parent 91a1656 commit 66c1b90
Showing 1 changed file with 6 additions and 6 deletions.
Expand Up @@ -152,7 +152,7 @@ public static void registerTags() {
if (!attribute.hasContext(1)) {
return null;
}
DiscordGroupTag group = DiscordGroupTag.valueOf(attribute.getContext(1), attribute.context);
DiscordGroupTag group = attribute.contextAsType(1, DiscordGroupTag.class);
if (group == null) {
return null;
}
Expand Down Expand Up @@ -198,7 +198,7 @@ public static void registerTags() {
if (!attribute.hasContext(1)) {
return null;
}
DiscordGroupTag group = DiscordGroupTag.valueOf(attribute.getContext(1), attribute.context);
DiscordGroupTag group = attribute.contextAsType(1, DiscordGroupTag.class);
if (group == null) {
return null;
}
Expand All @@ -219,7 +219,7 @@ public static void registerTags() {
if (!attribute.hasContext(1)) {
return null;
}
DiscordGroupTag group = DiscordGroupTag.valueOf(attribute.getContext(1), attribute.context);
DiscordGroupTag group = attribute.contextAsType(1, DiscordGroupTag.class);
if (group == null) {
return null;
}
Expand All @@ -244,7 +244,7 @@ public static void registerTags() {
if (!attribute.hasContext(1)) {
return null;
}
DiscordGroupTag group = DiscordGroupTag.valueOf(attribute.getContext(1), attribute.context);
DiscordGroupTag group = attribute.contextAsType(1, DiscordGroupTag.class);
if (group == null) {
return null;
}
Expand All @@ -269,7 +269,7 @@ public static void registerTags() {
if (!attribute.hasContext(1)) {
return null;
}
DiscordGroupTag group = DiscordGroupTag.valueOf(attribute.getContext(1), attribute.context);
DiscordGroupTag group = attribute.contextAsType(1, DiscordGroupTag.class);
if (group == null) {
return null;
}
Expand All @@ -292,7 +292,7 @@ public static void registerTags() {
if (!attribute.hasContext(1)) {
return null;
}
DiscordGroupTag group = DiscordGroupTag.valueOf(attribute.getContext(1), attribute.context);
DiscordGroupTag group = attribute.contextAsType(1, DiscordGroupTag.class);
if (group == null) {
return null;
}
Expand Down

0 comments on commit 66c1b90

Please sign in to comment.