discord-mcbe
    Preparing search index...

    Requests discord-mcbe answers, named after Method. Pass it to sync.rpc.typed<AddonSync.Rpc>(AddonSync.NODE_ID) for a typed client.

    interface Rpc {
        chatSend(
            params: {
                formatting?: {
                    messagePrefix?: string;
                    messageSuffix?: string;
                    namePrefix?: string;
                    nameSuffix?: string;
                };
                message: string;
                playerId: string;
            },
        ): boolean;
        register(
            params: { features: string[]; protocol: number },
        ): { connected: boolean; features: string[]; protocol: number };
        sendMessage(params: { message: DiscordMessageJSON }): boolean;
    }
    Index
    • Resolves to whether the chat was passed on to the server.

      Parameters

      • params: {
            formatting?: {
                messagePrefix?: string;
                messageSuffix?: string;
                namePrefix?: string;
                nameSuffix?: string;
            };
            message: string;
            playerId: string;
        }
        • Optionalformatting?: {
              messagePrefix?: string;
              messageSuffix?: string;
              namePrefix?: string;
              nameSuffix?: string;
          }
        • message: string

          Message body without any formatting applied.

        • playerId: string

          Player.id of the sender.

      Returns boolean

    • Parameters

      • params: { features: string[]; protocol: number }
        • features: string[]

          Requested features. Values discord-mcbe does not know are skipped.

        • protocol: number

      Returns { connected: boolean; features: string[]; protocol: number }

      • connected: boolean

        Whether discord-mcbe was connected to its server when it answered.

      • features: string[]

        Requested features that discord-mcbe accepted.

      • protocol: number