Class RestInvite


  • public class RestInvite
    extends Object
    Represents a code that can be used to add a user to a guild.
    • Method Detail

      • create

        public static RestInvite create​(RestClient restClient,
                                        String code)
        Create a RestInvite with the given parameters. This method does not perform any API request.
        Parameters:
        restClient - REST API resources
        code - the ID of this entity
        Returns:
        a RestInvite represented by the given parameters.
      • getCode

        public String getCode()
        Gets the invite code.
        Returns:
        The invite code
      • getData

        public Mono<discord4j.discordjson.json.InviteData> getData()
      • delete

        public Mono<discord4j.discordjson.json.InviteData> delete​(@Nullable
                                                                  String reason)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object