Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

Commit

Permalink
Update channelExists.md
Browse files Browse the repository at this point in the history
  • Loading branch information
DevSpen authored May 4, 2021
1 parent 946a8e4 commit bed8255
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions functions/channelExists.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
***$channelExists***
# $channelExists
Checks whether or not the given channel exists. Returns "true" if it exists, returns "false" if it doesn't.

Checks if the given channel ID exists in the Server.
## Usage
```$channelExists[channelID]```

***Usage***
### Breakdown
`channelID` - The channel which the bot checks.

`$channelExists[channel_id]`

If the given channel ID exists, it will return `true`. And if the given channel ID isn't existed, it will return false.

***Example***

```bot.command({
type: "command"
name: "channelexists",
code: "$channelExists[$message[1]]"
})```
## Example
```
bot.command({
type: "command",
name: "channel-exists",
code: `Channel Exists? $channelExists[$message]`
})
````

0 comments on commit bed8255

Please sign in to comment.