diff --git a/src/webpage/permissions.ts b/src/webpage/permissions.ts index f2e8bf6..922f86d 100644 --- a/src/webpage/permissions.ts +++ b/src/webpage/permissions.ts @@ -36,6 +36,7 @@ class Permissions { //private static info: { name: string; readableName: string; description: string }[]; static *info(): Generator<{name: string; readableName: string; description: string}> { for (const thing of this.permisions) { + if (!thing) continue; yield { name: thing, readableName: I18n.permissions.readableNames[thing](), @@ -91,6 +92,8 @@ class Permissions { "CREATE_EVENTS", "USE_EXTERNAL_SOUNDS", "SEND_VOICE_MESSAGES", + null, //TODO unused + "SET_VOICE_CHANNEL_STATUS", "SEND_POLLS", "USE_EXTERNAL_APPS", "PIN_MESSAGES", diff --git a/translations/en.json b/translations/en.json index dc08e76..da870ea 100644 --- a/translations/en.json +++ b/translations/en.json @@ -740,7 +740,8 @@ "REQUEST_TO_SPEAK": "Allows role members to request to speak in stage channels.", "USE_EMBEDDED_ACTIVITIES": "Allows role members to use embedded activities.", "USE_APPLICATION_COMMANDS": "Allows role members to use application commands.", - "USE_EXTERNAL_APPS": "Allows role members to have application responses to show publicly in channel (When disabled, users will still be allowed to use their apps but responses will be visible only to themselves. This only applies to apps not also installed to the guild)." + "USE_EXTERNAL_APPS": "Allows role members to have application responses to show publicly in channel (When disabled, users will still be allowed to use their apps but responses will be visible only to themselves. This only applies to apps not also installed to the guild).", + "SET_VOICE_CHANNEL_STATUS":"Set voice channel status" }, "readableNames": { "ADD_REACTIONS": "Add reactions", @@ -793,7 +794,8 @@ "VIEW_AUDIT_LOG": "View audit log", "VIEW_CHANNEL": "View channels", "VIEW_CREATOR_MONETIZATION_ANALYTICS": "View creator monetization analytics", - "VIEW_GUILD_INSIGHTS": "View guild insights" + "VIEW_GUILD_INSIGHTS": "View guild insights", + "SET_VOICE_CHANNEL_STATUS":"Set voice channel status" } }, "pinMessage": "Pin message",