v5.0.0
$webhook
This function returns the given webhook's specified property

Usage

This function has 2 fields
  1. 1.
    URL (Required)
  2. 2.
    Property (Required)
Raw Usage: $webhook[URL;property]

Options

  • URL - The webhook's url the porperties are based off of
  • Property - The property of the <webhook>

Available Properties

  • name - Webhook's name
  • id - Webhook's id
  • token - Webhook's token
  • avatar - Webhook's avatar URL
  • created - Webhook's date and time of creation
  • timestamp - How long ago the webhook was created
  • url - Webhook's URL
  • type - Webhook's Type
  • exists - Whether or not the webhook exists, Returns Boolean
  • guild - Webhook's guild of origin
  • channelid - Channel of which the webhook is assigned to
1
bot.command({
2
name: "webhook",
3
code: `
4
$webhook[https://discord.com/api/webhooks/793312378162642975/paNWUYLC22oL-t2hbYeu3zrwWXNfVxjn4TmDDVTISNVRbytCbptYM4DETJDTPzG-1JcA;name]
5
`
6
})
7
​
8
//Or specified webhook
9
​
10
bot.command({
11
name: "webhook",
12
code: `
13
$webhook[$message;name]
14
`
15
})
Copied!
Last modified 1mo ago
Copy link
Edit on GitHub