Package top.focess.qq.api.bot.contact
Interface Group
-
- All Superinterfaces:
Contact,Speaker,Transmitter
public interface Group extends Speaker
Represents a group.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MembergetAsMember()Get the bot self as a member@Nullable MembergetMember(long id)Get the group's memberMembergetMemberOrFail(long id)Get the group's member@NonNull @UnmodifiableView List<Member>getMembers()Get the group's all membersvoidquit()Quit the group-
Methods inherited from interface top.focess.qq.api.bot.contact.Speaker
uploadAudio
-
Methods inherited from interface top.focess.qq.api.bot.contact.Transmitter
sendMessage, sendMessage, uploadImage
-
-
-
-
Method Detail
-
quit
void quit()
Quit the group
-
getMember
@Nullable Member getMember(long id)
Get the group's member- Parameters:
id- the member's id- Returns:
- the member or null if not found
-
getMemberOrFail
Member getMemberOrFail(long id)
Get the group's member- Parameters:
id- the member's id- Returns:
- the member
- Throws:
NullPointerException- if not found
-
getMembers
@NonNull @UnmodifiableView List<Member> getMembers()
Get the group's all members- Returns:
- the all members
-
getAsMember
Member getAsMember()
Get the bot self as a member- Returns:
- the bot self as a member
-
-