Skip to content

Commit

Permalink
chore: format entire repo
Browse files Browse the repository at this point in the history
  • Loading branch information
thewilloftheshadow committed Oct 19, 2024
1 parent 55f36b5 commit 74ad612
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions packages/carbon/src/plugins/linked-roles/LinkedRoles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,29 +24,29 @@ type Tokens = {
*
* @example
* ```ts
* import { createHandle, Client, ApplicationRoleConnectionMetadataType } from "@buape/carbon"
* import { LinkedRoles } from "@buape/carbon/linked-roles"
*
* const handle = createHandle((env) => {
* const client = new Client({ ... }, [ ... ])
* const linkedRoles = new LinkedRoles(client, {
* metadata: [
* {
* key: 'is_staff',
* name: 'Verified Staff',
* description: 'Whether the user is a verified staff member',
* type: ApplicationRoleConnectionMetadataType.BooleanEqual
* }
* ],
* metadataCheckers: {
* is_staff: async (userId) => {
* const allStaff = ["439223656200273932"]
* return allStaff.includes(userId)
* }
* }
* })
* return [client, linkedRoles]
* })
* import { createHandle, Client, ApplicationRoleConnectionMetadataType } from "@buape/carbon"
* import { LinkedRoles } from "@buape/carbon/linked-roles"
*
* const handle = createHandle((env) => {
* const client = new Client({ ... }, [ ... ])
* const linkedRoles = new LinkedRoles(client, {
* metadata: [
* {
* key: 'is_staff',
* name: 'Verified Staff',
* description: 'Whether the user is a verified staff member',
* type: ApplicationRoleConnectionMetadataType.BooleanEqual
* }
* ],
* metadataCheckers: {
* is_staff: async (userId) => {
* const allStaff = ["439223656200273932"]
* return allStaff.includes(userId)
* }
* }
* })
* return [client, linkedRoles]
* })
* ```
*/
export class LinkedRoles extends Plugin {
Expand Down

0 comments on commit 74ad612

Please sign in to comment.