Skip to content

Commit 7f4a3b1

Browse files
committed
all: expunge antiquated references to (docs|learn).yagpdb.xyz
Signed-off-by: Luca Zeuch <[email protected]>
1 parent 308ab21 commit 7f4a3b1

File tree

5 files changed

+39
-31
lines changed

5 files changed

+39
-31
lines changed

content/docs/core/all-commands.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Calc <Expression:Text>
7676

7777
**Aliases:** ce
7878

79-
Creates an embed from what you give it in json form: https://docs.yagpdb.xyz/others/custom-embeds
79+
Creates an embed from what you give it in JSON form: https://help.yagpdb.xyz/docs/refehttps://help.yagpdb.xyz/docs/reference/custom-embeds/#the-customembed-command
8080
Example: `-ce {"title": "hello", "description": "wew"}`
8181

8282
**Usage:**

content/docs/reference/templates/functions.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2307,17 +2307,21 @@ present, respectively, at position `N` (starting from 0).
23072307

23082308
An argument's `"type"` must be one of the following:
23092309

2310-
- `int` (whole number)
2311-
- `float` (decimal number)
2312-
- `string` (text)
2313-
- `user` (user mentions, resolves to the [user](https://docs.yagpdb.xyz/reference/templates#user) structure)
2314-
- `userid` (mentions or user IDs, resolves to the ID itself)
2315-
- `member` (mentions or user IDs, resolves to the [member](https://docs.yagpdb.xyz/reference/templates#member)
2316-
structure)
2317-
- `channel` (channel mention or ID, resolves to the channel structure)
2318-
- `role` (role name or ID, resolves as type \*discordgo.Role)
2319-
- `duration` (duration that is human-readable, i.e `10h5m` or `10 hour 5 minutes` would both resolve to the same
2320-
duration)
2310+
- `int`: whole number
2311+
- `float`: decimal number
2312+
- `string`: text
2313+
- `user`: user mentions, resolves to a [user object]
2314+
- `userid`: mentions or user IDs, resolves to the ID itself
2315+
- `member`: mentions or user IDs, resolves to a [member object]
2316+
- `channel`: channel mention or ID, resolves to a [channel object]
2317+
- `role`: role name or ID, resolves to a [role object]
2318+
- `duration`: duration that is human-readable, i.e `10h5m` or `10 hour 5 minutes` would both resolve to the same
2319+
duration
2320+
2321+
[user object]: /docs/reference/templates/syntax-and-data/#user
2322+
[member object]: /docs/reference/templates/syntax-and-data/#member
2323+
[channel object]: /docs/reference/templates/syntax-and-data/#channel
2324+
[role object]: https://discord.com/developers/docs/topics/permissions#role-object
23212325

23222326
Additionally, the `int`, `float`, and `duration` type support validation ranges in the interval `(min, max)`, where for
23232327
`duration` it is in [time.Duration format](/docs/reference/templates/syntax-and-data#time) values.

content/docs/reference/templates/syntax-and-data.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,9 @@ times, while conditional actions like `if` and `with` allow for alteration of wh
326326
### If (conditional branching)
327327

328328
Branching using `if` action's pipeline and comparison operators - these operators don't need to be inside `if` branch.
329-
`if` statements always need to have an enclosing `end`.\
330-
Learning resources covers conditional branching [more in depth](https://learn.yagpdb.xyz/beginner/control_flow_1).\
329+
`if` statements always need to have an enclosing `end`.
330+
331+
See also the [conditional branching chapter](/learn/beginner/conditional-branching) in the learning resources.
331332

332333
{{< callout context="tip" title="Tip: Test Many Arguments at Once" icon="outline/rocket" >}}
333334

@@ -821,12 +822,12 @@ Patterns are basic PostgreSQL patterns, not RegEx: An underscore `(_)` matches a
821822
Keys can be max 256 bytes long and has to be strings or numbers. Values can be anything, but if their serialized
822823
representation exceeds 100kB a `short write` error gets raised.
823824

824-
You can just pass a `userID`of 0 to make it global (or any other number, but 0 is safe).\
825-
\
825+
You can just pass a `userID`of 0 to make it global (or any other number, but 0 is safe).
826+
826827
There can be 10 database interactions per CC, out of which dbTop/BottomEntries, dbCount, dbGetPattern, and dbDelMultiple
827828
may only be run twice. (50,10 for premium users).
828829

829-
Learning resources covers database [more in-depth](https://learn.yagpdb.xyz/intermediate/custom-command-database).
830+
See also the [chapter on the database](/learn/intermediate/database) in the learning resources.
830831

831832
[Database functions documentation](functions#database).
832833

content/docs/welcome/introduction.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@ patient when they don't respond in 10<sup>-3</sup> seconds, they are probably bu
2626

2727
### Learning Center
2828

29-
This page is also a work in progress, and can be found at [learn.yagpdb.xyz](https://learn.yagpdb.xyz). It is a more
30-
step-by-step guide to get you started with YAGPDB's custom command system and is less in-your-face than the
31-
documentation.
29+
If you are new to YAGPDB's custom command system, you might want to check out the
30+
[Learning Center](/learn/welcome/introduction) for a more structured approach to learning how to write custom commands.
3231

3332
However, it is not a replacement for the documentation, so you will need to read both to actually write custom commands.
3433

content/learn/beginner/command-arguments.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,21 @@ Each `carg` is a single argument definition. The `carg` function has the followi
3838

3939
Following types are supported:
4040

41-
- `int` (whole number)
42-
- `float` (decimal number)
43-
- `string` (text)
44-
- `user` (user mentions, resolves to the [user](https://docs.yagpdb.xyz/reference/templates#user) structure)
45-
- `userid` (mentions or user IDs, resolves to the ID itself)
46-
- `member` (mentions or user IDs, resolves to the [member](https://docs.yagpdb.xyz/reference/templates#member)
47-
structure)
48-
- `channel` (channel mention or ID, resolves to the channel structure)
49-
- `role` (role name or ID, resolves as type _\*discordgo.Role_)
50-
- `duration` (duration that is human-readable, i.e `10h5m` or `10 hour 5 minutes` would both resolve to the same
51-
duration)
41+
- `int`: whole number
42+
- `float`: decimal number
43+
- `string`: text
44+
- `user`: user mentions, resolves to a [user object]
45+
- `userid`: mentions or user IDs, resolves to the ID itself
46+
- `member`: mentions or user IDs, resolves to a [member object]
47+
- `channel`: channel mention or ID, resolves to a [channel object]
48+
- `role`: role name or ID, resolves to a [role object]
49+
- `duration`: duration that is human-readable, i.e `10h5m` or `10 hour 5 minutes` would both resolve to the same
50+
duration
51+
52+
[user object]: /docs/reference/templates/syntax-and-data/#user
53+
[member object]: /docs/reference/templates/syntax-and-data/#member
54+
[channel object]: /docs/reference/templates/syntax-and-data/#channel
55+
[role object]: https://discord.com/developers/docs/topics/permissions#role-object
5256

5357
The `description` is a human-readable description of the argument. This is used in the error message if the argument is
5458
not valid.

0 commit comments

Comments
 (0)