Class GuildUpdateRegionEvent

    • Field Detail

      • IDENTIFIER

        public static final java.lang.String IDENTIFIER
        Deprecated.
        See Also:
        Constant Field Values
    • Constructor Detail

      • GuildUpdateRegionEvent

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

      • getOldRegion

        @Nonnull
        public Region getOldRegion()
        Deprecated.
        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

        @Nonnull
        public java.lang.String getOldRegionRaw()
        Deprecated.
        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

        @Nonnull
        public Region getNewRegion()
        Deprecated.
        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

        @Nonnull
        public java.lang.String getNewRegionRaw()
        Deprecated.
        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