1.0.3 • Published 7 months ago

discord-hook-vivasaude v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

Discord-Hook-Vivasaude

Usage

  • Install package
    yarn add discord-hook-vivasaude
  • How to use
import * as  discord_hook from 'discord-hook-vivasaude';

@Injectable()
export class ObjectService {
  async foo(): Promise<any> {
    # Below is the env variable that contains the discord webhook url
    const webhook_discord = process.env.DISCORD_WEBHOOK;

    discord_hook.sendMessage({
        content: `the message that is going to be sent`,
        username: 'discord bot name',
    }, webhook_discord);
    return await this.getObject();
  }

  #rest of the file
}
1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago

0.1.15

7 months ago

0.1.13

7 months ago

0.1.12

7 months ago

0.1.11

7 months ago

0.1.10

7 months ago

0.1.9

7 months ago

0.1.8

7 months ago

0.1.7

7 months ago

0.1.5

7 months ago