Class Webhook.ChannelReference

  • All Implemented Interfaces:
    ISnowflake
    Enclosing interface:
    Webhook

    public static class Webhook.ChannelReference
    extends Object
    implements ISnowflake
    Partial Channel which references the source channel for a follower webhook.
    • Constructor Detail

      • ChannelReference

        public ChannelReference​(long id,
                                String name)
    • Method Detail

      • getIdLong

        public long getIdLong()
        Description copied from interface: ISnowflake
        The Snowflake id of this entity. This is unique to every entity and will never change.
        Specified by:
        getIdLong in interface ISnowflake
        Returns:
        Long containing the Id.
      • getName

        @Nonnull
        public String getName()
        The source channel's name
        Returns:
        The channel name