1.0.4 • Published 8 months ago

discord-hook-vivasaude v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
8 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.4

8 months ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.1.15

2 years ago

0.1.13

2 years ago

0.1.12

2 years ago

0.1.11

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.5

2 years ago