# Discord Embed Sender \[Console\]

**URL:** <https://onehack.st/t/discord-embed-sender-console/178989>\
**Category:** Tools & Scripts\
**Created:** [April 16, 2021, 10:24pm UTC](https://onehack.st/t/discord-embed-sender-console/178989 "2021-04-16T22:24:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![PlayBoy83](https://onehack.st/user_avatar/onehack.st/playboy83/32/164314_2.png) [@PlayBoy83](https://onehack.st/u/PlayBoy83)\
**Post date:** [April 16, 2021, 10:24pm UTC](https://onehack.st/t/discord-embed-sender-console/178989/1 "2021-04-16T22:24:33Z")

</div>

![vrRBcf7](https://onehack.st/uploads/default/original/3X/4/9/49628b02320028c2ef531af20c9ef6bfeae93a93.gif)

**So basically do this**

- Ctrl + shift + j

- Paste code below in console

```auto
var findModule = (item) => Object.values(webpackJsonp.push([[],{['']:(_,e,r)=>{e.cache=r.c}}, [['']]]).cache).find(m=>m.exports&&m.exports.default&&m.exports.default[item]!==void 0).exports.default;
function hexTOint(e) {
  if (!e)return;
  4 === e.length && (e = "#" + e[1] + e[1] + e[2] + e[2] + e[3] + e[3]);
  return parseInt(e.slice(1), 16)
  }

findModule('post').post = (post => async(e, t, n) => {
  if (e.url.endsWith('/messages')) {
      e.body.embed = {type: 'rich', description: e.body.content, color: hexTOint('#'+(Math.random()*0xFFFFFF<<0).toString(16))};
      e.body.content = ""
}
return post(e, t, n)
})(this.oldPost = findModule('post').post)

```

**Enjoy!**
