perf(plugins/helpers,rest,site,template)!: uppercase rest methods (#2252)

* perf(plugins/helpers,rest,site,template)!: uppercase rest methods
There is no need for us to pass the methods in lower case and then use the `toUpperCase()` method everywhere. Therefore this PR changes every lowercase method to be uppercase (eg. `"get"` => `"GET"`).

* template is old version
This commit is contained in:
ITOH
2022-05-25 20:45:51 +02:00
committed by GitHub
parent 1edb3c2110
commit b00504ce07
149 changed files with 157 additions and 157 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ export async function getMembersPaginated(
const result = await bot.rest.runMethod<DiscordMemberWithUser[]>(
bot.rest,
"get",
"GET",
bot.constants.routes.GUILD_MEMBERS(guildId, {
limit: membersLeft > 1000 ? 1000 : membersLeft,
after: options.after,
+1 -1
View File
@@ -8,7 +8,7 @@ export async function suppressEmbeds(
) {
const result = await bot.rest.runMethod<DiscordMessage>(
bot.rest,
"patch",
"PATCH",
bot.constants.routes.CHANNEL_MESSAGE(channelId, messageId),
{ flags: 4 },
);
+1 -1
View File
@@ -24,7 +24,7 @@ export async function unlockThread(bot: Bot, threadId: bigint) {
export async function editThread(bot: Bot, threadId: bigint, options: ModifyThread, reason?: string) {
const result = await bot.rest.runMethod<DiscordChannel>(
bot.rest,
"patch",
"PATCH",
bot.constants.routes.CHANNEL(threadId),
{
name: options.name,