Send data to a Discord webhook

Without using the requests module, how can I send messages to a Discord webhook? I have tried following code: import urllib2 import json url = 'webhook url' values = {"username": "Bot", "text":...

Is there any way to post a webhook using JavaScript?

I want to send a message in my Discord server using a Webhook. Is there any way to do that using JavaScript? I tried this code, but it didn't work: var url = // Webhook URL var text =...

TypeError from importing discord.py

I just installed the discord.py rewrite branch, but attempting to use import discord or from discord.ext import commands simply results in a TypeError. Traceback (most recent call last): File...

c# send discord webhook

Does anyone know how i would send all the data from the user to a discord webhook message? So my code is like so: private void materialSingleLineTextField1_KeyDown(object sender,...

I keep receiving an empty message error when trying to post a webhook

This is my first time using Discord embeds, let alone, making a webhook. Having a little bit of trouble trying to figure out what I'm doing wrong. Hopefully someone can help! When I try to send an...

I dont know why I get a 400 bad request error for sending a discord webhook. Everything seems fine but I am new at this

I am new at this so it is probably a stupid mistake Im trying to make a program that sends the price of a stock quote to discord as a webhook. The webhook does not send. But, when I do...

Discord webhook rate limits

I'm working on a private browser extension which extracts some information from a web page and posts it into a Discord channel via a webhook. The browser extension does evaluate the...

Python Discord Display link

I have a problem on my embedded discord, I would like to display the link in a tweet. It's a monitor which monitors some Twitter account to send a notification on discord when the user posts...

Discord Webhooks With C++

So I've taken up the challenge of doing webhooks in c++ and I wanted to just get some help with the post requests. Here is the code I have at the moment, I wanted to send embeds through post...

Python - Get list of users in a Discord Server

Hi I have a Discord Bot set up and I have a Flask application running as well. Is there anyway to get data of my discord server using something like the Discord API or Webhook?

Discord Webhook: Pictures are sometimes shown, sometimes hidden

I have a method that notifies me on discord chanel using webhook. def notify(str, ap): print(str) headers = {'Content-Type': 'application/json'} data = {} # for all params, see...

discordjs using base64 image in webhook embed

How do I insert an image into a discord embed using webhook. I have the image saved as a base64 string which I get from database. I have tried this but I only get an empty embed const data =...

Discord.py Import commands from a other File always failing

I try to make my bot cleaner, i dont want to use COGS so i go with File splitting, but if i try to Import a Py File it works to import but it outputs a Error that it cant find something called...

Deploy to Node App Azure App Service tsc not recognized as command

I am trying to deploy a nodejs app onto Azure App Service. I did the basics of deploying it, but it's failing to run. It seems it is designed to run "node run.js" commands rather than "npm run...

Discord malware

A friend of mine contacted me with a problem he has been having with Discord. Windows asks what program the code below should be run with and the default is Discord. Every time Discord is run,...

How to send heroku logs to discord via webhooks?

I saw heroku cli and it's cool to log in real time via -tail But how do I send that real time logging to discord via webhooks (for example curl or node-fetch by cli or coding respectively.)?

Python discord webhook doesn't really mention role

I have a problem with mentioning role with discord webhook. I'm using discord_webhook library. When I try to mention a role webhook tags it and it looks fine but it didn't really ping users from...

Find and delete Discord webhook message

I'm using a Discord webhook to send information which may later be invalidated, so I want to be able to delete it. To do this i use these endpoints: First i make a post request to send a...

Edit discord message from webhook

I want to send a message with a webhook (which I have working), then edit that message. You can edit messages through webhooks, but you need the message id. The only way to retrieve a message...

AlertManager is not forwarding alerts to webhook receiver

We have setup Prometheus in a kubernetes cluster using PrometheusOperator. We are trying to configure AlertManager using the AlertManagerConfig custom resource. We tried creating an alert route...

"TypeError: can only concatenate str (not "list") to str" when using a txt file as input

I'm working on a python project to check username availability for Ubisoft.com. I'm doing this by making a GET request to the Ubisoft API. The usernames to check for availability are stored in a...

Webhook status code 400: {"embeds": ["Must be 10 or fewer in length."]}

I´m developing a bot that sends messages to the discord channel every second, however when I run the program and only sent 10 messages and after only print [1/1] Webhook status code 400:...

Discord message monitoring without using a self-bot?

Is there a way to monitor messages in Discord without using a self-bot since it's against ToS? I want to monitor certain channels in each of my servers and mirror into my private server to make it...

How can I verify a HMAC SHA256 in JavaScript?

I'm writing a script in Node.js that integrates Todoist, Notion and Discord. I'm using Heroku for hosting because I want to use webhooks (from Todoist). The idea is that every time I add or...

Is it possible to run a discord bot comand from a website

So I want to have a system, where when a certain action occurs on the website, to open a support ticket on the discord server automatically. I can use any discord ticket bot that would work. I...

Sending a Discord webhook through a single class file in java

I was wondering if it would be possible to send a discord webhook using java with the least api's and stuff possible. Just basic java. (Also I only need text so it can be as simple as...

how to send image via discord webhook using node-fetch?

const fetch = require('node-fetch'); const fs = require('fs') var data = fs.readFileSync('2.png', 'utf8') var URL = "apikey"; fetch(URL, { "method":"POST", "headers": {"Content-Type":...

Simple Webhook code 'shardCount' on string error?

I trying to make and start learning to code a bid with API's But I have this really annoying error... My code is const Discord = require('discord.js') const webhookID =...

Problem when embedding images on Discord Webhook (Image hosted on a Wordpress website)

I'm trying to send embedded information to my Discord guild by using Webhooks, but I can't seem to embed successfully the image I'm hosting on my website, although an image hosted in imgur works...

Trying to make an IFTTT webhook for my Discord server

So I'm trying to link a Google Calendar to a Discord webhook for event notifications and stuff. I'm using IF any event starts (Google Calendar) THEN make a web request (Discord webhook URL) As...