-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Clean Init * Update timer * Update Datafiles * Linting * Save progress * Save progress * Saving progress * Separating button function * oooo boyo * Minor change to text * Little more polish, not the sausage * Fix ban message * Update migration file * Update drug defs
- Loading branch information
Showing
32 changed files
with
5,836 additions
and
2,664 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 18 additions & 12 deletions
30
src/discord/commands/guild/u.info.ts → src/discord/commands/archive/u.underban.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,40 @@ | ||
import { | ||
ActionRowBuilder, | ||
ModalBuilder, | ||
TextInputBuilder, | ||
ContextMenuCommandBuilder, | ||
GuildMember, | ||
ModalSubmitInteraction, | ||
} from 'discord.js'; | ||
import { | ||
ApplicationCommandType, | ||
TextInputStyle, | ||
} from 'discord-api-types/v10'; | ||
import { UserCommand } from '../../@types/commandDef'; | ||
// import log from '../../../global/utils/log'; | ||
import { moderate } from '../../../global/commands/g.moderate'; | ||
import commandContext from '../../utils/context'; | ||
// import {startLog} from '../../utils/startLog'; | ||
import { UserActionType } from '../../../global/@types/database'; | ||
import { embedTemplate } from '../../utils/embedTemplate'; | ||
import { ban } from '../guild/d.moderate'; | ||
|
||
const F = f(__filename); | ||
|
||
export const uInfo: UserCommand = { | ||
export const uUnderban: UserCommand = { | ||
data: new ContextMenuCommandBuilder() | ||
.setName('Info') | ||
.setName('Underban') | ||
.setType(ApplicationCommandType.User), | ||
async execute(interaction) { | ||
log.info(F, await commandContext(interaction)); | ||
await interaction.deferReply({ ephemeral: true }); | ||
await interaction.editReply(await moderate( | ||
interaction.member as GuildMember, | ||
'INFO', | ||
(interaction.options.data[0].member as GuildMember).id, | ||
null, | ||
null, | ||
null, | ||
)); | ||
await ban( | ||
interaction, | ||
(interaction.targetMember as GuildMember).id, | ||
|
||
) | ||
|
||
return true; | ||
}, | ||
}; | ||
|
||
export default uInfo; | ||
export default uUnderban; |
Oops, something went wrong.