Class StandaloneDiscordUser

java.lang.Object
net.lucypoulton.squirtgun.discord.DiscordUser
net.lucypoulton.squirtgun.discord.standalone.StandaloneDiscordUser
All Implemented Interfaces:
net.kyori.adventure.audience.Audience, net.kyori.adventure.pointer.Pointered, net.lucypoulton.squirtgun.platform.audience.PermissionHolder, net.lucypoulton.squirtgun.platform.audience.SquirtgunPlayer, net.lucypoulton.squirtgun.platform.audience.SquirtgunUser

public class StandaloneDiscordUser extends DiscordUser
  • Constructor Summary

    Constructors
    Constructor
    Description
    StandaloneDiscordUser​(net.dv8tion.jda.api.entities.User user)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.dv8tion.jda.api.entities.User
     
     
    boolean
    hasPermission​(String permission)
     

    Methods inherited from class net.lucypoulton.squirtgun.discord.DiscordUser

    getGamemode, getUsername, isOnline, sendMessage, setGamemode

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.kyori.adventure.audience.Audience

    clearTitle, filterAudience, forEachAudience, hideBossBar, openBook, openBook, playSound, playSound, playSound, resetTitle, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, sendTitlePart, showBossBar, showTitle, stopSound, stopSound

    Methods inherited from interface net.kyori.adventure.pointer.Pointered

    get, getOrDefault, getOrDefaultFrom, pointers
  • Constructor Details

    • StandaloneDiscordUser

      public StandaloneDiscordUser(net.dv8tion.jda.api.entities.User user)
  • Method Details

    • getUuid

      public UUID getUuid()
      Returns:
      a UUID with the first 64 bits as zero, the last 64 as the user's Discord account ID
    • hasPermission

      public boolean hasPermission(String permission)
    • discordUser

      public net.dv8tion.jda.api.entities.User discordUser()
      Specified by:
      discordUser in class DiscordUser