static GazelleLine dm_discord_importLine(O lineConcept) { ret lineConcept == null ? null : nu GazelleLine( timestamp := _get created(lineConcept), user := call(lineConcept, 'userName), bot := _get bot(lineConcept), text := _get text(lineConcept), msgID := getLong msgID(lineConcept), context := _get context(lineConcept), channelID := rcall channelID(lineConcept), reactions := map(getList(lineConcept, 'reactions), func(O r) -> GazelleReaction { nu GazelleReaction( userID := getLong((O) getOpt user(r), 'userID), created := _get created(r), emoji := _get emoji(r)) })); }
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: | 361 / 433 |
Version history: | 10 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1022292 - gazelle_importPreprocessedLine |