IsPinned reports whether the named skill is currently pinned. Used by skill list to render the pin marker.
(name string)
| 1292 | // IsPinned reports whether the named skill is currently pinned. Used by |
| 1293 | // /skill list to render the pin marker. |
| 1294 | func (sh *SkillHandler) IsPinned(name string) bool { |
| 1295 | sh.pinnedSkillsMu.RLock() |
| 1296 | defer sh.pinnedSkillsMu.RUnlock() |
| 1297 | _, ok := sh.pinnedSkillNames[name] |
| 1298 | return ok |
| 1299 | } |
| 1300 | |
| 1301 | // PinnedNames returns a snapshot of currently pinned skill names sorted |
| 1302 | // alphabetically. Exposed for the completer. |
no outgoing calls