1.3.7-1 • Published 3 years ago

webhookmgr v1.3.7-1

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago
let { webhook: wh, sendWebhook: sw } = require("webhookmgr")
/*
message: message
message.author.username: String
message.author.displayAvatarURL(): (opcional) URL
*/
new wh(message, message.author.username, message.author.displayAvatarURL()).then(async webhook => {
  /*
  "Hola": String
  webhook: webhook
  true: Boolean (autodelete webhook)
  */
  await sw(webhook, "Hola", true)
})
let whmgr = require("webhookmgr")
/*
message: message
message.author.username: String
message.author.displayAvatarURL(): (opcional) URL
*/
new whmgr.webhook(message, message.author.username, message.author.displayAvatarURL()).then(async webhook => {
  /*
  "Hola": string
  webhook: webhook
  false: Boolean (autodelete webhook)
  */
  await whmgr.sendWebhook(webhook, "Hola", false)
})
/*
message: message
username: String
avatar: URL
*/
new webhook(message, username, avatar)
/*
webhook: Webhook
message: MessageToSay<String>
true: AutoDelete<Boolean>
*/
await sendWebhook(webhook, message, true)
// Via ID
/*
guild: Guild
id: WebhookID<Integer>
*/
await fetchWebhookBy(guild, {id: id})

// Via Name
/*
guild: Guild
name: WebhookName<String>
*/
await fetchWebhookBy(guild, {name: name})

// Via URL
/*
guild: Guild
url: WebhookURL<Link>
*/
await fetchWebhookBy(guild, {url: url})

// Via token
/*
guild: Guild
token: WebhookToken
*/
await fetchWebhookBy(guild, {token: token})
require("webhookmgr").discord
1.3.7

3 years ago

1.3.6

3 years ago

1.3.5

3 years ago

1.3.4

3 years ago

1.3.4-low

3 years ago

1.3.7-1

3 years ago

1.3.6-2

3 years ago

1.3.6-1

3 years ago

1.3.5-2

3 years ago

1.3.5-1

3 years ago

1.3.6-3

3 years ago

1.3.3

3 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.3.0-less

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago