MCPcopy Create free account
hub / github.com/Botloader/botloader / checkEditedRole

Function checkEditedRole

integration-tests/roles.ts:25–30  ·  view source on GitHub ↗
(role: Discord.Role)

Source from the content-addressed store, hash-verified

23}
24
25function checkEditedRole(role: Discord.Role) {
26 assertExpected(role.color, 0xff0000)
27 assertExpected(role.hoist, false)
28 assertExpected(role.permissionsRaw, role_perms_update.toString())
29 assertExpected(role.mentionable, false)
30}
31
32
33script.on("ROLE_CREATE", async (role) => {

Callers 1

roles.tsFile · 0.85

Calls 2

assertExpectedFunction · 0.90
toStringMethod · 0.80

Tested by

no test coverage detected