diff --git a/pom.xml b/pom.xml
index 33bd961..29d85cc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
me.albert
AmazingBot
jar
- 4.0.5
+ 4.0.6
AmazingBot
diff --git a/resources/plugin.yml b/resources/plugin.yml
index a1ea7ec..6129b56 100644
--- a/resources/plugin.yml
+++ b/resources/plugin.yml
@@ -1,5 +1,5 @@
name: AmazingBot
-version: 4.0.5
+version: 4.0.6
author: Albert
main: me.albert.amazingbot.AmazingBot
api-version: 1.13
diff --git a/src/me/albert/amazingbot/objects/contact/Member.java b/src/me/albert/amazingbot/objects/contact/Member.java
index 3291027..6f08748 100644
--- a/src/me/albert/amazingbot/objects/contact/Member.java
+++ b/src/me/albert/amazingbot/objects/contact/Member.java
@@ -97,6 +97,26 @@ public boolean kick(boolean rejectAddRequest) {
return Bot.getApi().groupKick(group_id, user_id, rejectAddRequest);
}
+ public boolean setCard(String card) {
+ return Bot.getApi().setGroupCard(group_id, user_id, card);
+ }
+
+ public boolean setSpecialTitle(String title) {
+ return Bot.getApi().setGroupSpecialTitle(group_id, user_id, title);
+ }
+
+ public boolean setAdmin(boolean enable) {
+ return Bot.getApi().setGroupAdmin(group_id, user_id, enable);
+ }
+
+ public boolean isAdmin() {
+ return role.equals("admin");
+ }
+
+ public boolean isOwner() {
+ return role.equals("owner");
+ }
+
public String getName() {
return card.trim().isEmpty() ? nickname : card;
}