mirror of
https://github.com/BluemediaDev/muse.git
synced 2025-05-11 12:21:37 +02:00
Allow member who invited Muse to do initial setup (#561)
This commit is contained in:
parent
e1589c3013
commit
20eaed4a16
6 changed files with 37 additions and 4 deletions
|
@ -26,6 +26,15 @@ const updatePermissionsForGuild = async (guild: Guild) => {
|
|||
permission: false,
|
||||
},
|
||||
];
|
||||
|
||||
if (settings.invitedByUserId) {
|
||||
permissions.push({
|
||||
id: settings.invitedByUserId,
|
||||
type: 'USER',
|
||||
permission: true,
|
||||
});
|
||||
}
|
||||
|
||||
const commands = await guild.commands.fetch();
|
||||
|
||||
await guild.commands.permissions.set({fullPermissions: commands.map(command => ({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue