Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IServer

Hierarchy

  • IServer

Index

Methods

getId

  • getId(): number
  • Get the id of the server.

    Returns number

    The server id

getMembers

  • Get the members of the server.

    Returns IUser[]

    The members of the server

getName

  • getName(): string
  • Get the name of the server.

    Returns string

    The server name

getRoles

  • Get the roles of the server.

    Returns IRole[]

    The roles of the server

getTextChannel

  • Gets the text channel by its id

    Parameters

    • channelId: string

      The channel id which shall be returned

    Returns ITextChannel

    The text channel with the given id

getTextChannels

getVoiceChannel

  • Gets the voice channel by its id

    Parameters

    • channelId: string

      The channel id which shall be returned

    Returns IVoiceChannel

    The voice channel

getVoiceChannels

hasTextChannel

  • hasTextChannel(channelId: string): boolean
  • Checks if the given channel exists on the server

    Parameters

    • channelId: string

      The channel id which shall be looked for

    Returns boolean

    True if the text channel exists, else false

hasVoiceChannel

  • hasVoiceChannel(channelId: string): boolean
  • Checks if the given channel exists on the server

    Parameters

    • channelId: string

      The channel id which shall be looked for

    Returns boolean

    True if the voice channel exists, else false

Generated using TypeDoc