Options
All
  • Public
  • Public/Protected
  • All
Menu

Module UserOnly

Allows only the given user IDs to interact with the bot - anyone else receives no response, as if the bot had no backend running.

Index

References

IUserOnlyContext

Re-exports IUserOnlyContext

userOnlyMiddleware

Re-exports userOnlyMiddleware

Functions

Const userOnlyMiddleware

  • userOnlyMiddleware(ctx: IUserOnlyContext, next: () => Promise<void>): Promise<void>

Generated using TypeDoc