Class GuildSticker

    • Constructor Detail

      • GuildSticker

        public GuildSticker​(GatewayDiscordClient gateway,
                            discord4j.discordjson.json.StickerData data)
      • GuildSticker

        public GuildSticker​(GatewayDiscordClient gateway,
                            discord4j.discordjson.json.StickerData data,
                            long guildId)
    • Method Detail

      • getGuildId

        public Snowflake getGuildId()
        Gets the ID of the guild this user is associated to.
        Returns:
        The ID of the guild this user is associated to.
      • getGuild

        public Mono<Guild> getGuild()
        Requests to retrieve the guild this user is associated to.
        Returns:
        A Mono where, upon successful completion, emits the guild this user is associated to. If an error is received, it is emitted through the Mono.
      • getGuild

        public Mono<Guild> getGuild​(EntityRetrievalStrategy retrievalStrategy)
        Requests to retrieve the guild this user is associated to, using the given retrieval strategy.
        Parameters:
        retrievalStrategy - the strategy to use to get the guild
        Returns:
        A Mono where, upon successful completion, emits the guild this user is associated to. If an error is received, it is emitted through the Mono.
      • edit

        public discord4j.core.spec.GuildStickerEditMono edit()
        Requests to edit this guild sticker. Properties specifying how to edit this sticker can be set via the withXxx methods of the returned GuildStickerEditMono.
        Returns:
        A GuildStickerEditMono where, upon successful completion, emits the edited GuildSticker. If an error is received, it is emitted through the GuildStickerEditMono.
      • edit

        public Mono<GuildSticker> edit​(discord4j.core.spec.GuildStickerEditSpec spec)
        Requests to edit this guild sticker.
        Parameters:
        spec - an immutable object that specifies how to edit this sticker
        Returns:
        A Mono where, upon successful completion, emits the edited GuildSticker. If an error is received, it is emitted through the Mono.
      • delete

        public Mono<Void> delete()
        Requests to delete this sticker.
        Returns:
        A Mono where, upon successful completion, emits nothing; indicating the sticker has been deleted. If an error is received, it is emitted through the Mono.
      • delete

        public Mono<Void> delete​(@Nullable
                                 String reason)
        Requests to delete this sticker while optionally specifying a reason.
        Parameters:
        reason - The reason, if present.
        Returns:
        A Mono where, upon successful completion, emits nothing; indicating the sticker has been deleted. If an error is received, it is emitted through the Mono.