@heapreaper/discordfaker - v1.0.4
    Preparing search index...

    Class Faker

    Represents a Faker

    Index

    Constructors

    Methods

    • Emits a simulated channelCreate event with a fake channel. Useful for testing event handling when channels are created.

      Parameters

      • client: Client

        The Discord.js Client instance.

      Returns void

      Faker.channelCreate(client);
      
    • Emits a simulated channelDelete event with a fake channel. Useful for testing event handling when channels are deleted.

      Parameters

      • client: Client

        The Discord.js Client instance.

      Returns void

      Faker.channelDelete(client);
      
    • Emits a simulated guildMemberAdd event with a fake member. Useful for testing event handling of member joins.

      Parameters

      • client: Client

        The Discord.js Client instance.

      Returns void

      Faker.MemberAdd(client);
      
    • Emits a simulated guildMemberRemove event with a fake member. Useful for testing event handling of member leaves.

      Parameters

      • client: Client

        The Discord.js Client instance.

      Returns void

      Faker.memberRemove(client);
      
    • Emits a simulated messageCreate event with a fake message. Useful for testing event handling of new messages.

      Parameters

      • client: Client

        The Discord.js Client instance.

      Returns void

      Faker.messageCreate(client);
      
    • Emits a simulated messageDelete event with a fake message. Useful for testing message deletion event handling.

      Parameters

      • client: Client

        The Discord.js Client instance.

      Returns void

      Faker.messageDelete(client);
      
    • Emits a simulated messageUpdate event with two fake messages: the old message and the updated message. Useful for testing message editing event handling.

      Parameters

      • client: Client

        The Discord.js Client instance.

      Returns void

      Faker.messageEdit(client);