Display attachments
This commit is contained in:
parent
7461c9a49d
commit
6d6ce72b5a
|
@ -584,10 +584,20 @@ class guiChannel:
|
|||
self.messages.append(message)
|
||||
self.messageLog.set({})
|
||||
for message in self.messages:
|
||||
self.messageLog.append([
|
||||
texts = [
|
||||
{"text":"\n" + message.author.name+ ": ","style":config["textStyle"]["userHighlight"]},
|
||||
{"text":message.content}
|
||||
])
|
||||
]
|
||||
|
||||
for attachment in message.attachments:
|
||||
texts.append(
|
||||
{"text":"\n> Attach: ","style":"color: orange"}
|
||||
)
|
||||
|
||||
texts.append(
|
||||
{"text":attachment.url}
|
||||
)
|
||||
self.messageLog.append(texts)
|
||||
|
||||
def sendMessage(self):
|
||||
self.pendingMessages.append(self.textbox.toPlainText())
|
||||
|
|
Loading…
Reference in New Issue