discord-hook-vivasaude
v1.0.3
Published
### Usage
Downloads
139
Readme
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
}