• Finds a Channel from the text, or the message content and returns null if nothing found. It can find it from ID/name/mention.

    Parameters

    • dataType: DataTypeResolver<CHANNEL>
    • text: string | Message<boolean>

      A string or a Message to find dataType from.

    Returns Promise<Channel | null>

    • The Channel or null if not found.
  • Finds a Command from the text, or the message content and returns null if nothing found. It can find it from the name/alias.

    Parameters

    • dataType: DataTypeResolver<COMMAND>
    • text: string | Message<boolean>

      A string or a Message to find dataType from.

    Returns Promise<Command | null>

    • The Command or null if not found.
  • Finds an Emoji from the text, or the message content and returns null if nothing found. It can find it from the name/emoji itself/ID.

    Parameters

    • dataType: DataTypeResolver<EMOTE>
    • text: string | Message<boolean>

      A string or a Message to find dataType from.

    Returns Promise<Emoji | null>

    • The Emoji or null if not found.
  • Finds a Guild from the text, or the message content and returns null if nothing found. It can find it from the name/ID.

    Parameters

    • dataType: DataTypeResolver<GUILD>
    • text: string | Message<boolean>

      A string or a Message to find dataType from.

    Returns Promise<Guild | null>

    • The Guild or null if not found.
  • Finds a GuildMember from the text, or the message content and returns null if nothing found. It can find it from the username/ID/mention/nickname.

    Parameters

    • dataType: DataTypeResolver<MEMBER>
    • text: string | Message<boolean>

      A string or a Message to find dataType from.

    Returns Promise<GuildMember | null>

    • The Guild or null if not found.
  • Finds a Message from the text, or the message content and returns null if nothing found. It can find it from the name/ID/link.

    Parameters

    • dataType: DataTypeResolver<MESSAGE>
    • text: string | Message<boolean>

      A string or a Message to find dataType from.

    Returns Promise<Message | null>

    • The Message or null if not found.
  • Finds a Role from the text, or the message content and returns null if nothing found. It can find it from the name/ID/mention, if a message is provided, it will fetch the last 100 messages and search in it.

    Parameters

    • dataType: DataTypeResolver<ROLE>
    • text: string | Message<boolean>

      A string or a Message to find dataType from.

    Returns Promise<Role | null>

    • The Role or null if not found.
  • Finds a TextChannel or a NewsChannel from the text, or the message content and returns null if nothing found. It can find it from ID/name/mention.

    Parameters

    • dataType: DataTypeResolver<TEXT_CHANNEL>

      TextChannel | NewsChannel DataType.TEXT_CHANNEL.

    • text: string | Message<boolean>

      A string or a Message to find dataType from.

    Returns Promise<GuildTextBasedChannel | null>

    • The Channel or null if not found.
  • Finds a User from the text, or the message content and returns null if nothing found.
    It can find it from the username/ID.

    Parameters

    • dataType: DataTypeResolver<USER>
    • text: string | Message<boolean>

      A string or a Message to find dataType from.

    Returns Promise<User | null>

    • The User or null if not found.

Generated using TypeDoc