Class UsernameCache

java.lang.Object
tv.phantombot.cache.UsernameCache

@Deprecated(since="3.8.0.0", forRemoval=true) public class UsernameCache extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Please use ViewerCache instead. In scripts, use $.viewer instead of $.username
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addUser(String userName, String displayName, String userID)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    exists(String userName)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    get(String userName)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    getID(String userName)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    hasUser(String userName)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    removeUser(String userName)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    resolve(String username)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    resolve(String username, Map<String,String> tags)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • instance

      public static UsernameCache instance()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • resolveBot

      public String resolveBot()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • resolveCaster

      public String resolveCaster()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • resolve

      public String resolve(String username)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • resolve

      public String resolve(String username, Map<String,String> tags)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • exists

      public boolean exists(String userName)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • addUser

      public void addUser(String userName, String displayName, String userID)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • hasUser

      public boolean hasUser(String userName)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • get

      public String get(String userName)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getIDBot

      public String getIDBot()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getIDCaster

      public String getIDCaster()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getID

      public String getID(String userName)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • removeUser

      public void removeUser(String userName)
      Deprecated, for removal: This API element is subject to removal in a future version.