1 | static GazelleLine dm_discord_importLine(O lineConcept) { |
2 | ret lineConcept == null ? null : nu GazelleLine( |
3 | timestamp := _get created(lineConcept), |
4 | user := call(lineConcept, 'userName), |
5 | bot := _get bot(lineConcept), |
6 | text := _get text(lineConcept), |
7 | msgID := getLong msgID(lineConcept), |
8 | context := _get context(lineConcept), |
9 | channelID := rcall channelID(lineConcept), |
10 | reactions := map(getList(lineConcept, 'reactions), func(O r) -> GazelleReaction { |
11 | nu GazelleReaction( |
12 | userID := getLong((O) getOpt user(r), 'userID), |
13 | created := _get created(r), |
14 | emoji := _get emoji(r)) |
15 | })); |
16 | } |
Began life as a copy of #1021638
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, whxojlpjdney
No comments. add comment
Snippet ID: | #1021674 |
Snippet name: | dm_discord_importLine |
Eternal ID of this version: | #1021674/11 |
Text MD5: | 1020b2faba11ea7a43ac521b6203ffcd |
Author: | stefan |
Category: | javax / discord |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-07-23 14:15:45 |
Source code size: | 656 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 360 / 433 |
Version history: | 10 change(s) |
Referenced in: | [show references] |