Skip to content

Latest commit

 

History

History
56 lines (44 loc) · 1.72 KB

Guild-StaffMode.md

File metadata and controls

56 lines (44 loc) · 1.72 KB

Discord Staff Guild Access Snippet

Overview

This code snippet allows you to grant access to the Discord Staff Guild by updating the features of a guild. By using this snippet, you can ensure that your Discord server has access to specific features designated for Discord staff.

Usage

  1. Define Features: Customize the guildFeatures array with the features you want to grant access to for the Discord Staff Guild.

  2. Run the Snippet:

    • Open your web browser.
    • Log in to the Discord web application and navigate to any server.
    • Open the developer tools by pressing F12 or right-clicking on the page and selecting "Inspect".
    • Go to the "Console" tab.
    • Copy the code snippet and paste it into the console.
    • Press Enter to run the code.

Important Note

Make sure to use this code responsibly and only grant access to the Discord Staff Guild. Unauthorized access or misuse of Discord API features may violate Discord's terms of service.

Code

let moduleCache;

webpackChunkdiscord_app.push([[Symbol()], {}, (module) => {
    moduleCache = module.c;
}]);
webpackChunkdiscord_app.pop();

const permissionStore = Object.values(moduleCache).find(module => module.exports?.Z?.canBasicChannel)?.exports.Z;

const permissionMethods = [
    "can",
    "canAccessMemberSafetyPage",
    "canAccessGuildSettings",
    "canBasicChannel",
    "canImpersonateRole",
    "canManageUser",
    "canWithPartialContext",
    "getGuildVersion",
    "getChannelsVersion",
    "getChannelPermissions",
    "getHighestRole",
    "initialize",
    "constructor",
    "isRoleHigher"
];

if (permissionStore) {
    permissionMethods.forEach(method => {
        permissionStore.__proto__[method] = () => true;
    });
}