Skip to content

Commit

Permalink
chore(Deps): update @discordjs/builders (#6259)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladfrangu committed Aug 1, 2021
1 parent 93e0239 commit 74fc23b
Show file tree
Hide file tree
Showing 4 changed files with 151 additions and 29 deletions.
166 changes: 138 additions & 28 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
},
"homepage": "https://github.com/discordjs/discord.js#readme",
"dependencies": {
"@discordjs/builders": "^0.2.0",
"@discordjs/builders": "^0.3.0",
"@discordjs/collection": "^0.2.1",
"@discordjs/form-data": "^3.0.1",
"@sapphire/async-queue": "^1.1.4",
Expand Down
10 changes: 10 additions & 0 deletions src/util/Formatters.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const {
time,
TimestampStyles,
underscore,
spoiler,
} = require('@discordjs/builders');

/**
Expand Down Expand Up @@ -144,4 +145,13 @@ Formatters.TimestampStyles = TimestampStyles;
*/
Formatters.underscore = underscore;

/**
* Formats the content into spoiler text.
* @method spoiler
* @memberof Formatters
* @param {string} content The content to spoiler.
* @returns {string}
*/
Formatters.spoiler = spoiler;

module.exports = Formatters;
2 changes: 2 additions & 0 deletions typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
TimestampStyles,
TimestampStylesString,
underscore,
spoiler,
} from '@discordjs/builders';
import { Collection } from '@discordjs/collection';
import { ChildProcess } from 'child_process';
Expand Down Expand Up @@ -1915,6 +1916,7 @@ export class Formatters extends null {
public static TimestampStyles: typeof TimestampStyles;
public static TimestampStylesString: TimestampStylesString;
public static underscore: typeof underscore;
public static spoiler: typeof spoiler;
}

export class VoiceChannel extends BaseGuildVoiceChannel {
Expand Down

0 comments on commit 74fc23b

Please sign in to comment.