Him188
46598d686c
Cleanup;
...
Use interface for JavaFriendly APIs;
Deprecate event responder in Bot in the favor of their member functions;
Deprecate `Bot.queryUrl(image: Image)`` in the favor of the extension `Image.queryUrl`
2020-05-16 14:14:21 +08:00
Him188
aa12684050
Let ContactOrBot implements CoroutineScope
2020-05-11 15:28:31 +08:00
Him188
aa2805b81f
Let ContactList<C> implement Collection<C>
2020-05-10 15:34:06 +08:00
Him188
90c0c5c549
Optimize experimental API usages
2020-05-10 02:22:16 +08:00
Him188
84cfe2626f
Remove all @SinceMirai("0.x.x")
2020-05-05 13:56:17 +08:00
Him188
4ee27f2069
Fix ambiguous message event names. Fix #299 .
...
Binary compatibility until 1.2.0.
Migrations:
- `MessagePacket` deprecated in favor of `MessageEvent`
- `MessagePacketBase` deprecated in favor of `MessageEvent`
- `ContactMessage` -> `MessageEvent`
- `FriendMessage` -> `FriendMessageEvent`
- `GroupMessage` -> `GroupMessageEvent`
- `TempMessage` -> `TempMessageEvent`
2020-05-05 13:55:01 +08:00
Him188
e5404b397b
Simplify MemberPermission comparing
2020-05-03 22:25:57 +08:00
Him188
c2fa014c78
Add docs
2020-05-03 22:25:35 +08:00
Him188
8366c353c4
Correct filenames
2020-05-02 18:07:54 +08:00
Him188
2be325d781
Remove all deprecated APIs
2020-05-02 16:56:18 +08:00
Him188
1a4c3ba602
Simplify Image structure: deprecate online and offline classification.
2020-05-01 21:51:09 +08:00
Him188
c3de96dde0
Mark LockFreeLinkedList with MiraiInternalAPI, planning to make it internal in 1.0.0
2020-04-27 22:07:27 +08:00
Him188
f75d597c29
Remove being shadowed extensions
2020-04-27 19:08:42 +08:00
Him188
6ab8be55c2
Add Java-friendly Group.quit
2020-04-25 19:55:59 +08:00
Him188
56fc3aa88b
Add checks for empty message being sent
2020-04-25 13:14:57 +08:00
Him188
cd1dbf63fc
Fix doc
2020-04-25 12:29:16 +08:00
Him188
3bdfd21df6
Add Contact.sendMessage(String)
2020-04-25 12:27:40 +08:00
Him188
077885465b
Add docs, rearrange implementations
2020-04-24 15:12:50 +08:00
Him188
2d96314d72
Cleanup
2020-04-23 19:29:19 +08:00
Him188
6734403fb0
Add User.nameCardOrNick
; Rename Member.takeIfFriend
to Member.takeIfIsFriend
; Replace fun Member.isMuted()
with val Member.isMuted
2020-04-23 14:16:40 +08:00
Him188
a63af80668
Deprecate QQ
...
Introduce `Friend` extending `User`
Introduce `User` acting as the superclass of `Friend` and `Member`
Add extensions `Member.asFriend`, etc.
Remove specialized `Contact.hashCode` and `Contact.equals`, inherit from `kotlin.Any`
Specify `toString` behavior in abstract `Contact` classes, instead of in implementation classes.
Add virtual member `Contact.sendMessage(String)`
Migrate the project from using `QQ` to `Friend`
Remove multiplatform Contact class structure, keep them common.
Remove extension `Long.at` in `GroupMessage`, `QQ.at` in `ContactMessage`.
Add `At.asMember()` in `GroupMessage`.
Make `calculateGroupUinByGroupCode`, `calculateGroupCodeByGroupUin` static on JVM.
2020-04-22 16:08:04 +08:00
Him188
3c9b057ad0
Rename Identified
to ContactOrBot
, remove experimental annotations
2020-04-22 14:03:29 +08:00
Him188
d40e3ee745
Make BotIsBeingMutedException.botMuteRemaining
inline
2020-04-22 13:18:59 +08:00
Him188
1542b73fa9
Improve KDoc
2020-04-20 16:55:44 +08:00
Him188
b0718c5b2e
Add experimental annotations
2020-04-13 19:15:35 +08:00
Him188
45784c01a8
Introduce experimental common super interface Identified
for Contact and Bot
2020-04-13 12:13:34 +08:00
Him188
0ef844f79b
Fix doc
2020-04-12 20:18:46 +08:00
Him188
b9a3675dad
Support Group.quit
, add BotLeaveEvent.Active
2020-04-11 20:15:23 +08:00
Him188
6d9aceae6e
Fix docs
2020-04-11 16:06:23 +08:00
Him188
418fb43992
Returns botAsMember when Group.get(bot.id)
2020-04-10 19:40:34 +08:00
Him188
ae1156b434
Simplify Contact structure
2020-04-10 11:35:05 +08:00
Him188
ec35eeba1c
Simplify Bot structure
2020-04-09 16:14:48 +08:00
Him188
bd3e73ae42
Simplify constructor
2020-04-04 14:20:22 +08:00
Him188
3cc5cbfcfd
Introduce BotIsBeingMutedException
to replace IllegalStateException
2020-04-04 14:17:32 +08:00
Him188
e8b0c99006
Fix name
2020-04-04 13:54:11 +08:00
Him188
32553fad2b
Introduce ContactMessage
to replace MessagePacket<*, *>
2020-04-02 20:27:16 +08:00
Him188
d5868ed7c1
Add MessageTooLargeException
to differentiate with mute exception
2020-04-02 18:28:19 +08:00
Him188
97522bdf2a
Rearrange internal APIs
2020-04-02 09:43:50 +08:00
Him188
97b6627338
Adjust Jvm visibility
2020-04-01 20:11:22 +08:00
Him188
a150af2e3e
Introduce permission comparing for MemberPermission via ordinal comparison
2020-04-01 17:48:09 +08:00
Him188
fa1cf3ae1d
Fix doc
2020-03-31 13:37:54 +08:00
Him188
55bbdc2cb0
Update docs
2020-03-29 14:01:10 +08:00
Him188
3e1925e2fc
Correct JavaHappy
to JavaFriendly
2020-03-24 16:39:06 +08:00
Him188
3ba1ae4a5c
Adjust visibilities
2020-03-24 16:10:39 +08:00
Him188
94e40e2e6a
Annotate new APIs with @SinceMirai("0.30.0")
2020-03-24 15:36:18 +08:00
Him188
8eb597470f
Extract group settings to interface GroupSettings
2020-03-24 15:35:03 +08:00
Him188
22ade1afea
Correct classname
2020-03-24 15:32:29 +08:00
Him188
2944b8abd8
Remove redundant @JvmName
2020-03-24 15:29:52 +08:00
Him188
a9972dc030
Reduce code redundancy
2020-03-24 15:28:24 +08:00
Him188
ed46780983
Clear all deprecated functions which are for binary compatibility
2020-03-24 15:24:06 +08:00