mirror of
https://github.com/muesli/telephant
synced 2024-11-22 19:33:06 +00:00
Add godoc comments
This commit is contained in:
parent
d4b0e90a87
commit
6e68962ef6
1 changed files with 2 additions and 0 deletions
|
@ -145,6 +145,7 @@ func (mod *Account) Run(eventChan chan interface{}) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// Panes returns the panes this Mastodon account offers
|
||||
func (mod *Account) Panes() []accounts.Pane {
|
||||
ll, err := mod.client.GetLists(context.Background())
|
||||
if err != nil {
|
||||
|
@ -198,6 +199,7 @@ func (mod *Account) Reply(replyid string, message string, attachments []string)
|
|||
return err
|
||||
}
|
||||
|
||||
// UploadAttachment uploads an attachment to Mastodon
|
||||
func (mod *Account) UploadAttachment(url string) {
|
||||
go func() {
|
||||
a, err := mod.client.UploadMedia(context.Background(), url)
|
||||
|
|
Loading…
Reference in a new issue