UnityCord acts as a bridge for Discord's Embedded App SDK and provides additional utilities to simplify creating Discord activities with Unity.
Currently, there are no official UnityCord documentation pages, but you can easily follow the official Discord documentation since the differences are minimal.
Embedded-sdk-app (JS/TS) | UnityCord (C#) |
import {patchUrlMappings} from '@discord/embedded-app-sdk';
patchUrlMappings([{prefix: '/foo', target: 'foo.com'}]); |
using UnityCord;
List<Mapping> mappings = new List<Mapping> {
new Mapping { Prefix = "foo", Target = "foo.com" }
};
Utils.PatchUrlMappings(mappings); |