For example, you want to set 40% alpha transparence to #000000
(black color), you need to add 66
like this #66000000
.
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
/** | |
* Translates a string to a Thai slug format. | |
* @param {string} inputString - The string to translate. | |
* @returns {string} The translated string. | |
*/ | |
function toThaiSlug(inputString) { | |
// Replace spaces with hyphens | |
let slug = inputString.replace(/\s+/g, '-'); | |
// Translate some characters to Thai |
REST API response format based on some of the best practices
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
#!/bin/sh | |
# Based on BMitch's answer from: | |
# https://stackoverflow.com/questions/38946683/how-to-test-dockerignore-file | |
# Note: will create and delete temporary file "Dockerfile.build-context" | |
# 1. Copy to project folder where image is being built | |
# 2. Run script | |
# 3. You should see list of files in build context |
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
[PlayerFeedback_CheckForSurvey] POST | |
[PlayerFeedback_SendAnswers] POST | |
[PatchNotes_GetPatchNotes] GET | |
[AggStats_Fetch] GET | |
[AccountXP_GetPlayer] GET https://pd.ap.a.pvp.net/account-xp/v1/players/{user_id} | |
[Config_FetchConfig] GET https://shared.ap.a.pvp.net/v1/config/ap |
See here an overcomplicated way to wait for input from a user using a modal. Every step is explained using comments.
This is meant to replace Client.wait_for("message")
for application commands.
- Easy way to construct a Modal with one text input field.
- Easily pass a check from the constructor