Skip to content

Commit

Permalink
Merge pull request #40 from RezkyRizaldi/v14
Browse files Browse the repository at this point in the history
V1.21.0
  • Loading branch information
RezkyRizaldi authored Oct 27, 2022
2 parents 905ed48 + b0325e2 commit f82b365
Show file tree
Hide file tree
Showing 9 changed files with 7,275 additions and 4,466 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"ytdl-core": "^4.11.2"
},
"devDependencies": {
"eslint": "^8.25.0",
"eslint": "^8.26.0",
"husky": "^8.0.1",
"lint-staged": "^13.0.3",
"nodemon": "^2.0.20",
Expand Down
18 changes: 8 additions & 10 deletions src/commands/misc/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -1130,9 +1130,7 @@ module.exports = {
.then(async ({ data }) => {
const responses = data.map(
(item, index) =>
`${bold(`${index + 1}.`)} ${capitalCase(
item.replace(/-/g, ' '),
)}`,
`${bold(`${index + 1}.`)} ${capitalCase(item)}`,
);

const pagination = new Pagination(interaction, {
Expand Down Expand Up @@ -1573,9 +1571,7 @@ module.exports = {
.then(async ({ data }) => {
const responses = data.map(
(item, index) =>
`${bold(`${index + 1}.`)} ${capitalCase(
item.replace(/-/g, ' '),
)}`,
`${bold(`${index + 1}.`)} ${capitalCase(item)}`,
);

const pagination = new Pagination(interaction, {
Expand Down Expand Up @@ -1759,11 +1755,13 @@ module.exports = {
embed.setDescription(block.description);
embed.setThumbnail(
getWikiaURL({
fileName: `${block.displayName}${
block.state ? `_(${block.state})` : ''
}${block.version ? `_${block.version}` : ''}`,
fileName: `${block.altName ?? block.displayName}${
block.positions?.length
? block.positions.map((pos) => ` (${pos})`).join('')
: ''
}${block.version ? ` ${block.version}` : ''}`,
path: 'minecraft_gamepedia',
type: mcData.version.type,
animated: block.animated ?? false,
}),
);
embed.setAuthor({
Expand Down
47 changes: 47 additions & 0 deletions src/constants/channels.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
const { ChannelType } = require('discord.js');

/** @type {import('discord.js').APIApplicationCommandOptionChoice[]} */
const threadChannels = [
{
name: '📣 Announcement Thread',
value: ChannelType.AnnouncementThread,
},
{
name: '👁️‍🗨️ Public Thread',
value: ChannelType.PublicThread,
},
{
name: '🔒 Private Thread',
value: ChannelType.PrivateThread,
},
];

/** @type {import('discord.js').APIApplicationCommandOptionChoice[]} */
const guildChannels = [
{
name: '#️⃣ Text',
value: ChannelType.GuildText,
},
{
name: '🔊 Voice',
value: ChannelType.GuildVoice,
},
{
name: '📁 Category',
value: ChannelType.GuildCategory,
},
{
name: '📣 Announcement',
value: ChannelType.GuildAnnouncement,
},
{
name: '🎤 Stage',
value: ChannelType.GuildStageVoice,
},
{
name: '🗯️ Forum',
value: ChannelType.GuildForum,
},
];

module.exports = { threadChannels, guildChannels };
Loading

0 comments on commit f82b365

Please sign in to comment.