-
Notifications
You must be signed in to change notification settings - Fork 2
Setting up your Widget
Your bot and widget belongs to an Application. This is where you can customize how your Widget will show to other people.
- Download or clone https://github.com/TheCreativeGod/Discord-Widgets-Extension
-
Chrome / Edge / Brave:
chrome://extensions→ Enable Developer Mode → Load unpacked → select thechrome-extension/folder -
Firefox:
about:debugging#/runtime/this-firefox→ Load Temporary Add-on → selectfirefox-extension/manifest.json
- Go to https://discord.com/developers/applications and reload the page once after installing the extension
- Click the Widget Creator button in the bottom-right corner
- Paste the full contents of the json file of your choosing from this repo's
widget-templatefolder into the JSON box - Click Import — the extension creates the application with the template layout and stat icons pre-configured
- Complete any captcha / 2FA if prompted
- Head back to your Discord, go to Settings → Authorized Apps and check if your new application (should usually be named "My New Widget") appears in it. If it does, de-authorize the app. We will be re-authorizing the application later when we set up the bot.
Note: After importing, all data fields will appear empty — this is expected. The bot hasn't pushed any stats yet. Click the pencil icon on each data field to confirm the mapping is correct.
- Open your web browser on a computer and head to Discord Developer Portal
- Log in with your usual Discord account credentials if prompted.
- Click the blue New Application button in the top-right corner.
- Give your app a name (e.g., "PHIGHTING!" or [Your PHIGHTING! scrim team name]).
- NOTE: Your application's name, along with its icon will be used as the Widget's name and icon, so choose a name that you want to be featured on your profile!
- Check the box to agree to the developer terms and click Create.
In order to use the Widget, you have to use the Social SDK. In the left sidebar, head to Games - Social SDK. Here you will be forced to fill out information about your "company". You can fill this with whatever you like, as long as it is required in the Required fields marked with a "*". After filling in the "necessary information", check the checkbox at the bottom labelled "I consent" and press Submit.
By default, the custom widget editor is hidden from view. We are going to execute a command which will push the website to reveal it to us using your browser's console.
- While staying on your new application's page, press F12 on your keyboard (or right-click anywhere on the page and select Inspect).
- Look at the top of the complex panel that just popped up and click on the tab labeled Console.
- Copy the exact block of code below, paste it into the blank line at the very bottom of the console, and press Enter:
let _mods = webpackChunkdiscord_developers.push([[Symbol()],{},r=>r.c]);
webpackChunkdiscord_developers.pop();
let findByProps = (...props) => {
for (let m of Object.values(_mods)) {
try {
if (!m.exports || m.exports === window) continue;
if (props.every((x) => m.exports?.[x])) return m.exports;
for (let ex in m.exports) {
if (props.every((x) => m.exports?.[ex]?.[x]) && m.exports[ex][Symbol.toStringTag] !== 'IntlMessagesProxy') return m.exports[ex];
}
} catch {}
}
}
findByProps("getAll").getAll().find(e=>e.getName() === "ApexExperimentStore").createOverride("2026-03-widget-config-editor", 1)NOTE: You will have to run the above code again whenever you come back to, or refresh, the page.
- Go back to the Applications page (located in the top left of the page). DO NOT refresh the page or click on the "Back/Forward" button on your browser.
- Re-enter the application, and look over to the left sidebar of the page. In the "Games" tab. you should be able to see the "Widget" button appearing.
Now comes the creative part. Inside your newly revealed Widget tab, you can customize exactly what your profile display looks like.
These are the most important aspects of the Widget for it to be able to be displayed on your profile:
- Widget Top: This allows you to add a title, some subtitle descriptions (up to 3), and an icon image (which supports animated GIFs if you want your profile to pop!).
- Widget Bottom: Perfect for adding customized stat numbers or featured items, depending on your preferred layout!
- Add Widget Preview: This is a placeholder widget preview sitting in your "Add Widget" menu. Even though it is not shown publicly, adding an image will help anyone who is using this (including you!) to recognize the widget by just looking at the character alone.
- Mini Profile: This is a smaller preview of your widget when someone opens up your Mini Profile. It is highly recommended to feature your name/username and your featured Phighter for this Mini Widget.
Author's Note: Guide on how you can design your widget will be added later in a future update to this wiki. It is highly recommended to use the pre-made templates in this repo if you are planning to use this repository's bot alongside the Widget.
Once you are completely satisfied with your layout, make sure to click the Save Changes and Publish button at the top of the screen.