Class GuildUpdateRegionEvent

    • Constructor Detail

      • GuildUpdateRegionEvent

        public GuildUpdateRegionEvent​(JDA api,
                                      long responseNumber,
                                      Guild guild,
                                      java.lang.String oldRegion)
    • Method Detail

      • getOldRegion

        public Region getOldRegion()
        The old Region of the Guild.
        If this region cannot be resolved to an enum constant this will return UNKNOWN!

        You can use getOldRegionRaw() to get the raw name that discord provides for this region!

        Returns:
        Resolved Region constant from the raw name
      • getOldRegionRaw

        public java.lang.String getOldRegionRaw()
        The raw voice region name that was used prior to this update by the Guild.
        This can be resolved using getOldRegion() to a constant of the enum. If that returns UNKNOWN this region is not currently registered in JDA.
        Returns:
        Raw name of the old voice region
      • getNewRegion

        public Region getNewRegion()
        The new Region of the Guild.
        If this region cannot be resolved to an enum constant this will return UNKNOWN!

        You can use getNewRegionRaw() to get the raw name that discord provides for this region!

        Returns:
        Resolved Region constant from the raw name
      • getNewRegionRaw

        public java.lang.String getNewRegionRaw()
        The raw voice region name that was updated to in the Guild.
        This can be resolved using getNewRegion() to a constant of the enum. If that returns UNKNOWN this region is not currently registered in JDA.
        Returns:
        Raw name of the updated voice region